diff plugins/dbus-example.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 2d6f7ac4b6f2
children b43aec5fa9eb
line wrap: on
line diff
--- a/plugins/dbus-example.c	Mon Jul 17 05:50:28 2006 +0000
+++ b/plugins/dbus-example.c	Mon Jul 17 06:21:53 2006 +0000
@@ -109,16 +109,7 @@
 static gboolean
 plugin_load(GaimPlugin *plugin)
 {
-	const char *dbus_init_error;
-
-	dbus_init_error = gaim_dbus_get_init_error();
-	if (dbus_init_error != NULL)
-	{
-		gaim_notify_error(NULL, _("Unable to Load Plugin"),
-				_("Gaim's D-BUS server is not running for the reason listed below"),
-				_(dbus_init_error));
-		return FALSE;
-	}
+	GAIM_DBUS_RETURN_FALSE_IF_DISABLED(plugin);
 
     /* First, we have to register our four exported functions with the
        main gaim dbus loop.  Without this statement, the gaim dbus