comparison plugins/musicmessaging/musicmessaging.c @ 13956:f61428cc4019

[gaim-migrate @ 16505] Change the music messaging plugin to not try to load if our D-BUS stuff is not initialized. Also extracted the gaim_notify_error() message code to a #define in src/dbus-server.c And print a debug warning if something tries to register a callback for a signal using a handle that we don't have any registered signals for committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 17 Jul 2006 06:21:53 +0000
parents f09c6e8df82c
children
comparison
equal deleted inserted replaced
13955:2d6f7ac4b6f2 13956:f61428cc4019
256 } 256 }
257 257
258 static gboolean 258 static gboolean
259 plugin_load(GaimPlugin *plugin) { 259 plugin_load(GaimPlugin *plugin) {
260 void *conv_list_handle; 260 void *conv_list_handle;
261
262 GAIM_DBUS_RETURN_FALSE_IF_DISABLED(plugin);
261 263
262 /* First, we have to register our four exported functions with the 264 /* First, we have to register our four exported functions with the
263 main gaim dbus loop. Without this statement, the gaim dbus 265 main gaim dbus loop. Without this statement, the gaim dbus
264 code wouldn't know about our functions. */ 266 code wouldn't know about our functions. */
265 GAIM_DBUS_REGISTER_BINDINGS(plugin); 267 GAIM_DBUS_REGISTER_BINDINGS(plugin);