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-09 09:31:49 +0200
commit946c8e21523d1e3b9977fac30a8e5b980c8eac76 (patch)
treef6d943399e4ad348e38191853ca2685f6dd0d2a8
parent2d86d557f3901f1ee154476ceeeb11041307c719 (diff)
downloadNetworkManager-946c8e21523d1e3b9977fac30a8e5b980c8eac76.tar.gz
tui: add a checkbox for ignore-auto-routes (bgo #756200)
https://bugzilla.gnome.org/show_bug.cgi?id=756200 (cherry picked from commit ce27e1e21e66aeee7cafd6da6d03aa54b0e55520)
-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 df3f0b6474..c7009e2fa6 100644
--- a/clients/tui/nmt-page-ip4.c
+++ b/clients/tui/nmt-page-ip4.c
@@ -179,6 +179,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 1513dbfa08..122c37f6e0 100644
--- a/clients/tui/nmt-page-ip6.c
+++ b/clients/tui/nmt-page-ip6.c
@@ -177,6 +177,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"));