[gtk+/wip/baedert/drawing: 41/396] Remove now useless snapshot implementations



commit 065a65de9a1f3c3a1d6dd8e9364c1306cfbdec31
Author: Timm Bäder <mail baedert org>
Date:   Wed May 3 11:14:28 2017 +0200

    Remove now useless snapshot implementations

 gtk/gtkfilechooserbutton.c |   11 -----------
 gtk/gtkfontbutton.c        |   11 -----------
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 7d3eba0..179cc22 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -381,16 +381,6 @@ gtk_file_chooser_button_measure (GtkWidget       *widget,
 }
 
 static void
-gtk_file_chooser_button_snapshot (GtkWidget   *widget,
-                                  GtkSnapshot *snapshot)
-{
-  GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (widget);
-  GtkFileChooserButtonPrivate *priv = gtk_file_chooser_button_get_instance_private (button);
-
-  gtk_widget_snapshot_child (widget, priv->child, snapshot);
-}
-
-static void
 gtk_file_chooser_button_size_allocate (GtkWidget     *widget,
                                        GtkAllocation *allocation)
 {
@@ -427,7 +417,6 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
   widget_class->state_flags_changed = gtk_file_chooser_button_state_flags_changed;
   widget_class->measure = gtk_file_chooser_button_measure;
   widget_class->size_allocate = gtk_file_chooser_button_size_allocate;
-  widget_class->snapshot = gtk_file_chooser_button_snapshot;
 
   /**
    * GtkFileChooserButton::file-set:
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index ee8e76d..c7e0ea7 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -463,16 +463,6 @@ gtk_font_button_measure (GtkWidget       *widget,
 }
 
 static void
-gtk_font_button_snapshot (GtkWidget   *widget,
-                          GtkSnapshot *snapshot)
-{
-  GtkFontButton *button = GTK_FONT_BUTTON (widget);
-  GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (button);
-
-  gtk_widget_snapshot_child (widget, priv->button, snapshot);
-}
-
-static void
 gtk_font_button_size_allocate (GtkWidget     *widget,
                                GtkAllocation *allocation)
 {
@@ -499,7 +489,6 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
 
   widget_class->measure = gtk_font_button_measure;
   widget_class->size_allocate = gtk_font_button_size_allocate;
-  widget_class->snapshot = gtk_font_button_snapshot;
 
   klass->font_set = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]