[frogr] Place the 'accounts' and 'authorize' menu items in the application menu for OSX
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Place the 'accounts' and 'authorize' menu items in the application menu for OSX
- Date: Mon, 9 Apr 2012 13:12:57 +0000 (UTC)
commit d74511560f18ae6f86f5707e18fcd8ad3e17c7db
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Mon Apr 9 15:10:30 2012 +0200
Place the 'accounts' and 'authorize' menu items in the application menu for OSX
src/frogr-main-view.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index ab64eff..00d0bb8 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -262,10 +262,21 @@ _tweak_menu_bar_for_mac (FrogrMainView *self)
gtk_osxapplication_insert_app_menu_item (osx_app, gtk_separator_menu_item_new (), 1);
gtk_widget_show_all (menu_item);
+ /* Relocate the 'accounts' menu item in the app menu */
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "accounts_menu_item"));
+ gtk_osxapplication_insert_app_menu_item (osx_app, menu_item, 2);
+ gtk_widget_show_all (menu_item);
+
+ /* Relocate the 'authorize' menu item in the app menu */
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "authorize_frogr_menu_item"));
+ gtk_osxapplication_insert_app_menu_item (osx_app, menu_item, 3);
+ gtk_osxapplication_insert_app_menu_item (osx_app, gtk_separator_menu_item_new (), 4);
+ gtk_widget_show_all (menu_item);
+
/* Relocate the 'preferences' menu item in the app menu */
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "preferences_menu_item"));
- gtk_osxapplication_insert_app_menu_item (osx_app, menu_item, 2);
- gtk_osxapplication_insert_app_menu_item (osx_app, gtk_separator_menu_item_new (), 3);
+ gtk_osxapplication_insert_app_menu_item (osx_app, menu_item, 5);
+ gtk_osxapplication_insert_app_menu_item (osx_app, gtk_separator_menu_item_new (), 6);
gtk_widget_show_all (menu_item);
/* Hide menus, menu items and separators that won't be shown in the Mac */
@@ -273,6 +284,8 @@ _tweak_menu_bar_for_mac (FrogrMainView *self)
gtk_widget_hide (menu_item);
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "help_menu_item"));
gtk_widget_hide (menu_item);
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "separator2"));
+ gtk_widget_hide (menu_item);
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "separator3"));
gtk_widget_hide (menu_item);
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "separator4"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]