[libwnck/wip/warnings2: 4/6] selector: avoid a deprecation warning



commit 40844f907288d8e76c92092e218456d1baac3288
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Apr 27 12:59:27 2017 +0300

    selector: avoid a deprecation warning

 libwnck/selector.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libwnck/selector.c b/libwnck/selector.c
index 7888530..c5ca6c8 100644
--- a/libwnck/selector.c
+++ b/libwnck/selector.c
@@ -1011,7 +1011,7 @@ wnck_selector_scroll_event (GtkWidget      *widget,
 static void
 wnck_selector_menu_hidden (GtkWidget *menu, WnckSelector *selector)
 {
-  gtk_widget_set_state (GTK_WIDGET (selector), GTK_STATE_NORMAL);
+  gtk_widget_set_state_flags (GTK_WIDGET (selector), GTK_STATE_FLAG_NORMAL, TRUE);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]