[gitg] Move all settings as class variables
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Move all settings as class variables
- Date: Fri, 19 Apr 2013 14:50:50 +0000 (UTC)
commit 37bba40e468a2e97737719e51777907a572db922
Author: Jose Manuel Pintor Freire <jmpintorfreire gmail com>
Date: Fri Apr 19 16:38:19 2013 +0200
Move all settings as class variables
Signed-off-by: Ignacio Casal Quinteiro <icq gnome org>
gitg/gitg-window.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 2476cc3..102add2 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -24,6 +24,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
{
private Settings d_state_settings;
private Settings d_main_settings;
+ private Settings d_interface_settings;
private Repository? d_repository;
private GitgExt.MessageBus d_message_bus;
private string? d_action;
@@ -69,6 +70,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
add_action_entries(win_entries, this);
d_main_settings = new Settings("org.gnome.gitg.preferences.view.main");
+ d_interface_settings = new Settings("org.gnome.gitg.preferences.interface");
}
private void on_close_activated()
@@ -319,9 +321,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
}
});
- var settings = new Settings("org.gnome.gitg.preferences.interface");
-
- settings.bind("orientation",
+ d_interface_settings.bind("orientation",
d_paned_panels,
"orientation",
SettingsBindFlags.GET);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]