Commit 9355aed9 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Daniel Brötzmann

Preferences: Add reset button for hints

parent a21c05f9
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.2 -->
<!-- Generated with glade 3.36.0 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<object class="GtkAdjustment" id="adjustment_status_auto_away">
......@@ -2529,7 +2529,6 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<property name="use_underline">True</property>
<property name="justify">right</property>
<property name="mnemonic_widget">proxies_combobox</property>
<property name="angle">0.01</property>
<style>
<class name="dim-label"/>
</style>
......@@ -2652,6 +2651,23 @@ to discover one from the server. (Example: stun.iptel.org)</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="reset_help">
<property name="label" translatable="yes">_Reset Hints</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">In order to introduce you to features, Gajim displays some hints. This button will reset all these hints.</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="_on_reset_help_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
</child>
<child type="label">
......
......@@ -1059,5 +1059,13 @@ class Preferences(Gtk.ApplicationWindow):
def _on_debug_folder_clicked(self, _widget):
open_file(configpaths.get('DEBUG'))
def _on_reset_help_clicked(self, widget):
widget.set_sensitive(False)
helping_hints = [
'start_chat',
]
for hint in helping_hints:
app.config.set('show_help_%s' % hint, True)
def on_open_advanced_editor_button_clicked(self, _widget):
open_window('AdvancedConfig')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment