[gtk+/wip/css-icons: 12/15] themingengine: Implement icon drawing for checks and options



commit 32449e08bc51b10f9b107542cf0db94826d77f20
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 11 03:40:10 2014 +0200

    themingengine: Implement icon drawing for checks and options

 gtk/gtkthemingengine.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 6f428b1..fe6a045 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1067,6 +1067,9 @@ gtk_theming_engine_render_check (GtkThemingEngine *engine,
   gint border_width;
   GtkThemingBackground bg;
 
+  if (render_icon_image (engine, cr, x, y, width, height))
+    return;
+
   _gtk_theming_background_init (&bg, engine, 
                                 x, y,
                                 width, height,
@@ -1189,6 +1192,9 @@ gtk_theming_engine_render_option (GtkThemingEngine *engine,
   GtkBorder border;
   GtkThemingBackground bg;
 
+  if (render_icon_image (engine, cr, x, y, width, height))
+    return;
+
   _gtk_theming_background_init (&bg, engine, 
                                 x, y,
                                 width, height,


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