GtkApplicationWindow: Further sanitize handling of merging app menu and menubar

The _set_show_app_menu should really be _set_show_menubar().

Also, correctly display just the window menu in the window when run
under GNOME 3.
This commit is contained in:
Colin Walters
2011-12-01 17:47:34 -05:00
committed by Ryan Lortie
parent b041d33465
commit 2c6b7eff17
3 changed files with 68 additions and 61 deletions

View File

@ -61,11 +61,9 @@ struct _GtkApplicationWindowClass
GType gtk_application_window_get_type (void) G_GNUC_CONST;
GtkWidget * gtk_application_window_new (GtkApplication *application);
void gtk_application_window_set_show_app_menu (GtkApplicationWindow *window,
gboolean show_app_menu);
gboolean gtk_application_window_get_show_app_menu (GtkApplicationWindow *window);
GtkWidget * gtk_application_window_get_app_menu (GtkApplicationWindow *window);
void gtk_application_window_set_show_menubar (GtkApplicationWindow *window,
gboolean show);
gboolean gtk_application_window_get_show_menubar (GtkApplicationWindow *window);
G_END_DECLS