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