summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-07 22:36:53 +0000
committerRui Matos <tiagomatos@gmail.com>2011-12-07 22:42:56 +0000
commit6ed591871862ec87ee66fe69dca5c42087a12160 (patch)
tree723aca7211189f2333e04db46d3cea47b6666694 /gtk/gtkprogressbar.c
parent7a6babfd0270fe42bf81223178fcd3f94ebd1a05 (diff)
downloadgtk+-6ed591871862ec87ee66fe69dca5c42087a12160.tar.gz
progressbar: Set state flags on draw
We were missing setting state flags on the style context before drawing.
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r--gtk/gtkprogressbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 319ac1ab15..33439a0fc4 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -759,6 +759,7 @@ gtk_progress_bar_paint_activity (GtkProgressBar *pbar,
}
gtk_style_context_save (context);
+ gtk_style_context_set_state (context, state);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_PULSE);
@@ -813,6 +814,7 @@ gtk_progress_bar_paint_continuous (GtkProgressBar *pbar,
}
gtk_style_context_save (context);
+ gtk_style_context_set_state (context, state);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
gtk_render_activity (context, cr, area.x, area.y, area.width, area.height);
@@ -919,6 +921,7 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
}
gtk_style_context_save (context);
+ gtk_style_context_set_state (context, state);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_TROUGH);
if (start_clip.width > 0 && start_clip.height > 0)
@@ -948,6 +951,7 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
cairo_clip (cr);
gtk_style_context_save (context);
+ gtk_style_context_set_state (context, state);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
gtk_render_layout (context, cr, x, y, layout);
@@ -987,6 +991,7 @@ gtk_progress_bar_draw (GtkWidget *widget,
height = gtk_widget_get_allocated_height (widget);
gtk_style_context_save (context);
+ gtk_style_context_set_state (context, state);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_TROUGH);
gtk_render_background (context, cr, 0, 0, width, height);