[gtk+/gtk-style-context: 424/533] Use gtk_render_activity() when rendering progressbars through GtkStyle
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 424/533] Use gtk_render_activity() when rendering progressbars through GtkStyle
- Date: Wed, 1 Dec 2010 02:41:28 +0000 (UTC)
commit 50e3c16c8edf937141f8baa3d923faff4fcdaa01
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Nov 21 19:38:07 2010 +0100
Use gtk_render_activity() when rendering progressbars through GtkStyle
gtk/gtkstyle.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index eaa0a25..482cdf4 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2540,8 +2540,13 @@ gtk_default_draw_box (GtkStyle *style,
cairo_save (cr);
- gtk_render_background (context, cr, x, y, width, height);
- gtk_render_frame (context, cr, x, y, width, height);
+ if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_PROGRESSBAR))
+ gtk_render_activity (context, cr, x, y, width, height);
+ else
+ {
+ gtk_render_background (context, cr, x, y, width, height);
+ gtk_render_frame (context, cr, x, y, width, height);
+ }
cairo_restore (cr);
gtk_style_context_restore (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]