diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2007-03-15 19:33:57 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@src.gnome.org> | 2007-03-15 19:33:57 +0000 |
commit | ccf49466a64602051ddffca43488b77576abeab2 (patch) | |
tree | 2695b60d9ff5e30516ee4950860bd3ac0a778254 /gtk/gtkaction.h | |
parent | 0b1c9b7cc26d293477a6823a40d3e1feebbd6df7 (diff) | |
download | gtk+-ccf49466a64602051ddffca43488b77576abeab2.tar.gz |
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
Diffstat (limited to 'gtk/gtkaction.h')
-rw-r--r-- | gtk/gtkaction.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkaction.h b/gtk/gtkaction.h index e1f3b12878..41a0e422a7 100644 --- a/gtk/gtkaction.h +++ b/gtk/gtkaction.h @@ -73,8 +73,9 @@ struct _GtkActionClass void (* disconnect_proxy) (GtkAction *action, GtkWidget *proxy); + GtkWidget *(* get_submenu) (GtkAction *action); + /* Padding for future expansion */ - void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); void (*_gtk_reserved3) (void); void (*_gtk_reserved4) (void); @@ -109,6 +110,7 @@ void gtk_action_connect_accelerator (GtkAction *action); void gtk_action_disconnect_accelerator (GtkAction *action); G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction *action); GClosure *gtk_action_get_accel_closure (GtkAction *action); +GtkWidget * gtk_action_get_submenu (GtkAction *action); /* protected ... for use by child actions */ void gtk_action_block_activate_from (GtkAction *action, |