diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-11-24 17:04:38 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-11-24 17:12:04 +0100 |
commit | 6b900cf2761582c38b310414c9e4138dd77536a6 (patch) | |
tree | e8937a83e077be3c2ca60773efd0aa02523adb51 /gtk/gtkappchooserwidget.h | |
parent | 783b36398e3c7dd90605996c510faaffc6d250fe (diff) | |
download | gtk+-6b900cf2761582c38b310414c9e4138dd77536a6.tar.gz |
app-chooser-widget: add a 'populate-popup' signal for context menus
This way applications can append items to the menu, which will
automatically show when there's more than one item in it.
Diffstat (limited to 'gtk/gtkappchooserwidget.h')
-rw-r--r-- | gtk/gtkappchooserwidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkappchooserwidget.h b/gtk/gtkappchooserwidget.h index 2bfd00407c..a52b64e096 100644 --- a/gtk/gtkappchooserwidget.h +++ b/gtk/gtkappchooserwidget.h @@ -32,6 +32,7 @@ #define __GTK_APP_CHOOSER_WIDGET_H__ #include <gtk/gtkbox.h> +#include <gtk/gtkmenu.h> #include <gio/gio.h> #define GTK_TYPE_APP_CHOOSER_WIDGET\ @@ -67,6 +68,10 @@ struct _GtkAppChooserWidgetClass { void (* application_activated) (GtkAppChooserWidget *self, GAppInfo *app_info); + void (* populate_popup) (GtkAppChooserWidget *self, + GtkMenu *menu, + GAppInfo *app_info); + /* padding for future class expansion */ gpointer padding[16]; }; |