[gtk+] themingengine: use gtk_icon_source_get_state_wildcarded()



commit 3ebde5303abf04e1ea745046aae11e96fabf470d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Aug 4 09:19:03 2013 +0200

    themingengine: use gtk_icon_source_get_state_wildcarded()
    
    A recent refactor of this code missed a check for the wildcarded state
    on the icon source.

 gtk/gtkthemingengine.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index edb493b..d47b7d2 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -2728,6 +2728,10 @@ gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine    *engine,
     scaled = g_object_ref (base_pixbuf);
 
   /* If the state was wildcarded, then generate a state. */
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+  wildcarded = gtk_icon_source_get_state_wildcarded (source);
+  G_GNUC_END_IGNORE_DEPRECATIONS;
+
   if (wildcarded)
     {
       if (state & GTK_STATE_FLAG_INSENSITIVE)


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