[gtk+] progressbar: fetch the padding without the trough style class



commit 579afaa9a1473ed561f4552242f1eff57b4a2250
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri May 6 14:53:09 2011 -0400

    progressbar: fetch the padding without the trough style class
    
    This is consistent with the rest of the widget, which uses only one
    padding value.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=649593

 gtk/gtkprogressbar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index c4fb266..46e9aa4 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -965,6 +965,7 @@ gtk_progress_bar_draw (GtkWidget      *widget,
 
   context = gtk_widget_get_style_context (widget);
   state = gtk_widget_get_state_flags (widget);
+  gtk_style_context_get_padding (context, state, &padding);
 
   orientation = priv->orientation;
   inverted = priv->inverted;
@@ -982,8 +983,6 @@ gtk_progress_bar_draw (GtkWidget      *widget,
   gtk_render_background (context, cr, 0, 0, width, height);
   gtk_render_frame (context, cr, 0, 0, width, height);
 
-  gtk_style_context_get_padding (context, state, &padding);
-
   gtk_style_context_restore (context);
 
   if (priv->activity_mode)



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