From 10f3682c5ecb8cc04d42f630a1e4a1a7ba0b9075 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 10 May 2020 12:25:28 +0200 Subject: stickynotes: Remove enum conversion warnings --- stickynotes/stickynotes.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'stickynotes') 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) -- cgit v1.2.1