diff options
author | Ted Gould <ted@gould.cx> | 2010-01-07 10:47:43 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-07 10:47:43 -0600 |
commit | 9b7009f8934552b51a07ef6288b31d38143b0393 (patch) | |
tree | a18296f231291376820aca6bfb092849a2ce137c /libdbusmenu-glib | |
parent | 7f60e7bc2dbe55b1234702028e4b509b70b404bb (diff) | |
parent | 1ca528ac0741b5b6cf236a6df35969817e628646 (diff) | |
download | libdbusmenu-9b7009f8934552b51a07ef6288b31d38143b0393.tar.gz libdbusmenu-9b7009f8934552b51a07ef6288b31d38143b0393.tar.bz2 libdbusmenu-9b7009f8934552b51a07ef6288b31d38143b0393.zip |
* Upstream update:
* Starting to watch DBus if the proxy builds fail.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 59494a3..01dfed7 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -367,8 +367,9 @@ static void dbus_owner_change (DBusGProxy * proxy, const gchar * name, const gchar * prev, const gchar * new, DbusmenuClient * client) { DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client); + /* g_debug("Owner change: %s %s %s", name, prev, new); */ - if (!(new != NULL && prev == NULL)) { + if (!(new[0] != '\0' && prev[0] == '\0')) { /* If it's not someone new getting on the bus, sorry we simply just don't care. It's not that your service isn't important to someone, just not us. You'll find the right @@ -376,7 +377,7 @@ dbus_owner_change (DBusGProxy * proxy, const gchar * name, const gchar * prev, c return; } - if (g_strcmp0(new, priv->dbus_name)) { + if (g_strcmp0(name, priv->dbus_name)) { /* Again, someone else's service. */ return; } @@ -471,6 +472,7 @@ build_proxies (DbusmenuClient * client) if (error != NULL) { g_warning("Unable to get property proxy for %s on %s: %s", priv->dbus_name, priv->dbus_object, error->message); g_error_free(error); + build_dbus_proxy(client); return; } g_object_add_weak_pointer(G_OBJECT(priv->propproxy), (gpointer *)&priv->propproxy); @@ -484,6 +486,7 @@ build_proxies (DbusmenuClient * client) if (error != NULL) { g_warning("Unable to get dbusmenu proxy for %s on %s: %s", priv->dbus_name, priv->dbus_object, error->message); g_error_free(error); + build_dbus_proxy(client); return; } g_object_add_weak_pointer(G_OBJECT(priv->menuproxy), (gpointer *)&priv->menuproxy); |