aboutsummaryrefslogtreecommitdiff
path: root/src/status-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-22 14:42:33 -0600
committerTed Gould <ted@gould.cx>2009-12-22 14:42:33 -0600
commitfae3397a2ad00c87876d04131e9d2a6d2c04c5c7 (patch)
treef476321803e740affc8221847e7af307f7ec92a1 /src/status-service.c
parent9e9c366430db392d005442cc503e7cd990ca51c5 (diff)
parentca48c647eb998dbb41cca4c57274dfb24f6ee312 (diff)
downloadayatana-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/status-service.c')
-rw-r--r--src/status-service.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/status-service.c b/src/status-service.c
index e3a9684..c07b875 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -107,7 +107,7 @@ status_update (void) {
StatusProviderStatus i;
for (i = STATUS_PROVIDER_STATUS_ONLINE; i < STATUS_PROVIDER_STATUS_LAST; i++) {
if (status_menuitems[i] == NULL) continue;
- dbusmenu_menuitem_property_set(status_menuitems[i], DBUSMENU_MENUITEM_PROP_SENSITIVE, "false");
+ dbusmenu_menuitem_property_set_bool(status_menuitems[i], DBUSMENU_MENUITEM_PROP_SENSITIVE, FALSE);
}
}
@@ -117,7 +117,7 @@ status_update (void) {
StatusProviderStatus i;
for (i = STATUS_PROVIDER_STATUS_ONLINE; i < STATUS_PROVIDER_STATUS_LAST; i++) {
if (status_menuitems[i] == NULL) continue;
- dbusmenu_menuitem_property_set(status_menuitems[i], DBUSMENU_MENUITEM_PROP_SENSITIVE, "true");
+ dbusmenu_menuitem_property_set_bool(status_menuitems[i], DBUSMENU_MENUITEM_PROP_SENSITIVE, TRUE);
}
}
}
@@ -171,7 +171,7 @@ build_user_item (DbusmenuMenuitem * root)
if (name[0] != '\0') {
DbusmenuMenuitem * useritem = dbusmenu_menuitem_new();
dbusmenu_menuitem_property_set(useritem, DBUSMENU_MENUITEM_PROP_LABEL, name);
- dbusmenu_menuitem_property_set(useritem, DBUSMENU_MENUITEM_PROP_SENSITIVE, "false");
+ dbusmenu_menuitem_property_set_bool(useritem, DBUSMENU_MENUITEM_PROP_SENSITIVE, FALSE);
dbusmenu_menuitem_child_append(root, useritem);
}
@@ -205,11 +205,10 @@ build_menu (gpointer data)
status_menuitems[i] = dbusmenu_menuitem_new();
- dbusmenu_menuitem_property_set(status_menuitems[i], "type", DBUSMENU_CLIENT_TYPES_IMAGE);
dbusmenu_menuitem_property_set(status_menuitems[i], DBUSMENU_MENUITEM_PROP_LABEL, _(status_strings[i]));
dbusmenu_menuitem_property_set(status_menuitems[i], DBUSMENU_MENUITEM_PROP_ICON, status_icons[i]);
if (global_status == STATUS_PROVIDER_STATUS_DISCONNECTED) {
- dbusmenu_menuitem_property_set(status_menuitems[i], DBUSMENU_MENUITEM_PROP_SENSITIVE, "false");
+ dbusmenu_menuitem_property_set_bool(status_menuitems[i], DBUSMENU_MENUITEM_PROP_SENSITIVE, FALSE);
}
g_signal_connect(G_OBJECT(status_menuitems[i]), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(status_menu_click), GINT_TO_POINTER(i));