[gnome-control-center/wip/region-panel: 35/39] 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/wip/region-panel: 35/39] region: Bind the	per-window setting to both radio buttons
 
- Date: Sun, 10 Feb 2013 01:39:49 +0000 (UTC)
 
commit ee055ffe7e9d90cc995f59b62a9f13c0d4d0687d
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]