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

This commit is contained in:
Nikos Kouremenos 2006-09-09 13:23:14 +00:00
parent d1ab748cfd
commit fab576e10f
2 changed files with 15 additions and 16 deletions

View File

@ -25,14 +25,6 @@
</widget> </widget>
</child> </child>
<child>
<widget class="GtkMenuItem" id="open_gmail_inbox">
<property name="visible">True</property>
<property name="label" translatable="yes">_Open Gmail Inbox</property>
<property name="use_underline">True</property>
</widget>
</child>
<child> <child>
<widget class="GtkImageMenuItem" id="join_group_chat_menuitem"> <widget class="GtkImageMenuItem" id="join_group_chat_menuitem">
<property name="visible">True</property> <property name="visible">True</property>
@ -53,6 +45,14 @@
</widget> </widget>
</child> </child>
<child>
<widget class="GtkMenuItem" id="open_gmail_inbox_menuitem">
<property name="visible">True</property>
<property name="label" translatable="yes">_Open Gmail Inbox</property>
<property name="use_underline">True</property>
</widget>
</child>
<child> <child>
<widget class="GtkImageMenuItem" id="new_message_menuitem"> <widget class="GtkImageMenuItem" id="new_message_menuitem">
<property name="visible">True</property> <property name="visible">True</property>

View File

@ -1765,15 +1765,14 @@ class RosterWindow:
xml = gtkgui_helpers.get_glade('account_context_menu.glade') xml = gtkgui_helpers.get_glade('account_context_menu.glade')
account_context_menu = xml.get_widget('account_context_menu') account_context_menu = xml.get_widget('account_context_menu')
childs = account_context_menu.get_children()
status_menuitem = childs[0] status_menuitem = xml.get_widget('status_menuitem')
open_gmail_inbox_menuitem = childs[1] join_group_chat_menuitem =xml.get_widget('join_group_chat_menuitem')
join_group_chat_menuitem = childs[2] open_gmail_inbox_menuitem = xml.get_widget('open_gmail_inbox_menuitem')
new_message_menuitem = childs[3] new_message_menuitem = xml.get_widget('new_message_menuitem')
add_contact_menuitem = childs[4] add_contact_menuitem = xml.get_widget('add_contact_menuitem')
service_discovery_menuitem = childs[5] service_discovery_menuitem = xml.get_widget('service_discovery_menuitem')
edit_account_menuitem = childs[6] edit_account_menuitem = xml.get_widget('edit_account_menuitem')
sub_menu = gtk.Menu() sub_menu = gtk.Menu()
status_menuitem.set_submenu(sub_menu) status_menuitem.set_submenu(sub_menu)