From fab576e10f6f2da4b7f15c71911893101258a9b0 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 9 Sep 2006 13:23:14 +0000 Subject: [PATCH] open gmail inbox in a better position (third, just after two submenus and not in between) fix childs position mess by mentioning by name [thus making it less difficult to break]; also use better name for open gmail inbox menuitem widget --- data/glade/account_context_menu.glade | 16 ++++++++-------- src/roster_window.py | 15 +++++++-------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/data/glade/account_context_menu.glade b/data/glade/account_context_menu.glade index 3dbeaff0f..6a601becd 100644 --- a/data/glade/account_context_menu.glade +++ b/data/glade/account_context_menu.glade @@ -25,14 +25,6 @@ - - - True - _Open Gmail Inbox - True - - - True @@ -53,6 +45,14 @@ + + + True + _Open Gmail Inbox + True + + + True diff --git a/src/roster_window.py b/src/roster_window.py index 8cc0c9f4a..aff927325 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1765,15 +1765,14 @@ class RosterWindow: xml = gtkgui_helpers.get_glade('account_context_menu.glade') account_context_menu = xml.get_widget('account_context_menu') - childs = account_context_menu.get_children() - status_menuitem = childs[0] - open_gmail_inbox_menuitem = childs[1] - join_group_chat_menuitem = childs[2] - new_message_menuitem = childs[3] - add_contact_menuitem = childs[4] - service_discovery_menuitem = childs[5] - edit_account_menuitem = childs[6] + status_menuitem = xml.get_widget('status_menuitem') + join_group_chat_menuitem =xml.get_widget('join_group_chat_menuitem') + open_gmail_inbox_menuitem = xml.get_widget('open_gmail_inbox_menuitem') + new_message_menuitem = xml.get_widget('new_message_menuitem') + add_contact_menuitem = xml.get_widget('add_contact_menuitem') + service_discovery_menuitem = xml.get_widget('service_discovery_menuitem') + edit_account_menuitem = xml.get_widget('edit_account_menuitem') sub_menu = gtk.Menu() status_menuitem.set_submenu(sub_menu)