aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-17 11:06:09 -0600
committerTed Gould <ted@gould.cx>2011-02-17 11:06:09 -0600
commit7dff7bf5303c1040c4dd7ae2a4920837142b4a94 (patch)
treee12aca4ae86a0ddadc0d12437f89dc14e1c185bd /tests/test-glib-layout-client.c
parentad89e1475b57b20cc97472b0a7e399beed4dd562 (diff)
parent44927e6da03d633f0958ce5e04e62e752a43d201 (diff)
downloadlibdbusmenu-7dff7bf5303c1040c4dd7ae2a4920837142b4a94.tar.gz
libdbusmenu-7dff7bf5303c1040c4dd7ae2a4920837142b4a94.tar.bz2
libdbusmenu-7dff7bf5303c1040c4dd7ae2a4920837142b4a94.zip
New upstream release.
∘ Fixing distcheck ∘ Grouping Property Change events into a single DBus signal ∘ Removing XML from the GetLayout function ∘ Clean up icon handling in the parser (LP: #715864) ∘ Fixing signatures on dbusmenu-dumper
Diffstat (limited to 'tests/test-glib-layout-client.c')
-rw-r--r--tests/test-glib-layout-client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c
index 5ea0cf8..3afe042 100644
--- a/tests/test-glib-layout-client.c
+++ b/tests/test-glib-layout-client.c
@@ -81,6 +81,11 @@ layout_updated (DbusmenuClient * client, gpointer data)
g_debug("Layout Updated");
DbusmenuMenuitem * menuroot = dbusmenu_client_get_root(client);
+ if (menuroot == NULL) {
+ g_debug("Root NULL, waiting");
+ return;
+ }
+
layout_t * layout = &layouts[layouton];
if (!verify_root_to_layout(menuroot, layout)) {