[gnome-latex] MainWindow: adapt to latest TeplPanel API
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] MainWindow: adapt to latest TeplPanel API
- Date: Tue, 21 Apr 2020 18:32:08 +0000 (UTC)
commit d4aa8368399e4bdaf5f9ecb3279fd244d23c9103
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Apr 21 20:29:25 2020 +0200
MainWindow: adapt to latest TeplPanel API
src/main_window.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index e9700cd..f4b9e29 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -450,8 +450,8 @@ public class MainWindow : ApplicationWindow
// Restore state
GLib.Settings settings = new GLib.Settings ("org.gnome.gnome-latex.preferences.ui");
- side_panel.set_active_component_setting (settings, "side-panel-component");
- side_panel.restore_settings ();
+ side_panel.provide_active_component_gsetting (settings, "side-panel-component");
+ side_panel.restore_state_from_gsettings ();
// Bind the toggle action to show/hide the side panel
ToggleAction action = _action_group.get_action ("ViewSidePanel") as ToggleAction;
@@ -928,7 +928,7 @@ public class MainWindow : ApplicationWindow
_main_window_build_tools.save_state ();
- _side_panel.save_settings ();
+ _side_panel.save_state_to_gsettings ();
}
// start_line and end_line begins at 0.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]