summaryrefslogtreecommitdiff
path: root/stickynotes
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-05-10 12:25:28 +0200
committerraveit65 <[email protected]>2020-06-06 20:07:41 +0200
commit10f3682c5ecb8cc04d42f630a1e4a1a7ba0b9075 (patch)
tree02861d229b561ea2c72715f83f0ba55a740b26eb /stickynotes
parentc676f92b9c6e707e3d07545833b114d23acdad36 (diff)
downloadmate-applets-10f3682c5ecb8cc04d42f630a1e4a1a7ba0b9075.tar.bz2
mate-applets-10f3682c5ecb8cc04d42f630a1e4a1a7ba0b9075.tar.xz
stickynotes: Remove enum conversion warnings
Diffstat (limited to 'stickynotes')
-rw-r--r--stickynotes/stickynotes.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
index f8d9ebb1..4c7ce215 100644
--- a/stickynotes/stickynotes.c
+++ b/stickynotes/stickynotes.c
@@ -488,19 +488,19 @@ stickynote_set_color (StickyNote *note,
colors[i].blue = (colors[i].blue * (10 - i)) / 10;
}
- gtk_widget_override_background_color (note->w_window, GTK_STATE_NORMAL, &colors[0]);
- gtk_widget_override_background_color (note->w_body, GTK_STATE_NORMAL, &colors[0]);
- gtk_widget_override_background_color (note->w_lock, GTK_STATE_NORMAL, &colors[0]);
- gtk_widget_override_background_color (note->w_close, GTK_STATE_NORMAL, &colors[0]);
- gtk_widget_override_background_color (note->w_resize_se, GTK_STATE_NORMAL, &colors[0]);
- gtk_widget_override_background_color (note->w_resize_sw, GTK_STATE_NORMAL, &colors[0]);
+ gtk_widget_override_background_color (note->w_window, GTK_STATE_FLAG_NORMAL, &colors[0]);
+ gtk_widget_override_background_color (note->w_body, GTK_STATE_FLAG_NORMAL, &colors[0]);
+ gtk_widget_override_background_color (note->w_lock, GTK_STATE_FLAG_NORMAL, &colors[0]);
+ gtk_widget_override_background_color (note->w_close, GTK_STATE_FLAG_NORMAL, &colors[0]);
+ gtk_widget_override_background_color (note->w_resize_se, GTK_STATE_FLAG_NORMAL, &colors[0]);
+ gtk_widget_override_background_color (note->w_resize_sw, GTK_STATE_FLAG_NORMAL, &colors[0]);
} else {
- gtk_widget_override_background_color (note->w_window, GTK_STATE_NORMAL, NULL);
- gtk_widget_override_background_color (note->w_body, GTK_STATE_NORMAL, NULL);
- gtk_widget_override_background_color (note->w_lock, GTK_STATE_NORMAL, NULL);
- gtk_widget_override_background_color (note->w_close, GTK_STATE_NORMAL, NULL);
- gtk_widget_override_background_color (note->w_resize_se, GTK_STATE_NORMAL, NULL);
- gtk_widget_override_background_color (note->w_resize_sw, GTK_STATE_NORMAL, NULL);
+ gtk_widget_override_background_color (note->w_window, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_background_color (note->w_body, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_background_color (note->w_lock, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_background_color (note->w_close, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_background_color (note->w_resize_se, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_background_color (note->w_resize_sw, GTK_STATE_FLAG_NORMAL, NULL);
}
if (font_color_str_actual)
@@ -509,13 +509,13 @@ stickynote_set_color (StickyNote *note,
gdk_rgba_parse (&color, font_color_str_actual);
- gtk_widget_override_color (note->w_window, GTK_STATE_NORMAL, &color);
- gtk_widget_override_color (note->w_body, GTK_STATE_NORMAL, &color);
+ gtk_widget_override_color (note->w_window, GTK_STATE_FLAG_NORMAL, &color);
+ gtk_widget_override_color (note->w_body, GTK_STATE_FLAG_NORMAL, &color);
}
else
{
- gtk_widget_override_color (note->w_window, GTK_STATE_NORMAL, NULL);
- gtk_widget_override_color (note->w_body, GTK_STATE_NORMAL, NULL);
+ gtk_widget_override_color (note->w_window, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_color (note->w_body, GTK_STATE_FLAG_NORMAL, NULL);
}
if (color_str_actual)