diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-11-30 15:03:33 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-11-30 15:03:33 +0100 |
commit | d8ef15c592c680d1b0060238e44be717c93dcad0 (patch) | |
tree | f613458508d85d96ad319586fc2e56a4cd134011 /gtk/gtkappchooserwidget.c | |
parent | 51cb082022994634e8639443c9f2463ac4c822e8 (diff) | |
download | gtk+-d8ef15c592c680d1b0060238e44be717c93dcad0.tar.gz |
app-chooser: update docs
Diffstat (limited to 'gtk/gtkappchooserwidget.c')
-rw-r--r-- | gtk/gtkappchooserwidget.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index d8c15f77e1..b73638c187 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -1069,6 +1069,13 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_DEFAULT_TEXT, pspec); + /** + * GtkAppChooserWidget::application-selected: + * @self: the object which received the signal + * @application: the selected #GAppInfo + * + * Emitted when an application item is selected from the widget's list. + */ signals[SIGNAL_APPLICATION_SELECTED] = g_signal_new ("application-selected", GTK_TYPE_APP_CHOOSER_WIDGET, @@ -1079,6 +1086,16 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass) G_TYPE_NONE, 1, G_TYPE_APP_INFO); + /** + * GtkAppChooserWidget::application-activated: + * @self: the object which received the signal + * @application: the activated #GAppInfo + * + * Emitted when an application item is activated from the widget's list. + * This usually happens when the user double clicks an item, or an item + * is selected and the user presses one of the keys Space, Shift+Space, + * Return or Enter. + */ signals[SIGNAL_APPLICATION_ACTIVATED] = g_signal_new ("application-activated", GTK_TYPE_APP_CHOOSER_WIDGET, @@ -1089,6 +1106,17 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass) G_TYPE_NONE, 1, G_TYPE_APP_INFO); + /** + * GtkAppChooserWidget::populate-popup: + * @self: the object which received the signal + * @menu: the #GtkMenu to populate + * @application: the current #GAppInfo + * + * Emitted when a context menu is about to popup over an application item. + * Clients can insert menu items into the provided #GtkMenu object in the + * callback of this signal; the context menu will be shown over the item if + * at least one item has been added to the menu. + */ signals[SIGNAL_POPULATE_POPUP] = g_signal_new ("populate-popup", GTK_TYPE_APP_CHOOSER_WIDGET, |