[gtk+] Fix a resizing problem with marks on scales
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Fix a resizing problem with marks on scales
- Date: Thu, 16 Apr 2009 00:52:58 -0400 (EDT)
commit dfbc1199d42de55467fa7a7e80c9b316a423ab95
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 16 00:50:46 2009 -0400
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 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 87ba227..b738d6d 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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]