]> Pileus Git - ~andy/gtk/commit
GtkWidget: Add gtk_widget_insert_action_group()
authorLars Uebernickel <lars.uebernickel@canonical.com>
Fri, 17 Aug 2012 22:09:35 +0000 (18:09 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 20 Aug 2012 17:09:04 +0000 (13:09 -0400)
commitd30d56452cbd8d1c495c902018df17dee14875c8
tree83fa4421d6d170fd063dab7742f1e1d75d378d82
parent2e578194770653e84caf495eddc481f562118b44
GtkWidget: Add gtk_widget_insert_action_group()

This allows adding a GActionGroup with a given name at an arbitrary
point in the widget tree.

This patch also adds an internal _get_action_muxer() API.  Calling this
will create a GActionMuxer associated with the widget.  The parent of
the muxer will be the muxer of the widget's conceptual parent.  For
non-menus, that is the normal parent.  For menus, it is the attach
widget.

In this way, we end up with a hierarchy of GActionMuxer that largely
reflects the hierarchy of GtkWidget, but only in places that the action
context has been requested.  These muxers are the ones on which the
inserted actions groups are installed.

A following patch will add a user of this API.
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
gtk/gtkmenu.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwidgetprivate.h