button: Remove css box drawing

This commit is contained in:
Timm Bäder
2017-05-03 10:03:59 +02:00
committed by Matthias Clasen
parent 7656bd9bc3
commit ca94c680cc

View File

@@ -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);
@@ -819,31 +810,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)