aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-18 16:50:18 -0600
committerTed Gould <ted@gould.cx>2009-12-18 16:50:18 -0600
commit59b9b829bf71787d4a05ad73a34762da047fd6b6 (patch)
tree23495670b7b883211be21534fd87e24325a5b73e /src
parent79bb77adadf9d4e3a1fd5d83caa10a20232faa2e (diff)
downloadayatana-indicator-session-59b9b829bf71787d4a05ad73a34762da047fd6b6.tar.gz
ayatana-indicator-session-59b9b829bf71787d4a05ad73a34762da047fd6b6.tar.bz2
ayatana-indicator-session-59b9b829bf71787d4a05ad73a34762da047fd6b6.zip
Settin' some bools
Diffstat (limited to 'src')
-rw-r--r--src/users-service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users-service.c b/src/users-service.c
index b4310da..0297f01 100644
--- a/src/users-service.c
+++ b/src/users-service.c
@@ -65,9 +65,9 @@ static void
gdm_settings_change (void)
{
if (!will_lock_screen()) {
- dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, "false");
+ dbusmenu_menuitem_property_set_bool(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, FALSE);
} else {
- dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, "true");
+ dbusmenu_menuitem_property_set_bool(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, TRUE);
}
return;
@@ -179,9 +179,9 @@ rebuild_items (DbusmenuMenuitem *root,
g_signal_connect(G_OBJECT(lock_menuitem), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(lock_screen), NULL);
dbusmenu_menuitem_child_append(root, lock_menuitem);
if (!will_lock_screen()) {
- dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, "false");
+ dbusmenu_menuitem_property_set_bool(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, FALSE);
} else {
- dbusmenu_menuitem_property_set(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, "true");
+ dbusmenu_menuitem_property_set_bool(lock_menuitem, DBUSMENU_MENUITEM_PROP_SENSITIVE, TRUE);
}
if (can_activate == TRUE)