[gitg] Bind orientation correctly from preferences
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Bind orientation correctly from preferences
- Date: Fri, 2 Nov 2012 16:17:05 +0000 (UTC)
commit 04abe8daab0253bbb95ca81c5db04806a8dc2824
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Fri Nov 2 17:16:39 2012 +0100
Bind orientation correctly from preferences
gitg/gitg-preferences-interface.vala | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gitg/gitg-preferences-interface.vala b/gitg/gitg-preferences-interface.vala
index ebb97d9..948b747 100644
--- a/gitg/gitg-preferences-interface.vala
+++ b/gitg/gitg-preferences-interface.vala
@@ -53,22 +53,13 @@ class PreferencesInterface : Object, GitgExt.Preferences
return;
}
- d_block = true;
-
- if (!settings.set_enum("orientation", check.active ? 1 : 0))
+ if (!settings.set_enum("orientation", check.active ? 0 : 1))
{
check.active = settings.get_enum("orientation") == 0;
}
-
- d_block = false;
});
settings.changed["orientation"].connect((s, k) => {
- if (d_block)
- {
- return;
- }
-
d_block = true;
check.active = settings.get_enum("orientation") == 0;
d_block = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]