summaryrefslogtreecommitdiff
path: root/mate-dictionary/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-21 09:51:20 +0100
committerraveit65 <[email protected]>2022-02-11 17:35:28 +0100
commit651b22791ed39fc3b9e5634c14db629e88cc15bf (patch)
treed2156aa562b5a7216cafdbffbda77fbf9a83df26 /mate-dictionary/src
parent06fa4ba1d6259f63a34268b9cac3de1ed464b935 (diff)
downloadmate-utils-651b22791ed39fc3b9e5634c14db629e88cc15bf.tar.bz2
mate-utils-651b22791ed39fc3b9e5634c14db629e88cc15bf.tar.xz
dict: implicit conversion changes signedness: 'gboolean' to 'guint'
Diffstat (limited to 'mate-dictionary/src')
-rw-r--r--mate-dictionary/src/gdict-window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index 1d35c310..75f9a6f5 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -235,7 +235,7 @@ gdict_window_set_sidebar_visible (GdictWindow *window,
{
GtkAction *action;
- window->sidebar_visible = is_visible;
+ window->sidebar_visible = (is_visible != FALSE);
if (window->sidebar_visible)
gtk_widget_show (window->sidebar_frame);
@@ -856,21 +856,21 @@ gdict_window_load_state (GdictWindow *window)
window->default_height = -1;
}
- window->is_maximized = g_key_file_get_boolean (state_key, "WindowState", "IsMaximized", &error);
+ window->is_maximized = (g_key_file_get_boolean (state_key, "WindowState", "IsMaximized", &error) != FALSE);
if (error != NULL)
{
g_clear_error (&error);
window->is_maximized = FALSE;
}
- window->sidebar_visible = g_key_file_get_boolean (state_key, "WindowState", "SidebarVisible", &error);
+ window->sidebar_visible = (g_key_file_get_boolean (state_key, "WindowState", "SidebarVisible", &error) != FALSE);
if (error != NULL)
{
g_clear_error (&error);
window->sidebar_visible = FALSE;
}
- window->statusbar_visible = g_key_file_get_boolean (state_key, "WindowState", "StatusbarVisible", &error);
+ window->statusbar_visible = (g_key_file_get_boolean (state_key, "WindowState", "StatusbarVisible", &error) != FALSE);
if (error != NULL)
{
g_clear_error (&error);
@@ -1082,7 +1082,7 @@ gdict_window_cmd_view_sidebar (GtkToggleAction *action,
{
g_assert (GDICT_IS_WINDOW (window));
- window->sidebar_visible = gtk_toggle_action_get_active (action);
+ window->sidebar_visible = (gtk_toggle_action_get_active (action) != FALSE);
if (window->sidebar_visible)
gtk_widget_show (window->sidebar_frame);
@@ -1096,7 +1096,7 @@ gdict_window_cmd_view_statusbar (GtkToggleAction *action,
{
g_assert (GDICT_IS_WINDOW (window));
- window->statusbar_visible = gtk_toggle_action_get_active (action);
+ window->statusbar_visible = (gtk_toggle_action_get_active (action) != FALSE);
if (window->statusbar_visible)
gtk_widget_show (window->status);