diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-12 22:18:19 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-12-12 22:18:19 -0500 |
commit | 05fbd32c4d22aee569786d916131af3d10f63542 (patch) | |
tree | ae0ab8f2fa04dc0bd9776d8dba277f1f34200579 /gtk | |
parent | b891d205ddec1d89ce7915a453e5411b7def8ceb (diff) | |
download | gtk+-05fbd32c4d22aee569786d916131af3d10f63542.tar.gz |
button: Add private api to get at the gesture
Attaching another gesture from the outside does not
work currently, so let widgets share their button's
gesture for now.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkbutton.c | 8 | ||||
-rw-r--r-- | gtk/gtkbuttonprivate.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 99bca66ec5..b89ac609d1 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1146,3 +1146,11 @@ gtk_button_get_icon_name (GtkButton *button) return NULL; } + +GtkGesture * +gtk_button_get_gesture (GtkButton *button) +{ + GtkButtonPrivate *priv = gtk_button_get_instance_private (button); + + return priv->gesture; +} diff --git a/gtk/gtkbuttonprivate.h b/gtk/gtkbuttonprivate.h index ebb8ec6cb3..b0f79fc07b 100644 --- a/gtk/gtkbuttonprivate.h +++ b/gtk/gtkbuttonprivate.h @@ -41,6 +41,7 @@ struct _GtkButtonPrivate guint child_type : 2; }; +GtkGesture * gtk_button_get_gesture (GtkButton *button); G_END_DECLS |