make idle part of preference window insensitive if idle is not supported. fixes #2949
This commit is contained in:
parent
15597f8b37
commit
e007756ac8
|
@ -1322,7 +1322,7 @@ Disabled</property>
|
|||
<property name="border_width">12</property>
|
||||
<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>
|
||||
|
|
|
@ -398,6 +398,10 @@ class PreferencesWindow:
|
|||
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').\
|
||||
|
|
Loading…
Reference in New Issue