From dfbc1199d42de55467fa7a7e80c9b316a423ab95 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 16 Apr 2009 00:50:46 -0400 Subject: [PATCH] Fix a resizing problem with marks on scales Queue a resize when marks are added to or removed from GtkScale widgets. This fixes a visual glitch with the 100% mark in gnome-volume-control. --- gtk/gtkscale.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 87ba227991..b738d6dd17 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1293,6 +1293,8 @@ gtk_scale_clear_marks (GtkScale *scale) priv->marks = NULL; _gtk_range_set_stop_values (GTK_RANGE (scale), NULL, 0); + + gtk_widget_queue_resize (GTK_WIDGET (scale)); } /** @@ -1349,6 +1351,8 @@ gtk_scale_add_mark (GtkScale *scale, _gtk_range_set_stop_values (GTK_RANGE (scale), values, n); g_free (values); + + gtk_widget_queue_resize (GTK_WIDGET (scale)); }