Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk/engine/sugar-style.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/engine/sugar-style.c')
-rw-r--r--gtk/engine/sugar-style.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/engine/sugar-style.c b/gtk/engine/sugar-style.c
index 0ffaf06..e048fc1 100644
--- a/gtk/engine/sugar-style.c
+++ b/gtk/engine/sugar-style.c
@@ -420,18 +420,15 @@ sugar_style_draw_box (GtkStyle *style,
sugar_draw_scrollbar_trough (cr, &range_info);
} else { /* Progress bar trough */
SugarInfo info;
- gboolean fill;
sugar_fill_generic_info (&info, style, state_type, shadow_type, widget, detail, x, y, width, height);
if (widget && !GTK_WIDGET_IS_SENSITIVE (widget))
info.state = GTK_STATE_INSENSITIVE;
- fill = (gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (widget)) != 0.0);
-
/* Needed because the trough and bar are cached in a buffer inside GtkProgress. */
sugar_fill_background (cr, &info);
- sugar_draw_progressbar_trough (cr, &info, fill);
+ sugar_draw_progressbar_trough (cr, &info);
}
} else if (DETAIL ("bar")) {
SugarInfo info;