summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gs-fade.c2
-rw-r--r--src/gs-grab-x11.c4
-rw-r--r--src/gs-listener-dbus.c10
-rw-r--r--src/gs-manager.c12
-rw-r--r--src/gs-prefs.c16
-rw-r--r--src/gs-watcher-x11.c8
-rw-r--r--src/gs-window-x11.c12
7 files changed, 32 insertions, 32 deletions
diff --git a/src/gs-fade.c b/src/gs-fade.c
index c4e12b4..5f162d3 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -272,7 +272,7 @@ gs_fade_set_enabled (GSFade *fade,
if (fade->priv->enabled != enabled)
{
- fade->priv->enabled = enabled;
+ fade->priv->enabled = (enabled != FALSE);
}
}
diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c
index cef6b15..733a01f 100644
--- a/src/gs-grab-x11.c
+++ b/src/gs-grab-x11.c
@@ -149,8 +149,8 @@ gs_grab_get (GSGrab *grab,
(gpointer *) &grab->priv->grab_window);
grab->priv->grab_display = display;
- grab->priv->no_pointer_grab = no_pointer_grab;
- grab->priv->hide_cursor = hide_cursor;
+ grab->priv->no_pointer_grab = (no_pointer_grab != FALSE);
+ grab->priv->hide_cursor = (hide_cursor != FALSE);
}
g_object_unref (G_OBJECT (cursor));
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index 42acfd0..520926d 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -363,7 +363,7 @@ gs_listener_set_throttle (GSListener *listener,
{
gs_debug ("Changing throttle status: %d", throttled);
- listener->priv->throttled = throttled;
+ listener->priv->throttled = (throttled != FALSE);
g_signal_emit (listener, signals [THROTTLE_CHANGED], 0, throttled);
}
@@ -390,7 +390,7 @@ static gboolean
listener_set_session_idle_internal (GSListener *listener,
gboolean idle)
{
- listener->priv->session_idle = idle;
+ listener->priv->session_idle = (idle != FALSE);
if (idle)
{
@@ -408,7 +408,7 @@ static gboolean
listener_set_active_internal (GSListener *listener,
gboolean active)
{
- listener->priv->active = active;
+ listener->priv->active = (active != FALSE);
/* if idle not in sync with active, change it */
if (listener->priv->session_idle != active)
@@ -496,7 +496,7 @@ gs_listener_set_session_idle (GSListener *listener,
}
}
- listener->priv->session_idle = idle;
+ listener->priv->session_idle = (idle != FALSE);
res = listener_check_activation (listener);
/* if activation fails then don't set idle */
@@ -541,7 +541,7 @@ gs_listener_set_activation_enabled (GSListener *listener,
if (listener->priv->activation_enabled != enabled)
{
- listener->priv->activation_enabled = enabled;
+ listener->priv->activation_enabled = (enabled != FALSE);
}
}
diff --git a/src/gs-manager.c b/src/gs-manager.c
index b7f95df..96b54fb 100644
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -418,7 +418,7 @@ gs_manager_set_throttled (GSManager *manager,
{
GSList *l;
- manager->priv->throttled = throttled;
+ manager->priv->throttled = (throttled != FALSE);
if (! manager->priv->dialog_up)
{
@@ -462,7 +462,7 @@ gs_manager_set_lock_active (GSManager *manager,
{
GSList *l;
- manager->priv->lock_active = lock_active;
+ manager->priv->lock_active = (lock_active != FALSE);
for (l = manager->priv->windows; l; l = l->next)
{
gs_window_set_lock_enabled (l->data, lock_active);
@@ -495,7 +495,7 @@ gs_manager_set_lock_enabled (GSManager *manager,
if (manager->priv->lock_enabled != lock_enabled)
{
- manager->priv->lock_enabled = lock_enabled;
+ manager->priv->lock_enabled = (lock_enabled != FALSE);
}
}
@@ -509,7 +509,7 @@ gs_manager_set_logout_enabled (GSManager *manager,
{
GSList *l;
- manager->priv->logout_enabled = logout_enabled;
+ manager->priv->logout_enabled = (logout_enabled != FALSE);
for (l = manager->priv->windows; l; l = l->next)
{
gs_window_set_logout_enabled (l->data, logout_enabled);
@@ -527,7 +527,7 @@ gs_manager_set_keyboard_enabled (GSManager *manager,
{
GSList *l;
- manager->priv->keyboard_enabled = enabled;
+ manager->priv->keyboard_enabled = (enabled != FALSE);
for (l = manager->priv->windows; l; l = l->next)
{
gs_window_set_keyboard_enabled (l->data, enabled);
@@ -545,7 +545,7 @@ gs_manager_set_user_switch_enabled (GSManager *manager,
{
GSList *l;
- manager->priv->user_switch_enabled = user_switch_enabled;
+ manager->priv->user_switch_enabled = (user_switch_enabled != FALSE);
for (l = manager->priv->windows; l; l = l->next)
{
gs_window_set_user_switch_enabled (l->data, user_switch_enabled);
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index 7fc8522..e9d42e2 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -215,35 +215,35 @@ static void
_gs_prefs_set_idle_activation_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->idle_activation_enabled = value;
+ prefs->idle_activation_enabled = (value != FALSE);
}
static void
_gs_prefs_set_lock_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->lock_enabled = value;
+ prefs->lock_enabled = (value != FALSE);
}
static void
_gs_prefs_set_lock_disabled (GSPrefs *prefs,
gboolean value)
{
- prefs->lock_disabled = value;
+ prefs->lock_disabled = (value != FALSE);
}
static void
_gs_prefs_set_user_switch_disabled (GSPrefs *prefs,
gboolean value)
{
- prefs->user_switch_disabled = value;
+ prefs->user_switch_disabled = (value != FALSE);
}
static void
_gs_prefs_set_keyboard_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->keyboard_enabled = value;
+ prefs->keyboard_enabled = (value != FALSE);
}
static void
@@ -265,14 +265,14 @@ static void
_gs_prefs_set_status_message_enabled (GSPrefs *prefs,
gboolean enabled)
{
- prefs->status_message_enabled = enabled;
+ prefs->status_message_enabled = (enabled != FALSE);
}
static void
_gs_prefs_set_logout_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->logout_enabled = value;
+ prefs->logout_enabled = (value != FALSE);
}
static void
@@ -309,7 +309,7 @@ static void
_gs_prefs_set_user_switch_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->user_switch_enabled = value;
+ prefs->user_switch_enabled = (value != FALSE);
}
static void
diff --git a/src/gs-watcher-x11.c b/src/gs-watcher-x11.c
index 98b32d1..f3f44e1 100644
--- a/src/gs-watcher-x11.c
+++ b/src/gs-watcher-x11.c
@@ -203,7 +203,7 @@ _gs_watcher_set_session_idle_notice (GSWatcher *watcher,
{
gs_debug ("Changing idle notice state: %d", in_effect);
- watcher->priv->idle_notice = in_effect;
+ watcher->priv->idle_notice = (in_effect != FALSE);
}
else
{
@@ -230,7 +230,7 @@ _gs_watcher_set_session_idle (GSWatcher *watcher,
{
gs_debug ("Changing idle state: %d", is_idle);
- watcher->priv->idle = is_idle;
+ watcher->priv->idle = (is_idle != FALSE);
}
else
{
@@ -269,7 +269,7 @@ _gs_watcher_set_active_internal (GSWatcher *watcher,
/* reset state */
_gs_watcher_reset_state (watcher);
- watcher->priv->active = active;
+ watcher->priv->active = (active != FALSE);
}
return TRUE;
@@ -309,7 +309,7 @@ gs_watcher_set_enabled (GSWatcher *watcher,
{
gboolean is_active = gs_watcher_get_active (watcher);
- watcher->priv->enabled = enabled;
+ watcher->priv->enabled = (enabled != FALSE);
/* if we are disabling the watcher and we are
active shut it down */
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index b6aa859..7d6c530 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -1533,7 +1533,7 @@ window_set_dialog_up (GSWindow *window,
return;
}
- window->priv->dialog_up = dialog_up;
+ window->priv->dialog_up = (dialog_up != FALSE);
g_object_notify (G_OBJECT (window), "dialog-up");
}
@@ -1814,7 +1814,7 @@ gs_window_set_lock_enabled (GSWindow *window,
return;
}
- window->priv->lock_enabled = lock_enabled;
+ window->priv->lock_enabled = (lock_enabled != FALSE);
g_object_notify (G_OBJECT (window), "lock-enabled");
}
@@ -1832,7 +1832,7 @@ gs_window_set_keyboard_enabled (GSWindow *window,
{
g_return_if_fail (GS_IS_WINDOW (window));
- window->priv->keyboard_enabled = enabled;
+ window->priv->keyboard_enabled = (enabled != FALSE);
}
void
@@ -1859,7 +1859,7 @@ gs_window_set_logout_enabled (GSWindow *window,
{
g_return_if_fail (GS_IS_WINDOW (window));
- window->priv->logout_enabled = logout_enabled;
+ window->priv->logout_enabled = (logout_enabled != FALSE);
}
void
@@ -1868,7 +1868,7 @@ gs_window_set_user_switch_enabled (GSWindow *window,
{
g_return_if_fail (GS_IS_WINDOW (window));
- window->priv->user_switch_enabled = user_switch_enabled;
+ window->priv->user_switch_enabled = (user_switch_enabled != FALSE);
}
void
@@ -2278,7 +2278,7 @@ window_set_obscured (GSWindow *window,
return;
}
- window->priv->obscured = obscured;
+ window->priv->obscured = (obscured != FALSE);
g_object_notify (G_OBJECT (window), "obscured");
}