summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-10-08 10:50:36 +0200
committerJiří Klimeš <jklimes@redhat.com>2015-10-08 10:50:36 +0200
commitc5df7b873590162c81b595f502243a1dd435abc0 (patch)
tree42d436a6e8c9d3fe384da34f1f52f6cf663f6d3b
parent16522ec7f5b046661d1be49510d6cc9dea8cbe55 (diff)
downloadNetworkManager-jk/nmtui-ignore-auto-routes.tar.gz
tui: add a checkbox for ignore-auto-routes (bgo #756200)jk/nmtui-ignore-auto-routes
https://bugzilla.gnome.org/show_bug.cgi?id=756200
-rw-r--r--clients/tui/nmt-page-ip4.c6
-rw-r--r--clients/tui/nmt-page-ip6.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/clients/tui/nmt-page-ip4.c b/clients/tui/nmt-page-ip4.c
index 352fdab8b3..2cc4f6af25 100644
--- a/clients/tui/nmt-page-ip4.c
+++ b/clients/tui/nmt-page-ip4.c
@@ -177,6 +177,12 @@ nmt_page_ip4_constructed (GObject *object)
G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
nmt_editor_grid_append (grid, NULL, widget, NULL);
+ widget = nmt_newt_checkbox_new (_("Ignore automatically obtained routes"));
+ g_object_bind_property (s_ip4, NM_SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES,
+ widget, "active",
+ G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
+ nmt_editor_grid_append (grid, NULL, widget, NULL);
+
nmt_editor_grid_append (grid, NULL, nmt_newt_separator_new (), NULL);
widget = nmt_newt_checkbox_new (_("Require IPv4 addressing for this connection"));
diff --git a/clients/tui/nmt-page-ip6.c b/clients/tui/nmt-page-ip6.c
index 24678e50ec..e547122bf3 100644
--- a/clients/tui/nmt-page-ip6.c
+++ b/clients/tui/nmt-page-ip6.c
@@ -175,6 +175,12 @@ nmt_page_ip6_constructed (GObject *object)
G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
nmt_editor_grid_append (grid, NULL, widget, NULL);
+ widget = nmt_newt_checkbox_new (_("Ignore automatically obtained routes"));
+ g_object_bind_property (s_ip6, NM_SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES,
+ widget, "active",
+ G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
+ nmt_editor_grid_append (grid, NULL, widget, NULL);
+
nmt_editor_grid_append (grid, NULL, nmt_newt_separator_new (), NULL);
widget = nmt_newt_checkbox_new (_("Require IPv6 addressing for this connection"));