diff options
author | Ted Gould <ted@gould.cx> | 2009-12-18 21:14:15 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-18 21:14:15 -0600 |
commit | afa8b389a865534ff08ce9fafa50c0d2b14f75e3 (patch) | |
tree | 9611b9faae802407c8ee8df8821a47ad23dede50 /src/session-service.c | |
parent | 9e9c366430db392d005442cc503e7cd990ca51c5 (diff) | |
parent | 59b9b829bf71787d4a05ad73a34762da047fd6b6 (diff) | |
download | ayatana-indicator-session-afa8b389a865534ff08ce9fafa50c0d2b14f75e3.tar.gz ayatana-indicator-session-afa8b389a865534ff08ce9fafa50c0d2b14f75e3.tar.bz2 ayatana-indicator-session-afa8b389a865534ff08ce9fafa50c0d2b14f75e3.zip |
Updating to use dbusmenu 0.2.0
Diffstat (limited to 'src/session-service.c')
-rw-r--r-- | src/session-service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/session-service.c b/src/session-service.c index a4240be..a91170f 100644 --- a/src/session-service.c +++ b/src/session-service.c @@ -105,7 +105,7 @@ suspend_prop_cb (DBusGProxy * proxy, DBusGProxyCall * call, gpointer userdata) g_debug("Got Suspend: %s", g_value_get_boolean(&candoit) ? "true" : "false"); if (suspend_mi != NULL) { - dbusmenu_menuitem_property_set(suspend_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, g_value_get_boolean(&candoit) ? "true" : "false"); + dbusmenu_menuitem_property_set_value(suspend_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, &candoit); } return; @@ -128,7 +128,7 @@ hibernate_prop_cb (DBusGProxy * proxy, DBusGProxyCall * call, gpointer userdata) g_debug("Got Hibernate: %s", g_value_get_boolean(&candoit) ? "true" : "false"); if (suspend_mi != NULL) { - dbusmenu_menuitem_property_set(hibernate_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, g_value_get_boolean(&candoit) ? "true" : "false"); + dbusmenu_menuitem_property_set_value(hibernate_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, &candoit); } return; @@ -253,13 +253,13 @@ create_items (DbusmenuMenuitem * root) { g_signal_connect(G_OBJECT(logout_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(show_dialog), "logout"); suspend_mi = dbusmenu_menuitem_new(); - dbusmenu_menuitem_property_set(suspend_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, "false"); + dbusmenu_menuitem_property_set_bool(suspend_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE); dbusmenu_menuitem_property_set(suspend_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Suspend")); dbusmenu_menuitem_child_append(root, suspend_mi); g_signal_connect(G_OBJECT(suspend_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(sleep), "Suspend"); hibernate_mi = dbusmenu_menuitem_new(); - dbusmenu_menuitem_property_set(hibernate_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, "false"); + dbusmenu_menuitem_property_set_bool(hibernate_mi, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE); dbusmenu_menuitem_property_set(hibernate_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Hibernate")); dbusmenu_menuitem_child_append(root, hibernate_mi); g_signal_connect(G_OBJECT(hibernate_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(sleep), "Hibernate"); |