[gnome-latex/wip/side-panel] SidePanel: bind setting
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex/wip/side-panel] SidePanel: bind setting
- Date: Mon, 20 Apr 2020 15:10:10 +0000 (UTC)
commit a0f75a28683c62f5039c9f81151805ef969848ee
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Apr 20 17:08:41 2020 +0200
SidePanel: bind setting
data/org.gnome.gnome-latex.gschema.xml.in | 6 +++---
src/side_panel.vala | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/org.gnome.gnome-latex.gschema.xml.in b/data/org.gnome.gnome-latex.gschema.xml.in
index 15cee4c..ddfbe0c 100644
--- a/data/org.gnome.gnome-latex.gschema.xml.in
+++ b/data/org.gnome.gnome-latex.gschema.xml.in
@@ -121,10 +121,10 @@
<summary>Bottom panel is Visible</summary>
<description>Whether the bottom panel containing the build view should be visible.</description>
</key>
- <key name="side-panel-component" type="i">
- <default>0</default>
+ <key name="side-panel-component" type="s">
+ <default>''</default>
<summary>Side panel component</summary>
- <description>Side panel’s active component. 0: Symbols. 1: File browser. 2: Structure.</description>
+ <description>Side panel’s active component.</description>
</key>
<key name="show-build-warnings" type="b">
<default>true</default>
diff --git a/src/side_panel.vala b/src/side_panel.vala
index c784539..b20725e 100644
--- a/src/side_panel.vala
+++ b/src/side_panel.vala
@@ -62,5 +62,6 @@ public class SidePanel : Grid
public void restore_state ()
{
+ Tepl.stack_bind_setting (_stack, _settings, "side-panel-component");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]