[frogr] Put the 'Authorize' item and 'Accounts' submenu in the same section
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Put the 'Authorize' item and 'Accounts' submenu in the same section
- Date: Tue, 27 Nov 2012 10:50:27 +0000 (UTC)
commit 1b245fd95c8236df23d075fdba357f58c4b5c742
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Tue Nov 27 10:57:37 2012 +0100
Put the 'Authorize' item and 'Accounts' submenu in the same section
src/frogr-main-view.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 1fadbea..c9a8fb0 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -806,7 +806,7 @@ _populate_accounts_submenu (FrogrMainView *self)
GMenuItem *accounts_menu;
GMenuItem *menu_item = NULL;
GMenuModel *submenu = NULL;
-
+ GMenuModel *section = NULL;
GSList *accounts = NULL;
GSList *item = NULL;
const gchar *username = NULL;
@@ -844,7 +844,10 @@ _populate_accounts_submenu (FrogrMainView *self)
}
accounts_menu = g_menu_item_new_submenu (_("Accounts"), submenu);
- g_menu_insert_item (G_MENU (priv->app_menu), 1, accounts_menu);
+
+ /* Insert the submenu in the right section */
+ section = g_menu_model_get_item_link (priv->app_menu, 0, G_MENU_LINK_SECTION);
+ g_menu_insert_item (G_MENU (section), 1, accounts_menu);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]