Commit 05fbd32c authored by Matthias Clasen's avatar Matthias Clasen

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.
parent b891d205
...@@ -1146,3 +1146,11 @@ gtk_button_get_icon_name (GtkButton *button) ...@@ -1146,3 +1146,11 @@ gtk_button_get_icon_name (GtkButton *button)
return NULL; return NULL;
} }
GtkGesture *
gtk_button_get_gesture (GtkButton *button)
{
GtkButtonPrivate *priv = gtk_button_get_instance_private (button);
return priv->gesture;
}
...@@ -41,6 +41,7 @@ struct _GtkButtonPrivate ...@@ -41,6 +41,7 @@ struct _GtkButtonPrivate
guint child_type : 2; guint child_type : 2;
}; };
GtkGesture * gtk_button_get_gesture (GtkButton *button);
G_END_DECLS G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment