GtkModelButton: Add a menu-name property

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 29 October 2014 05:49 UTC

Add a menu-name property and use it in a default implementation of ::clicked to switch menus if we are inside a stack. This means GtkModelButton is no longer entirely generic, but rather expects to be used inside a GtkPopoverMenu. It still works in other contexts too, of course.

e095918 GtkModelButton: Add a menu-name property
gtk/gtkmodelbutton.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)

Upstream: git.gnome.org


  • Share