[gnome-text-editor] prefs: add button to clear session history
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] prefs: add button to clear session history
- Date: Fri, 28 Jan 2022 20:36:00 +0000 (UTC)
commit cbfe3052d590386e1bf9d56febada17d0b880d05
Author: Christian Hergert <chergert redhat com>
Date: Fri Jan 28 12:35:07 2022 -0800
prefs: add button to clear session history
This also moves it closer to the restory session option so that there is
a bit more continuity between the two features.
Fixes #290
src/editor-preferences-dialog.ui | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/src/editor-preferences-dialog.ui b/src/editor-preferences-dialog.ui
index f6d33c5..858364c 100644
--- a/src/editor-preferences-dialog.ui
+++ b/src/editor-preferences-dialog.ui
@@ -111,6 +111,13 @@
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Behavior</property>
+ <child>
+ <object class="EditorPreferencesSwitch" id="discover">
+ <property name="title" translatable="yes">Discover Document Settings</property>
+ <property name="subtitle" translatable="yes">Apply settings using modelines, editorconfig,
or sensible defaults</property>
+ <property name="schema-key">discover-settings</property>
+ </object>
+ </child>
<child>
<object class="EditorPreferencesSwitch" id="session">
<property name="title" translatable="yes">Restore Session</property>
@@ -119,10 +126,16 @@
</object>
</child>
<child>
- <object class="EditorPreferencesSwitch" id="discover">
- <property name="title" translatable="yes">Discover Document Settings</property>
- <property name="subtitle" translatable="yes">Apply settings using modelines, editorconfig,
or sensible defaults</property>
- <property name="schema-key">discover-settings</property>
+ <object class="GtkButton">
+ <property name="action-name">app.clear-history</property>
+ <property name="focus-on-click">false</property>
+ <property name="halign">end</property>
+ <property name="label" translatable="yes">_Clear History</property>
+ <property name="margin-top">24</property>
+ <property name="use-underline">true</property>
+ <style>
+ <class name="destructive-action"/>
+ </style>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]