[gnome-control-center/wip/region-panel: 32/43] region: Bind the per-window setting to both radio buttons



commit 447c46441af3f46197e20a62c7ed18470b9cd7e8
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]