Skip to content
Snippets Groups Projects
Commit e28a70ac authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Preferences: Reintroduce merge accounts setting

parent 52d0da5a
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.36.0 -->
<!-- Generated with glade 3.22.2 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<object class="GtkAdjustment" id="adjustment_status_auto_away">
......@@ -398,6 +398,24 @@
<property name="margin_top">6</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="merge_accounts_checkbutton">
<property name="label" translatable="yes">Me_rge accounts</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">Displays all your accounts merged into a single one</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_merge_accounts_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="show_avatars_in_roster_checkbutton">
<property name="label" translatable="yes">Show a_vatars of contacts in contact list</property>
......@@ -413,7 +431,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
<property name="position">1</property>
</packing>
</child>
<child>
......@@ -431,7 +449,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>
......@@ -449,7 +467,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
<property name="position">3</property>
</packing>
</child>
<child>
......@@ -507,7 +525,7 @@
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">3</property>
<property name="position">4</property>
</packing>
</child>
</object>
......
......@@ -100,6 +100,10 @@ def __init__(self):
self._ui.tabs_placement.set_active(3)
## Contact List Appearance
# Merge accounts
st = app.config.get('mergeaccounts')
self._ui.merge_accounts_checkbutton.set_active(st)
# Display avatars in roster
st = app.config.get('show_avatars_in_roster')
self._ui.show_avatars_in_roster_checkbutton.set_active(st)
......@@ -590,6 +594,10 @@ def on_tab_placement_changed(self, widget):
else: # right
app.config.set('tabs_position', 'right')
def on_merge_accounts_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'mergeaccounts')
app.app.activate_action('merge')
def on_show_avatars_in_roster_checkbutton_toggled(self, widget):
self.on_checkbutton_toggled(widget, 'show_avatars_in_roster')
app.interface.roster.setup_and_draw_roster()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment