diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-11-14 10:58:40 +0000 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:53:02 +0100 |
commit | e5e55d450d674bdfde6c86992274d8e22f949eb6 (patch) | |
tree | 7131f38a6f32d5d6975aec47142632426a0b981d /vcl/unx/gtk/window/gloactiongroup.cxx | |
parent | f5804cddbc2d103cabf7054905dc1bd59512b9b6 (diff) |
gbooleans are true if non-zero, bin == TRUE comparisons.
Change-Id: Ieb6c73993b3ef3854d81fdeb81661d75f1fe954f
Diffstat (limited to 'vcl/unx/gtk/window/gloactiongroup.cxx')
-rw-r--r-- | vcl/unx/gtk/window/gloactiongroup.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/window/gloactiongroup.cxx b/vcl/unx/gtk/window/gloactiongroup.cxx index 756779a559ca..ac1686589b6a 100644 --- a/vcl/unx/gtk/window/gloactiongroup.cxx +++ b/vcl/unx/gtk/window/gloactiongroup.cxx @@ -192,7 +192,7 @@ g_lo_action_group_perform_submenu_action (GLOActionGroup *group, if (pSalMenu != NULL) { gboolean bState = g_variant_get_boolean (state); - if (bState == TRUE) + if (bState) pSalMenu->Activate (action_name); else pSalMenu->Deactivate (action_name); @@ -215,7 +215,7 @@ g_lo_action_group_change_state (GActionGroup *group, if (action != NULL) { - if (action->submenu == TRUE) + if (action->submenu) g_lo_action_group_perform_submenu_action (lo_group, action_name, value); else { @@ -229,7 +229,7 @@ g_lo_action_group_change_state (GActionGroup *group, is_new = TRUE; } - if (g_variant_is_of_type (value, action->state_type) == TRUE) + if (g_variant_is_of_type (value, action->state_type)) { if (action->state) g_variant_unref(action->state); |