aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-11 16:17:54 -0600
committerTed Gould <ted@gould.cx>2010-02-11 16:17:54 -0600
commit54cd89f665c38244b811508d5995010c9a9d08e0 (patch)
treef6997de273efa1f9b86972d1897a705eb135ad09 /src
parentccaa76fac008a5de7b8eacf3f70dfe96dd15ce16 (diff)
downloadayatana-indicator-session-54cd89f665c38244b811508d5995010c9a9d08e0.tar.gz
ayatana-indicator-session-54cd89f665c38244b811508d5995010c9a9d08e0.tar.bz2
ayatana-indicator-session-54cd89f665c38244b811508d5995010c9a9d08e0.zip
Get returns in better shape
Diffstat (limited to 'src')
-rw-r--r--src/indicator-session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 7e9bb45..f0ec5a4 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -223,6 +223,9 @@ static gboolean
build_menu_switch (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client)
{
GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new());
+ if (gmi == NULL) {
+ return FALSE;
+ }
/* TODO: Setup style update */
dbusmenu_gtkclient_newitem_base(DBUSMENU_GTKCLIENT(client), newitem, gmi, parent);
@@ -230,5 +233,5 @@ build_menu_switch (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusme
g_signal_connect(G_OBJECT(newitem), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(switch_property_change), client);
switch_property_change(newitem, MENU_SWITCH_USER, dbusmenu_menuitem_property_get_value(newitem, MENU_SWITCH_USER), client);
- return FALSE;
+ return TRUE;
}