summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-05-06 14:53:09 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-05-06 15:10:43 -0400
commit579afaa9a1473ed561f4552242f1eff57b4a2250 (patch)
tree14b33766ca7032f456132de6ba66b505ddc32d01 /gtk/gtkprogressbar.c
parent73d9ca67e6ea1021ebee4351a9cf0a10b07178da (diff)
downloadgtk+-579afaa9a1473ed561f4552242f1eff57b4a2250.tar.gz
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
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r--gtk/gtkprogressbar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index c4fb26627a..46e9aa42b7 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)