diff options
author | Ted Gould <ted@gould.cx> | 2009-12-22 14:42:33 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-22 14:42:33 -0600 |
commit | fae3397a2ad00c87876d04131e9d2a6d2c04c5c7 (patch) | |
tree | f476321803e740affc8221847e7af307f7ec92a1 /src/session-service.c | |
parent | 9e9c366430db392d005442cc503e7cd990ca51c5 (diff) | |
parent | ca48c647eb998dbb41cca4c57274dfb24f6ee312 (diff) | |
download | ayatana-indicator-session-fae3397a2ad00c87876d04131e9d2a6d2c04c5c7.tar.gz ayatana-indicator-session-fae3397a2ad00c87876d04131e9d2a6d2c04c5c7.tar.bz2 ayatana-indicator-session-fae3397a2ad00c87876d04131e9d2a6d2c04c5c7.zip |
* Updating to use dbusmenu 0.2.0
* debian/control: Updating to depend on dbusmenu 0.2.0~dev or higher.
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"); |