[triggers] Remove invisible status
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.1 -->
|
||||
<!-- Generated with glade 3.22.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<object class="GtkListStore" id="liststore1">
|
||||
@@ -436,24 +436,6 @@
|
||||
<property name="position">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="invisible_cb">
|
||||
<property name="label" translatable="yes">Invisible</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<signal name="toggled" handler="on_status_cb_toggled" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label">
|
||||
|
||||
@@ -294,7 +294,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
|
||||
# Fill window
|
||||
for w in ('conditions_treeview', 'config_box', 'event_combobox',
|
||||
'recipient_type_combobox', 'recipient_list_entry', 'delete_button',
|
||||
'online_cb', 'away_cb', 'xa_cb', 'dnd_cb', 'invisible_cb',
|
||||
'online_cb', 'away_cb', 'xa_cb', 'dnd_cb',
|
||||
'use_sound_cb', 'disable_sound_cb', 'use_popup_cb',
|
||||
'disable_popup_cb', 'use_auto_open_cb', 'disable_auto_open_cb',
|
||||
'use_systray_cb', 'disable_systray_cb', 'use_roster_cb',
|
||||
@@ -382,7 +382,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
|
||||
else:
|
||||
self._ui.special_status_rb.set_active(True)
|
||||
values = value.split()
|
||||
for v in ('online', 'away', 'xa', 'dnd', 'invisible'):
|
||||
for v in ('online', 'away', 'xa', 'dnd'):
|
||||
if v in values:
|
||||
self._ui.__dict__[v + '_cb'].set_active(True)
|
||||
else:
|
||||
@@ -461,7 +461,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
|
||||
status = ''
|
||||
else:
|
||||
status = _('and I am: ')
|
||||
for st in ('online', 'away', 'xa', 'dnd', 'invisible'):
|
||||
for st in ('online', 'away', 'xa', 'dnd'):
|
||||
if self._ui.__dict__[st + '_cb'].get_active():
|
||||
status += helpers.get_uf_show(st) + ' '
|
||||
model[iter_][1] = _('When event: %(event)s for category: '
|
||||
@@ -592,7 +592,7 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
|
||||
if self.active_num < 0:
|
||||
return
|
||||
status = ''
|
||||
for st in ('online', 'away', 'xa', 'dnd', 'invisible'):
|
||||
for st in ('online', 'away', 'xa', 'dnd'):
|
||||
if self._ui.__dict__[st + '_cb'].get_active():
|
||||
status += st + ' '
|
||||
if status:
|
||||
@@ -607,13 +607,13 @@ class TriggersPluginConfigDialog(GajimPluginConfigDialog):
|
||||
self._ui.status_expander.set_expanded(False)
|
||||
self.config[self.active_num]['status'] = 'all'
|
||||
# 'All status' clicked
|
||||
for st in ('online', 'away', 'xa', 'dnd', 'invisible'):
|
||||
for st in ('online', 'away', 'xa', 'dnd'):
|
||||
self._ui.__dict__[st + '_cb'].set_sensitive(False)
|
||||
else:
|
||||
self._ui.status_expander.set_expanded(True)
|
||||
self.set_status_config()
|
||||
# 'special status' clicked
|
||||
for st in ('online', 'away', 'xa', 'dnd', 'invisible'):
|
||||
for st in ('online', 'away', 'xa', 'dnd'):
|
||||
self._ui.__dict__[st + '_cb'].set_sensitive(True)
|
||||
|
||||
self.set_treeview_string()
|
||||
|
||||
Reference in New Issue
Block a user