summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-08-20 16:34:50 +0200
committerTimm Bäder <mail@baedert.org>2018-08-25 08:05:52 +0200
commit96e465b6d9389ebbfecbb851a9291e308f156bd3 (patch)
treeee2dce5654f75b4a7fcd82fc0aca17193c72b630
parent016de68ceb367cb115cf272efd3bd54f077d1a3e (diff)
downloadgtk+-96e465b6d9389ebbfecbb851a9291e308f156bd3.tar.gz
checkbutton: Remove snapshot implementation
It just does when the default GtkWidget implementation does anyway: snapshot all child widgets
-rw-r--r--gtk/gtkcheckbutton.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 083a0a7e26..c91a4c8bd0 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -257,22 +257,6 @@ gtk_check_button_get_property (GObject *object,
}
static void
-gtk_check_button_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (widget));
- GtkWidget *child;
-
- if (priv->draw_indicator)
- gtk_widget_snapshot_child (widget, priv->indicator_widget, snapshot);
-
- child = gtk_bin_get_child (GTK_BIN (widget));
-
- if (child)
- gtk_widget_snapshot_child (widget, child, snapshot);
-}
-
-static void
gtk_check_button_direction_changed (GtkWidget *widget,
GtkTextDirection previous_direction)
{
@@ -306,7 +290,6 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
widget_class->measure = gtk_check_button_measure;
widget_class->size_allocate = gtk_check_button_size_allocate;
- widget_class->snapshot = gtk_check_button_snapshot;
widget_class->state_flags_changed = gtk_check_button_state_flags_changed;
widget_class->direction_changed = gtk_check_button_direction_changed;