Commit dfbc1199 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

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.
parent 663bf3db
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment