]> Pileus Git - ~andy/gtk/commit
Add GtkActionClass::get_submenu() vfunc: actions providing a menu item or
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 15 Mar 2007 19:33:57 +0000 (19:33 +0000)
committerEmmanuele Bassi <ebassi@src.gnome.org>
Thu, 15 Mar 2007 19:33:57 +0000 (19:33 +0000)
commitccf49466a64602051ddffca43488b77576abeab2
tree2695b60d9ff5e30516ee4950860bd3ac0a778254
parent0b1c9b7cc26d293477a6823a40d3e1feebbd6df7
Add GtkActionClass::get_submenu() vfunc: actions providing a menu item or

2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkaction.[ch]: Add GtkActionClass::get_submenu() vfunc:
actions providing a menu item or a menu tool button with already
a submenu should return the GtkMenu widget.

* gtk/gtkuimanager.c (update_node): If an action provides its
own submenu, use it instead of adding an empty one

* gtk/gtkrecentaction.[ch]: Add GtkRecentAction, an action
implementing the GtkRecentChooser interface for displaying the
list of recently used files into menus and toolbars generated
using GtkUIManager. (#338843)

* gtk/Makefile.am:
* gtk/gtk.h:
* gtk/gtk.symbols: Add GtkRecentAction API to the build.

* tests/testactions.c: Exercise the GtkRecentAction API.

svn path=/trunk/; revision=17524
ChangeLog
gtk/Makefile.am
gtk/gtk.h
gtk/gtk.symbols
gtk/gtkaction.c
gtk/gtkaction.h
gtk/gtkactiongroup.c
gtk/gtkrecentaction.c [new file with mode: 0644]
gtk/gtkrecentaction.h [new file with mode: 0644]
gtk/gtkuimanager.c
tests/testactions.c