diff --git a/src/gtkgui.glade b/src/gtkgui.glade
index 9ae3bb94f..2fab9dca2 100644
--- a/src/gtkgui.glade
+++ b/src/gtkgui.glade
@@ -47,7 +47,7 @@
True
-
+
True
gtk-new
1
@@ -67,7 +67,7 @@
True
-
+
True
gtk-connect
1
@@ -93,7 +93,7 @@
True
-
+
True
gtk-add
1
@@ -113,7 +113,7 @@
True
-
+
True
gtk-find
1
@@ -131,6 +131,138 @@
True
_Advanced
True
+
+
+
+
@@ -159,7 +291,7 @@
-
+
True
gtk-about
1
@@ -187,7 +319,7 @@
-
+
True
gtk-quit
1
@@ -222,7 +354,7 @@
-
+
True
gtk-network
1
@@ -243,7 +375,7 @@
-
+
True
gtk-properties
1
@@ -271,7 +403,7 @@
-
+
True
gtk-preferences
1
@@ -13662,7 +13794,7 @@ the Jabber network.
True
- GTK_BUTTONBOX_DEFAULT_STYLE
+ GTK_BUTTONBOX_END
6
@@ -14084,7 +14216,7 @@ the Jabber network.
True
- GTK_BUTTONBOX_DEFAULT_STYLE
+ GTK_BUTTONBOX_END
6
@@ -15329,7 +15461,7 @@ the Jabber network.
True
-
+
True
gtk-jump-to
1
@@ -15343,10 +15475,22 @@ the Jabber network.
-
@@ -15356,7 +15500,7 @@ the Jabber network.
True
-
+
True
gtk-refresh
1
@@ -15389,7 +15533,7 @@ the Jabber network.
-
+
True
gtk-dialog-authentication
1
@@ -15414,7 +15558,7 @@ the Jabber network.
True
-
+
True
gtk-dialog-question
1
@@ -15435,7 +15579,7 @@ the Jabber network.
True
-
+
True
gtk-go-up
1
@@ -15455,7 +15599,7 @@ the Jabber network.
True
-
+
True
gtk-go-down
1
@@ -15478,7 +15622,7 @@ the Jabber network.
True
-
+
True
gtk-add
1
@@ -15497,7 +15641,7 @@ the Jabber network.
True
-
+
True
gtk-remove
1
@@ -15529,7 +15673,7 @@ the Jabber network.
True
-
+
True
gtk-justify-fill
1
diff --git a/src/roster_window.py b/src/roster_window.py
index 2be1de742..4fadd937e 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -278,9 +278,14 @@ class RosterWindow:
join_gc_menuitem = self.xml.get_widget('join_gc_menuitem')
add_new_contact_menuitem = self.xml.get_widget('add_new_contact_menuitem')
service_disco_menuitem = self.xml.get_widget('service_disco_menuitem')
- show_offline_contacts_menuitem = self.xml.get_widget('show_offline_contacts_menuitem')
+ advanced_menuitem = self.xml.get_widget('advanced_menuitem')
+ show_offline_contacts_menuitem = self.xml.get_widget(
+ 'show_offline_contacts_menuitem')
+ profile_avatar_menuitem = self.xml.get_widget('profile_avatar_menuitem')
+
if self.add_new_contact_handler_id:
- add_new_contact_menuitem.handler_disconnect(self.add_new_contact_handler_id)
+ add_new_contact_menuitem.handler_disconnect(
+ self.add_new_contact_handler_id)
self.add_new_contact_handler_id = None
if self.service_disco_handler_id:
service_disco_menuitem.handler_disconnect(
@@ -399,19 +404,18 @@ class RosterWindow:
join_gc_menuitem.set_sensitive(True)
add_new_contact_menuitem.set_sensitive(True)
service_disco_menuitem.set_sensitive(True)
+ advanced_menuitem.set_sensitive(True)
show_offline_contacts_menuitem.set_sensitive(True)
+ profile_avatar_menuitem.set_sensitive(True)
else:
- #remove submenu from menuitems and make the insensitive
- new_message_menuitem.remove_submenu()
+ # make the menuitems insensitive
new_message_menuitem.set_sensitive(False)
- join_gc_menuitem.remove_submenu()
join_gc_menuitem.set_sensitive(False)
- add_new_contact_menuitem.remove_submenu()
add_new_contact_menuitem.set_sensitive(False)
- service_disco_menuitem.remove_submenu()
service_disco_menuitem.set_sensitive(False)
- #FIXME: make insensitive profile,avatar menuitem
+ advanced_menuitem.set_sensitive(False)
show_offline_contacts_menuitem.set_sensitive(False)
+ profile_avatar_menuitem.set_sensitive(False)
def draw_roster(self):
'''Clear and draw roster'''