[gtk/wip/baedert/gl-rework: 115/176] progressbar: Remove unnecessary snapshot implementation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 115/176] progressbar: Remove unnecessary snapshot implementation
- Date: Sun, 29 Dec 2019 15:16:02 +0000 (UTC)
commit b970a8db90138bfac7f692bef40d9930e291efc2
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 9 11:58:52 2019 +0100
progressbar: Remove unnecessary snapshot implementation
gtk/gtkprogressbar.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 74a975c914..ccbc57b1ed 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]