aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-02-16 10:18:03 -0600
committerCody Russell <crussell@canonical.com>2010-02-16 10:18:03 -0600
commitde406e516344899c4006ce989e5915d7e39a1267 (patch)
treea16254d84bd9dfa653524cb546b473ffa76570c5 /src/libappindicator/app-indicator.c
parent2cc377b1d730787d4d1ae15ebeaf8563f264813f (diff)
downloadlibayatana-appindicator-de406e516344899c4006ce989e5915d7e39a1267.tar.gz
libayatana-appindicator-de406e516344899c4006ce989e5915d7e39a1267.tar.bz2
libayatana-appindicator-de406e516344899c4006ce989e5915d7e39a1267.zip
Check priv->menu for non-NULL
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 0324a34..88f6bb6 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -1252,9 +1252,12 @@ setup_dbusmenu (AppIndicator *self)
priv = self->priv;
root = dbusmenu_menuitem_new ();
- gtk_container_forall (GTK_CONTAINER (priv->menu),
- container_iterate,
- root);
+ if (priv->menu)
+ {
+ gtk_container_forall (GTK_CONTAINER (priv->menu),
+ container_iterate,
+ root);
+ }
if (priv->menuservice == NULL)
{