[gtk+/wip/baedert/drawing: 34/306] button: Remove css box drawing



commit 9a088d59cf420fd1ccf7c12e761bf9985bc5e6ca
Author: Timm Bäder <mail baedert org>
Date:   Wed May 3 10:03:59 2017 +0200

    button: Remove css box drawing

 gtk/gtkbutton.c |   36 +-----------------------------------
 1 files changed, 1 insertions(+), 35 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 8c5c222..aefa8ea 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -122,7 +122,6 @@ static void gtk_button_screen_changed (GtkWidget          *widget,
 static void gtk_button_unrealize (GtkWidget * widget);
 static void gtk_button_size_allocate (GtkWidget * widget,
                                      GtkAllocation * allocation);
-static void gtk_button_snapshot (GtkWidget * widget, GtkSnapshot *snapshot);
 static gint gtk_button_grab_broken (GtkWidget * widget,
                                    GdkEventGrabBroken * event);
 static gint gtk_button_key_release (GtkWidget * widget, GdkEventKey * event);
@@ -166,13 +165,6 @@ static void     gtk_button_allocate (GtkCssGadget        *gadget,
                                      GtkAllocation       *out_clip,
                                      gpointer             data);
 static void gtk_button_set_child_type (GtkButton *button, guint child_type);
-static gboolean gtk_button_render   (GtkCssGadget        *gadget,
-                                     GtkSnapshot         *snapshot,
-                                     int                  x,
-                                     int                  y,
-                                     int                  width,
-                                     int                  height,
-                                     gpointer             data);
 
 static GParamSpec *props[LAST_PROP] = { NULL, };
 static guint button_signals[LAST_SIGNAL] = { 0 };
@@ -224,7 +216,6 @@ gtk_button_class_init (GtkButtonClass *klass)
   widget_class->screen_changed = gtk_button_screen_changed;
   widget_class->unrealize = gtk_button_unrealize;
   widget_class->size_allocate = gtk_button_size_allocate;
-  widget_class->snapshot = gtk_button_snapshot;
   widget_class->grab_broken_event = gtk_button_grab_broken;
   widget_class->key_release_event = gtk_button_key_release;
   widget_class->enter_notify_event = gtk_button_enter_notify;
@@ -469,7 +460,7 @@ gtk_button_init (GtkButton *button)
                                                      GTK_WIDGET (button),
                                                      gtk_button_measure,
                                                      gtk_button_allocate,
-                                                     gtk_button_render,
+                                                     NULL,
                                                      NULL,
                                                      NULL);
 
@@ -820,31 +811,6 @@ gtk_button_allocate (GtkCssGadget        *gadget,
 }
 
 static void
-gtk_button_snapshot (GtkWidget   *widget,
-                     GtkSnapshot *snapshot)
-{
-  gtk_css_gadget_snapshot (GTK_BUTTON (widget)->priv->gadget, snapshot);
-}
-
-static gboolean
-gtk_button_render (GtkCssGadget *gadget,
-                   GtkSnapshot  *snapshot,
-                   int           x,
-                   int           y,
-                   int           width,
-                   int           height,
-                   gpointer      data)
-{
-  GtkWidget *widget;
-
-  widget = gtk_css_gadget_get_owner (gadget);
-
-  GTK_WIDGET_CLASS (gtk_button_parent_class)->snapshot (widget, snapshot);
-
-  return gtk_widget_has_visible_focus (widget);
-}
-
-static void
 gtk_button_do_release (GtkButton *button,
                        gboolean   emit_clicked)
 {


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