diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 58e6b34210..295fd83119 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1015,6 +1015,14 @@ gtk_button_get_gesture (GtkButton *button) return priv->gesture; } +GtkActionHelper * +gtk_button_get_action_helper (GtkButton *button) +{ + GtkButtonPrivate *priv = gtk_button_get_instance_private (button); + + return priv->action_helper; +} + /** * gtk_button_set_child: (attributes org.gtk.Method.set_property=child) * @button: a `GtkButton` diff --git a/gtk/gtkbuttonprivate.h b/gtk/gtkbuttonprivate.h index cc2759f25b..07eb23e6f0 100644 --- a/gtk/gtkbuttonprivate.h +++ b/gtk/gtkbuttonprivate.h @@ -22,7 +22,9 @@ #include "gtkbutton.h" #include "gtkgesture.h" +#include "gtkactionhelperprivate.h" -GtkGesture * gtk_button_get_gesture (GtkButton *button); +GtkGesture * gtk_button_get_gesture (GtkButton *button); +GtkActionHelper * gtk_button_get_action_helper (GtkButton *button); #endif /* __GTK_BUTTON_PRIVATE_H__ */