Author: asterix Date: 2007-04-19 00:30:42 +0200 (Thu, 19 Apr 2007) New Revision: 8071
Modified: trunk/src/groupchat_control.py Log: make contect menu items sentitive when they must be.
Modified: trunk/src/groupchat_control.py =================================================================== --- trunk/src/groupchat_control.py 2007-04-18 18:04:52 UTC (rev 8070) +++ trunk/src/groupchat_control.py 2007-04-18 22:30:42 UTC (rev 8071) @@ -471,7 +471,7 @@ self.subject_tooltip.set_tip(self.event_box, self.subject)
self.name_label.set_markup(text) - + def prepare_context_menu(self): '''sets compact view menuitem active state sets sensitivity state for configure_room''' @@ -484,8 +484,14 @@ self.nick) if c.affiliation not in ('owner', 'admin'): childs[1].set_sensitive(False) + else: + childs[1].set_sensitive(True) if c.affiliation != 'owner': childs[2].set_sensitive(False) + else: + childs[2].set_sensitive(True) + childs[3].set_sensitive(True) + childs[4].set_sensitive(True) else: # We are not connected to this groupchat, disable unusable menuitems childs[1].set_sensitive(False)