GtkProgressBar: Fix: progress can overflow trough

For visual explanation, visit https://gitlab.gnome.org/GNOME/gtk/-/issues/5751
The linked issue tracker is for GtkScale but GtkProgressBar has the exact same problem as well
This commit is contained in:
Mazhar Hussain 2023-09-30 14:11:47 +05:00
parent 68755c0fd2
commit 8367411785
No known key found for this signature in database

View File

@ -462,6 +462,7 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
NULL,
NULL,
NULL, NULL);
gtk_widget_set_overflow (pbar->trough_widget, GTK_OVERFLOW_HIDDEN);
gtk_widget_set_parent (pbar->trough_widget, GTK_WIDGET (pbar));
pbar->progress_widget = gtk_gizmo_new_with_role ("progress",