summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-22 08:47:47 +0100
committerLuke from DC <[email protected]>2022-08-20 20:24:28 +0000
commitec93c117bf6dd3bc8f465012902dbd7aad38d6a7 (patch)
tree0136c6c93ace488f1a0281992e38c14a94e9b730
parent3084c93b8c7f0b4520a665e54dc508e7cda12dc1 (diff)
downloadmate-desktop-ec93c117bf6dd3bc8f465012902dbd7aad38d6a7.tar.bz2
mate-desktop-ec93c117bf6dd3bc8f465012902dbd7aad38d6a7.tar.xz
Fix implicit conversion changes signedness: 'gboolean' to 'guint'
-rw-r--r--libmate-desktop/mate-colorbutton.c2
-rw-r--r--libmate-desktop/mate-colorsel.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libmate-desktop/mate-colorbutton.c b/libmate-desktop/mate-colorbutton.c
index cf43301..de81782 100644
--- a/libmate-desktop/mate-colorbutton.c
+++ b/libmate-desktop/mate-colorbutton.c
@@ -763,7 +763,7 @@ mate_color_button_set_use_alpha (MateColorButton *color_button,
if (color_button->priv->use_alpha != use_alpha)
{
- color_button->priv->use_alpha = use_alpha;
+ color_button->priv->use_alpha = (use_alpha != FALSE);
gtk_widget_queue_draw (color_button->priv->draw_area);
diff --git a/libmate-desktop/mate-colorsel.c b/libmate-desktop/mate-colorsel.c
index 16dc81e..3d0bd30 100644
--- a/libmate-desktop/mate-colorsel.c
+++ b/libmate-desktop/mate-colorsel.c
@@ -2334,7 +2334,7 @@ mate_color_selection_set_has_opacity_control (MateColorSelection *colorsel,
if (priv->has_opacity != has_opacity)
{
- priv->has_opacity = has_opacity;
+ priv->has_opacity = (has_opacity != FALSE);
if (has_opacity)
{
gtk_widget_show (priv->opacity_slider);
@@ -2393,7 +2393,7 @@ mate_color_selection_set_has_palette (MateColorSelection *colorsel,
if (priv->has_palette != has_palette)
{
- priv->has_palette = has_palette;
+ priv->has_palette = (has_palette != FALSE);
if (has_palette)
gtk_widget_show (priv->palette_frame);
else