diff options
author | Cody Russell <crussell@canonical.com> | 2010-02-16 10:18:03 -0600 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-02-16 10:18:03 -0600 |
commit | de406e516344899c4006ce989e5915d7e39a1267 (patch) | |
tree | a16254d84bd9dfa653524cb546b473ffa76570c5 /src/libappindicator/app-indicator.c | |
parent | 2cc377b1d730787d4d1ae15ebeaf8563f264813f (diff) | |
download | ayatana-indicator-application-de406e516344899c4006ce989e5915d7e39a1267.tar.gz ayatana-indicator-application-de406e516344899c4006ce989e5915d7e39a1267.tar.bz2 ayatana-indicator-application-de406e516344899c4006ce989e5915d7e39a1267.zip |
Check priv->menu for non-NULL
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r-- | src/libappindicator/app-indicator.c | 9 |
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) { |