Blob Blame History Raw
From 2876be7bd6ef8cc4f97f2f9e4011672e6dae81be Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Fri, 30 Aug 2013 23:12:44 -0400
Subject: [PATCH] network: Mark connection editor as changed when appropriate

We were forgetting to do so when toggling the 'Only use for resources
on its network' checkbox.

https://bugzilla.gnome.org/show_bug.cgi?id=703959
---
 panels/network/connection-editor/ce-page-ip4.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c
index a7f1124..287241c 100644
--- a/panels/network/connection-editor/ce-page-ip4.c
+++ b/panels/network/connection-editor/ce-page-ip4.c
@@ -641,6 +641,7 @@ connect_ip4_page (CEPageIP4 *page)
         page->never_default = GTK_WIDGET (gtk_builder_get_object (CE_PAGE (page)->builder, "never_default_check"));
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (page->never_default),
                                       nm_setting_ip4_config_get_never_default (page->setting));
+        g_signal_connect_swapped (page->never_default, "toggled", G_CALLBACK (ce_page_changed), page);
 
         g_signal_connect (page->method, "changed", G_CALLBACK (method_changed), page);
         if (method != IP4_METHOD_SHARED && method != IP4_METHOD_DISABLED)
-- 
1.8.4.2