Author: roidelapluie Date: 2007-08-29 22:12:19 +0200 (Wed, 29 Aug 2007) New Revision: 8588
Modified: branches/gajim_0.11.1/data/glade/preferences_window.glade branches/gajim_0.11.1/src/config.py Log: Make idle part of preference window insensitive if idle is not supported. Fix #2949.
Modified: branches/gajim_0.11.1/data/glade/preferences_window.glade =================================================================== --- branches/gajim_0.11.1/data/glade/preferences_window.glade 2007-08-29 19:44:10 UTC (rev 8587) +++ branches/gajim_0.11.1/data/glade/preferences_window.glade 2007-08-29 20:12:19 UTC (rev 8588) @@ -2031,7 +2031,7 @@ <property name="spacing">12</property>
<child> - <widget class="GtkTable" id="table19"> + <widget class="GtkTable" id="autoaway_table"> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">4</property>
Modified: branches/gajim_0.11.1/src/config.py =================================================================== --- branches/gajim_0.11.1/src/config.py 2007-08-29 19:44:10 UTC (rev 8587) +++ branches/gajim_0.11.1/src/config.py 2007-08-29 20:12:19 UTC (rev 8588) @@ -392,6 +392,10 @@ self.auto_xa_message_entry.set_text(st) self.auto_xa_message_entry.set_sensitive(gajim.config.get('autoxa'))
+ from common import sleepy + if not sleepy.SUPPORTED: + self.xml.get_widget('autoaway_table').set_sensitive(False) + # ask_status when online / offline st = gajim.config.get('ask_online_status') self.xml.get_widget('prompt_online_status_message_checkbutton').\