mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
progressbar: Remove unnecessary snapshot implementation
This commit is contained in:
parent
f85448ffbf
commit
0956c30ee5
@ -446,17 +446,6 @@ allocate_trough (GtkGizmo *gizmo,
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
snapshot_trough (GtkGizmo *gizmo,
|
||||
GtkSnapshot *snapshot)
|
||||
|
||||
{
|
||||
GtkProgressBar *pbar = GTK_PROGRESS_BAR (gtk_widget_get_parent (GTK_WIDGET (gizmo)));
|
||||
GtkProgressBarPrivate *priv = gtk_progress_bar_get_instance_private (pbar);
|
||||
|
||||
gtk_widget_snapshot_child (GTK_WIDGET (gizmo), priv->progress_widget, snapshot);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_progress_bar_init (GtkProgressBar *pbar)
|
||||
{
|
||||
@ -476,7 +465,7 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
|
||||
priv->trough_widget = gtk_gizmo_new ("trough",
|
||||
NULL,
|
||||
allocate_trough,
|
||||
snapshot_trough,
|
||||
NULL,
|
||||
NULL);
|
||||
gtk_widget_set_parent (priv->trough_widget, GTK_WIDGET (pbar));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user