diff options
author | Ted Gould <ted@gould.cx> | 2011-02-14 13:32:49 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-14 13:32:49 -0600 |
commit | 1f1eb89cbf0317ea9e464354cd47b11502efc9de (patch) | |
tree | 17a98e1c2cec31397c23ba401830469dc4427234 | |
parent | 702af6f9968684a01689c7ee86f1e5c0229fff52 (diff) | |
download | libdbusmenu-1f1eb89cbf0317ea9e464354cd47b11502efc9de.tar.gz libdbusmenu-1f1eb89cbf0317ea9e464354cd47b11502efc9de.tar.bz2 libdbusmenu-1f1eb89cbf0317ea9e464354cd47b11502efc9de.zip |
Ignore signals if there's no root node
-rw-r--r-- | libdbusmenu-glib/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 63fa089..9502bfd 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1036,6 +1036,9 @@ menuproxy_signal_cb (GDBusProxy * proxy, gchar * sender, gchar * signal, GVarian guint revision; gint parent; g_variant_get(params, "(ui)", &revision, &parent); layout_update(proxy, revision, parent, client); + } else if (priv->root == NULL) { + /* Drop out here, all the rest of these really need to have a root + node so we can just ignore them if there isn't one. */ } else if (g_strcmp0(signal, "ItemPropertiesUpdated") == 0) { /* Remove before adding just incase there is a duplicate, against the rules, but we can handle it so let's do it. */ |