summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-20 21:11:41 +0100
committerraveit65 <[email protected]>2022-01-26 16:44:07 +0100
commita32b67611920591c918c164b11b814d493923127 (patch)
tree073468491aa076191936ada01cef51f668d2219e
parent42e01cf4992c552bc7924bb8fd0087832e85e8c1 (diff)
downloadmate-panel-a32b67611920591c918c164b11b814d493923127.tar.bz2
mate-panel-a32b67611920591c918c164b11b814d493923127.tar.xz
Fix implicit conversion changes signedness: 'gboolean' to 'guint'
-rw-r--r--applets/notification_area/system-tray/na-tray-child.c2
-rw-r--r--applets/wncklet/showdesktop.c2
-rw-r--r--mate-panel/button-widget.c8
-rw-r--r--mate-panel/panel-action-button.c2
-rw-r--r--mate-panel/panel-applet-frame.c2
-rw-r--r--mate-panel/panel-background.c2
-rw-r--r--mate-panel/panel-config-global.c10
-rw-r--r--mate-panel/panel-lockdown.c50
-rw-r--r--mate-panel/panel-menu-button.c2
-rw-r--r--mate-panel/panel-menu-items.c6
-rw-r--r--mate-panel/panel-toplevel.c12
-rw-r--r--mate-panel/panel-widget.c14
12 files changed, 56 insertions, 56 deletions
diff --git a/applets/notification_area/system-tray/na-tray-child.c b/applets/notification_area/system-tray/na-tray-child.c
index cd7c305a..9eb03e22 100644
--- a/applets/notification_area/system-tray/na-tray-child.c
+++ b/applets/notification_area/system-tray/na-tray-child.c
@@ -546,7 +546,7 @@ na_tray_child_set_composited (NaTrayChild *child,
if (child->composited == composited)
return;
- child->composited = composited;
+ child->composited = (composited != FALSE);
if (gtk_widget_get_realized (GTK_WIDGET (child)))
gdk_window_set_composited (gtk_widget_get_window (GTK_WIDGET (child)),
composited);
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index 6b8dfa70..d500db13 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -590,7 +590,7 @@ static void show_desktop_changed_callback(WnckScreen* screen, ShowDesktopData* s
{
#ifdef HAVE_X11
if (sdd->wnck_screen != NULL)
- sdd->showing_desktop = wnck_screen_get_showing_desktop(sdd->wnck_screen);
+ sdd->showing_desktop = (wnck_screen_get_showing_desktop(sdd->wnck_screen) != FALSE);
#endif /* HAVE_X11 */
update_button_state (sdd);
diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c
index cd38a97f..895090fc 100644
--- a/mate-panel/button-widget.c
+++ b/mate-panel/button-widget.c
@@ -720,7 +720,7 @@ button_widget_set_activatable (ButtonWidget *button,
activatable = activatable != FALSE;
if (button->priv->activatable != activatable) {
- button->priv->activatable = activatable;
+ button->priv->activatable = (activatable != FALSE);
if (gtk_widget_is_drawable (GTK_WIDGET (button)))
gtk_widget_queue_draw (GTK_WIDGET (button));
@@ -802,7 +802,7 @@ button_widget_set_has_arrow (ButtonWidget *button,
if (button->priv->arrow == has_arrow)
return;
- button->priv->arrow = has_arrow;
+ button->priv->arrow = (has_arrow != FALSE);
gtk_widget_queue_draw (GTK_WIDGET (button));
@@ -828,7 +828,7 @@ button_widget_set_dnd_highlight (ButtonWidget *button,
if (button->priv->dnd_highlight == dnd_highlight)
return;
- button->priv->dnd_highlight = dnd_highlight;
+ button->priv->dnd_highlight = (dnd_highlight != FALSE);
gtk_widget_queue_draw (GTK_WIDGET (button));
@@ -854,7 +854,7 @@ button_widget_set_ignore_leave (ButtonWidget *button,
if (button->priv->ignore_leave == ignore_leave)
return;
- button->priv->ignore_leave = ignore_leave;
+ button->priv->ignore_leave = (ignore_leave != FALSE);
gtk_widget_queue_draw (GTK_WIDGET (button));
diff --git a/mate-panel/panel-action-button.c b/mate-panel/panel-action-button.c
index 12c7b2fa..7dfc688d 100644
--- a/mate-panel/panel-action-button.c
+++ b/mate-panel/panel-action-button.c
@@ -888,7 +888,7 @@ panel_action_button_set_dnd_enabled (PanelActionButton *button,
} else
gtk_drag_source_unset (GTK_WIDGET (button));
- button->priv->dnd_enabled = enabled;
+ button->priv->dnd_enabled = (enabled != FALSE);
g_object_notify (G_OBJECT (button), "dnd-enabled");
}
diff --git a/mate-panel/panel-applet-frame.c b/mate-panel/panel-applet-frame.c
index 2c1bb43c..2b0e4b7f 100644
--- a/mate-panel/panel-applet-frame.c
+++ b/mate-panel/panel-applet-frame.c
@@ -613,7 +613,7 @@ _mate_panel_applet_frame_update_flags (MatePanelAppletFrame *frame,
frame->priv->panel, GTK_WIDGET (frame), major, minor);
old_has_handle = frame->priv->has_handle;
- frame->priv->has_handle = has_handle;
+ frame->priv->has_handle = (has_handle != FALSE);
if (!old_has_handle && frame->priv->has_handle) {
/* we've added an handle, so we need to get the background for
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 0fae438e..139a50a3 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -417,7 +417,7 @@ panel_background_update_has_alpha (PanelBackground *background)
background->loaded_image)
has_alpha = gdk_pixbuf_get_has_alpha (background->loaded_image);
- background->has_alpha = has_alpha;
+ background->has_alpha = (has_alpha != FALSE);
}
static void
diff --git a/mate-panel/panel-config-global.c b/mate-panel/panel-config-global.c
index b837f5f0..9fb3e618 100644
--- a/mate-panel/panel-config-global.c
+++ b/mate-panel/panel-config-global.c
@@ -94,23 +94,23 @@ panel_global_config_set_entry (GSettings *settings, gchar *key)
if (strcmp (key, "tooltips-enabled") == 0)
global_config.tooltips_enabled =
- g_settings_get_boolean (settings, key);
+ (g_settings_get_boolean (settings, key) != FALSE);
else if (strcmp (key, "enable-animations") == 0)
global_config.enable_animations =
- g_settings_get_boolean (settings, key);
+ (g_settings_get_boolean (settings, key) != FALSE);
else if (strcmp (key, "drawer-autoclose") == 0)
global_config.drawer_auto_close =
- g_settings_get_boolean (settings, key);
+ (g_settings_get_boolean (settings, key) != FALSE);
else if (strcmp (key, "confirm-panel-remove") == 0)
global_config.confirm_panel_remove =
- g_settings_get_boolean (settings, key);
+ (g_settings_get_boolean (settings, key) != FALSE);
else if (strcmp (key, "highlight-launchers-on-mouseover") == 0)
global_config.highlight_when_over =
- g_settings_get_boolean (settings, key);
+ (g_settings_get_boolean (settings, key) != FALSE);
}
static void
diff --git a/mate-panel/panel-lockdown.c b/mate-panel/panel-lockdown.c
index 88cc2f16..16648ee3 100644
--- a/mate-panel/panel-lockdown.c
+++ b/mate-panel/panel-lockdown.c
@@ -64,7 +64,7 @@ locked_down_notify (GSettings *settings,
gchar *key,
PanelLockdown *lockdown)
{
- lockdown->locked_down = g_settings_get_boolean (settings, key);
+ lockdown->locked_down = (g_settings_get_boolean (settings, key) != FALSE);
panel_lockdown_invoke_closures (lockdown);
}
@@ -73,7 +73,7 @@ disable_command_line_notify (GSettings *settings,
gchar *key,
PanelLockdown *lockdown)
{
- lockdown->disable_command_line = g_settings_get_boolean (settings, key);
+ lockdown->disable_command_line = (g_settings_get_boolean (settings, key) != FALSE);
panel_lockdown_invoke_closures (lockdown);
}
@@ -82,7 +82,7 @@ disable_lock_screen_notify (GSettings *settings,
gchar *key,
PanelLockdown *lockdown)
{
- lockdown->disable_lock_screen = g_settings_get_boolean (settings, key);
+ lockdown->disable_lock_screen = (g_settings_get_boolean (settings, key) != FALSE);
panel_lockdown_invoke_closures (lockdown);
}
@@ -91,7 +91,7 @@ disable_log_out_notify (GSettings *settings,
gchar *key,
PanelLockdown *lockdown)
{
- lockdown->disable_log_out = g_settings_get_boolean (settings, key);
+ lockdown->disable_log_out = (g_settings_get_boolean (settings, key) != FALSE);
panel_lockdown_invoke_closures (lockdown);
}
@@ -100,7 +100,7 @@ disable_force_quit_notify (GSettings *settings,
gchar *key,
PanelLockdown *lockdown)
{
- lockdown->disable_force_quit = g_settings_get_boolean (settings, key);
+ lockdown->disable_force_quit = (g_settings_get_boolean (settings, key) != FALSE);
panel_lockdown_invoke_closures (lockdown);
}
@@ -161,34 +161,34 @@ panel_lockdown_init (void)
panel_lockdown.lockdown_settings = g_settings_new (LOCKDOWN_SCHEMA);
panel_lockdown.locked_down =
- panel_lockdown_load_bool (&panel_lockdown,
- panel_lockdown.panel_settings,
- PANEL_LOCKED_DOWN_KEY,
- G_CALLBACK (locked_down_notify));
+ (panel_lockdown_load_bool (&panel_lockdown,
+ panel_lockdown.panel_settings,
+ PANEL_LOCKED_DOWN_KEY,
+ G_CALLBACK (locked_down_notify)) != FALSE);
panel_lockdown.disable_command_line =
- panel_lockdown_load_bool (&panel_lockdown,
- panel_lockdown.lockdown_settings,
- LOCKDOWN_DISABLE_COMMAND_LINE_KEY,
- G_CALLBACK (disable_command_line_notify));
+ (panel_lockdown_load_bool (&panel_lockdown,
+ panel_lockdown.lockdown_settings,
+ LOCKDOWN_DISABLE_COMMAND_LINE_KEY,
+ G_CALLBACK (disable_command_line_notify)) != FALSE);
panel_lockdown.disable_lock_screen =
- panel_lockdown_load_bool (&panel_lockdown,
- panel_lockdown.lockdown_settings,
- LOCKDOWN_DISABLE_LOCK_SCREEN_KEY,
- G_CALLBACK (disable_lock_screen_notify));
+ (panel_lockdown_load_bool (&panel_lockdown,
+ panel_lockdown.lockdown_settings,
+ LOCKDOWN_DISABLE_LOCK_SCREEN_KEY,
+ G_CALLBACK (disable_lock_screen_notify)) != FALSE);
panel_lockdown.disable_log_out =
- panel_lockdown_load_bool (&panel_lockdown,
- panel_lockdown.lockdown_settings,
- LOCKDOWN_DISABLE_LOG_OUT_KEY,
- G_CALLBACK (disable_log_out_notify));
+ (panel_lockdown_load_bool (&panel_lockdown,
+ panel_lockdown.lockdown_settings,
+ LOCKDOWN_DISABLE_LOG_OUT_KEY,
+ G_CALLBACK (disable_log_out_notify)) != FALSE);
panel_lockdown.disable_force_quit =
- panel_lockdown_load_bool (&panel_lockdown,
- panel_lockdown.panel_settings,
- PANEL_DISABLE_FORCE_QUIT_KEY,
- G_CALLBACK (disable_force_quit_notify));
+ (panel_lockdown_load_bool (&panel_lockdown,
+ panel_lockdown.panel_settings,
+ PANEL_DISABLE_FORCE_QUIT_KEY,
+ G_CALLBACK (disable_force_quit_notify)) != FALSE);
panel_lockdown.disabled_applets =
panel_lockdown_load_disabled_applets (&panel_lockdown,
diff --git a/mate-panel/panel-menu-button.c b/mate-panel/panel-menu-button.c
index b2550ee0..969011af 100644
--- a/mate-panel/panel-menu-button.c
+++ b/mate-panel/panel-menu-button.c
@@ -867,7 +867,7 @@ panel_menu_button_set_use_menu_path (PanelMenuButton *button,
if (button->priv->use_menu_path == use_menu_path)
return;
- button->priv->use_menu_path = use_menu_path;
+ button->priv->use_menu_path = (use_menu_path != FALSE);
if (button->priv->menu) {
gtk_menu_detach (GTK_MENU (button->priv->menu));
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c
index a324f515..aa4c5d1f 100644
--- a/mate-panel/panel-menu-items.c
+++ b/mate-panel/panel-menu-items.c
@@ -1456,7 +1456,7 @@ GtkWidget* panel_place_menu_item_new(gboolean use_image)
setup_menuitem(GTK_WIDGET(menuitem), image ? panel_menu_icon_get_size() : GTK_ICON_SIZE_INVALID, image, _("Places"));
- menuitem->priv->use_image = use_image;
+ menuitem->priv->use_image = (use_image != FALSE);
menuitem->priv->menu = panel_place_menu_item_create_menu(menuitem);
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), menuitem->priv->menu);
@@ -1484,9 +1484,9 @@ panel_desktop_menu_item_new (gboolean use_image,
image,
_("System"));
- menuitem->priv->use_image = use_image;
+ menuitem->priv->use_image = (use_image != FALSE);
- menuitem->priv->append_lock_logout = append_lock_logout;
+ menuitem->priv->append_lock_logout = (append_lock_logout != FALSE);
if (append_lock_logout)
panel_lockdown_notify_add (G_CALLBACK (panel_desktop_menu_item_recreate_menu),
menuitem);
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index 591fb324..ad31400d 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -506,7 +506,7 @@ static void panel_toplevel_begin_grab_op(PanelToplevel* toplevel, PanelGrabOpTyp
window = gtk_widget_get_window (widget);
toplevel->priv->grab_op = op_type;
- toplevel->priv->grab_is_keyboard = grab_keyboard;
+ toplevel->priv->grab_is_keyboard = (grab_keyboard != FALSE);
toplevel->priv->orig_monitor = toplevel->priv->monitor;
toplevel->priv->orig_x = toplevel->priv->x;
@@ -5148,7 +5148,7 @@ panel_toplevel_set_x (PanelToplevel *toplevel,
}
if (toplevel->priv->x_centered != x_centered) {
- toplevel->priv->x_centered = x_centered;
+ toplevel->priv->x_centered = (x_centered != FALSE);
changed = TRUE;
g_object_notify (G_OBJECT (toplevel), "x-centered");
}
@@ -5186,7 +5186,7 @@ panel_toplevel_set_y (PanelToplevel *toplevel,
}
if (toplevel->priv->y_centered != y_centered) {
- toplevel->priv->y_centered = y_centered;
+ toplevel->priv->y_centered = (y_centered != FALSE);
changed = TRUE;
g_object_notify (G_OBJECT (toplevel), "y-centered");
}
@@ -5329,7 +5329,7 @@ panel_toplevel_set_auto_hide (PanelToplevel *toplevel,
if (toplevel->priv->auto_hide == auto_hide)
return;
- toplevel->priv->auto_hide = auto_hide;
+ toplevel->priv->auto_hide = (auto_hide != FALSE);
if (toplevel->priv->auto_hide)
panel_toplevel_queue_auto_hide (toplevel);
@@ -5405,7 +5405,7 @@ panel_toplevel_set_animate (PanelToplevel *toplevel,
if (toplevel->priv->animate == animate)
return;
- toplevel->priv->animate = animate;
+ toplevel->priv->animate = (animate != FALSE);
g_object_notify (G_OBJECT (toplevel), "animate");
}
@@ -5475,7 +5475,7 @@ panel_toplevel_set_enable_arrows (PanelToplevel *toplevel,
if (toplevel->priv->arrows_enabled == enable_arrows)
return;
- toplevel->priv->arrows_enabled = enable_arrows;
+ toplevel->priv->arrows_enabled = (enable_arrows != FALSE);
panel_toplevel_update_hide_buttons (toplevel);
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index 7a828021..a8c01854 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1689,7 +1689,7 @@ panel_widget_new (PanelToplevel *toplevel,
panel->orient = orient;
panel->sz = sz;
- panel->packed = packed;
+ panel->packed = (packed != FALSE);
panel->size = 0;
panel->toplevel = toplevel;
@@ -2493,7 +2493,7 @@ panel_widget_add (PanelWidget *panel,
ad->size_constrained = FALSE;
ad->expand_major = FALSE;
ad->expand_minor = FALSE;
- ad->locked = locked;
+ ad->locked = (locked != FALSE);
ad->size_hints = NULL;
g_object_set_data (G_OBJECT (applet),
MATE_PANEL_APPLET_DATA, ad);
@@ -2599,7 +2599,7 @@ void
panel_widget_set_packed (PanelWidget *panel_widget,
gboolean packed)
{
- panel_widget->packed = packed;
+ panel_widget->packed = (packed != FALSE);
gtk_widget_queue_resize (GTK_WIDGET (panel_widget));
}
@@ -2822,7 +2822,7 @@ panel_widget_set_applet_size_constrained (PanelWidget *panel,
if (ad->size_constrained == size_constrained)
return;
- ad->size_constrained = size_constrained;
+ ad->size_constrained = (size_constrained != FALSE);
gtk_widget_queue_resize (GTK_WIDGET (panel));
}
@@ -2845,8 +2845,8 @@ panel_widget_set_applet_expandable (PanelWidget *panel,
if (ad->expand_major == major && ad->expand_minor == minor)
return;
- ad->expand_major = major;
- ad->expand_minor = minor;
+ ad->expand_major = (major != FALSE);
+ ad->expand_minor = (minor != FALSE);
gtk_widget_queue_resize (GTK_WIDGET (panel));
}
@@ -2887,7 +2887,7 @@ panel_widget_set_applet_locked (PanelWidget *panel,
if (!ad)
return;
- ad->locked = locked;
+ ad->locked = (locked != FALSE);
}
gboolean