From 651b22791ed39fc3b9e5634c14db629e88cc15bf Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 21 Dec 2021 09:51:20 +0100 Subject: dict: implicit conversion changes signedness: 'gboolean' to 'guint' --- mate-dictionary/libgdict/gdict-client-context.c | 2 +- mate-dictionary/libgdict/gdict-defbox.c | 4 ++-- mate-dictionary/src/gdict-window.c | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'mate-dictionary') diff --git a/mate-dictionary/libgdict/gdict-client-context.c b/mate-dictionary/libgdict/gdict-client-context.c index 7d42d5fd..8bc9cbcd 100644 --- a/mate-dictionary/libgdict/gdict-client-context.c +++ b/mate-dictionary/libgdict/gdict-client-context.c @@ -419,7 +419,7 @@ gdict_client_context_set_property (GObject *object, priv->client_name = g_strdup (g_value_get_string (value)); break; case GDICT_CONTEXT_PROP_LOCAL_ONLY: - priv->local_only = g_value_get_boolean (value); + priv->local_only = (g_value_get_boolean (value) != FALSE); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); diff --git a/mate-dictionary/libgdict/gdict-defbox.c b/mate-dictionary/libgdict/gdict-defbox.c index 8f6e0d23..087c8761 100644 --- a/mate-dictionary/libgdict/gdict-defbox.c +++ b/mate-dictionary/libgdict/gdict-defbox.c @@ -1563,7 +1563,7 @@ set_cursor_if_appropriate (GdictDefbox *defbox, if (hovering != defbox->priv->is_hovering) { - defbox->priv->is_hovering = hovering; + defbox->priv->is_hovering = (hovering != FALSE); if (defbox->priv->is_hovering) gdk_window_set_cursor (gtk_text_view_get_window (text_view, @@ -2060,7 +2060,7 @@ gdict_defbox_set_show_find (GdictDefbox *defbox, if (priv->show_find == show_find) return; - priv->show_find = show_find; + priv->show_find = (show_find != FALSE); if (priv->show_find) { gtk_widget_show_all (priv->find_pane); 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); -- cgit v1.2.1