diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-27 20:30:48 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-27 20:30:48 -0400 |
commit | 5c16de71f5ee5e2a146a472164f6f34fd5b4dca4 (patch) | |
tree | 42744c19e8f5d9fb5fdbe94b6e30bf54a3f02eaf /gtk/gtkappchooserwidget.c | |
parent | 5b4dfb3079451be7d93444dcf91726994ba0d29e (diff) | |
download | gtk+-5c16de71f5ee5e2a146a472164f6f34fd5b4dca4.tar.gz |
app chooser widget: Make final
Diffstat (limited to 'gtk/gtkappchooserwidget.c')
-rw-r--r-- | gtk/gtkappchooserwidget.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index 9ff532dc2f..5b6d37d207 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -71,6 +71,29 @@ * GtkAppChooserWidget has a single CSS node with name appchooser. */ +typedef struct _GtkAppChooserWidgetClass GtkAppChooserWidgetClass; +typedef struct _GtkAppChooserWidgetPrivate GtkAppChooserWidgetPrivate; + +struct _GtkAppChooserWidget { + GtkWidget parent_instance; + + GtkAppChooserWidgetPrivate *priv; +}; + +struct _GtkAppChooserWidgetClass { + GtkWidgetClass parent_class; + + void (* application_selected) (GtkAppChooserWidget *self, + GAppInfo *app_info); + + void (* application_activated) (GtkAppChooserWidget *self, + GAppInfo *app_info); + + void (* populate_popup) (GtkAppChooserWidget *self, + GtkMenu *menu, + GAppInfo *app_info); +}; + struct _GtkAppChooserWidgetPrivate { GAppInfo *selected_app_info; |