[gtk+/wip/baedert/drawing: 58/143] button: Remove gadget
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 58/143] button: Remove gadget
- Date: Fri, 19 May 2017 13:28:17 +0000 (UTC)
commit 99e02a35ab3dea357aec394c3a761bfba71b6610
Author: Timm Bäder <mail baedert org>
Date: Fri May 5 13:27:54 2017 +0200
button: Remove gadget
gtk/gtkbutton.c | 10 ----------
gtk/gtkbuttonprivate.h | 2 --
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index f3b861c..90f3083 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -70,7 +70,6 @@
#include "a11y/gtkbuttonaccessible.h"
#include "gtkapplicationprivate.h"
#include "gtkactionhelper.h"
-#include "gtkcsscustomgadgetprivate.h"
#include "gtkcontainerprivate.h"
/* Time out before giving up on getting a key release when animating
@@ -453,14 +452,6 @@ gtk_button_init (GtkButton *button)
g_signal_connect (priv->gesture, "cancel", G_CALLBACK (multipress_gesture_cancel_cb), button);
gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (priv->gesture), GTK_PHASE_BUBBLE);
- priv->gadget = gtk_css_custom_gadget_new_for_node (gtk_widget_get_css_node (GTK_WIDGET (button)),
- GTK_WIDGET (button),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL);
-
}
static void
@@ -470,7 +461,6 @@ gtk_button_finalize (GObject *object)
GtkButtonPrivate *priv = button->priv;
g_clear_object (&priv->gesture);
- g_clear_object (&priv->gadget);
G_OBJECT_CLASS (gtk_button_parent_class)->finalize (object);
}
diff --git a/gtk/gtkbuttonprivate.h b/gtk/gtkbuttonprivate.h
index 075f855..8c22711 100644
--- a/gtk/gtkbuttonprivate.h
+++ b/gtk/gtkbuttonprivate.h
@@ -21,7 +21,6 @@
#include "gtkactionhelper.h"
#include "gtkgesturesingle.h"
-#include "gtkcssgadgetprivate.h"
G_BEGIN_DECLS
@@ -29,7 +28,6 @@ G_BEGIN_DECLS
struct _GtkButtonPrivate
{
GtkActionHelper *action_helper;
- GtkCssGadget *gadget;
GdkDevice *grab_keyboard;
GdkWindow *event_window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]