forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
663bf3db0e
commit
dfbc1199d4
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user