summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-12-19 12:33:21 -0500
committerRyan Lortie <desrt@desrt.ca>2011-12-19 12:51:12 -0500
commit8578fefaa5c1dee41d0b3743065edf12925fff66 (patch)
tree0c6c45a4546998212b6464afb62a6d6d8860aad8 /gtk/gtkapplication.h
parent4e5e47931d0474c03b7e6c8450de783a2ff120b4 (diff)
downloadgtk+-8578fefaa5c1dee41d0b3743065edf12925fff66.tar.gz
GtkApplication: add menu API
We add the app-menu and menubar public APIs to GtkApplication while leaving the implementation in GApplication. The actual implementation will be moved soon.
Diffstat (limited to 'gtk/gtkapplication.h')
-rw-r--r--gtk/gtkapplication.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkapplication.h b/gtk/gtkapplication.h
index a75d66c411..2f87bb9b9c 100644
--- a/gtk/gtkapplication.h
+++ b/gtk/gtkapplication.h
@@ -73,9 +73,16 @@ void gtk_application_add_window (GtkApplication *application,
void gtk_application_remove_window (GtkApplication *application,
GtkWindow *window);
-
GList * gtk_application_get_windows (GtkApplication *application);
+GMenuModel * gtk_application_get_app_menu (GtkApplication *application);
+void gtk_application_set_app_menu (GtkApplication *application,
+ GMenuModel *model);
+
+GMenuModel * gtk_application_get_menubar (GtkApplication *application);
+void gtk_application_set_menubar (GtkApplication *application,
+ GMenuModel *model);
+
void gtk_application_add_accelerator (GtkApplication *application,
const gchar *accelerator,
const gchar *action_name,