[five-or-more] Fix GtkStyleContext warnings with GTK+ 3.20
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more] Fix GtkStyleContext warnings with GTK+ 3.20
- Date: Sun, 31 Jul 2016 03:55:42 +0000 (UTC)
commit 14fd3507e79e0896810bb414c997f63cf5126cb8
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jul 30 22:55:20 2016 -0500
Fix GtkStyleContext warnings with GTK+ 3.20
src/five-or-more.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/five-or-more.c b/src/five-or-more.c
index 9689ba8..7d8d6b7 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -287,7 +287,7 @@ refresh_preview_surfaces (void)
cairo_surface_t *preview_surface = NULL;
context = gtk_widget_get_style_context (widget);
- gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &bg);
+ gtk_style_context_get_background_color (context, gtk_style_context_get_state (context), &bg);
/* Like the refresh_pixmaps() function, we may be called before
* the window is ready. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]