[gnome-control-center] region: Bind the per-window setting to both radio buttons
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Bind the per-window setting to both radio buttons
- Date: Tue, 19 Feb 2013 11:32:26 +0000 (UTC)
commit 75328b901303146865e0077a6de37f879514573b
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Feb 5 21:50:27 2013 +0100
region: Bind the per-window setting to both radio buttons
This makes the UI update automatically when the setting changes.
panels/region/cc-input-options.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/cc-input-options.c b/panels/region/cc-input-options.c
index 0112e51..66d9240 100644
--- a/panels/region/cc-input-options.c
+++ b/panels/region/cc-input-options.c
@@ -196,6 +196,9 @@ cc_input_options_new (GtkWidget *parent)
g_settings_bind (priv->settings, "per-window",
priv->per_window_source, "active",
G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (priv->settings, "per-window",
+ priv->same_source, "active",
+ G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN);
update_shortcuts (options);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]