diff options
Diffstat (limited to 'clients/tui')
| -rw-r--r-- | clients/tui/Makefile.am | 1 | ||||
| -rw-r--r-- | clients/tui/Makefile.in | 2 | ||||
| -rw-r--r-- | clients/tui/newt/Makefile.in | 1 | ||||
| -rw-r--r-- | clients/tui/nmt-page-ip4.c | 6 | ||||
| -rw-r--r-- | clients/tui/nmt-page-ip6.c | 6 | ||||
| -rw-r--r-- | clients/tui/nmtui-connect.c | 10 |
6 files changed, 22 insertions, 4 deletions
diff --git a/clients/tui/Makefile.am b/clients/tui/Makefile.am index ad9335da..f6d93be2 100644 --- a/clients/tui/Makefile.am +++ b/clients/tui/Makefile.am @@ -5,6 +5,7 @@ SUBDIRS = newt . AM_CPPFLAGS= \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ + -I$(top_builddir)/include \ -I$(top_srcdir)/libnm-core \ -I$(top_builddir)/libnm-core \ -I$(top_srcdir)/libnm \ diff --git a/clients/tui/Makefile.in b/clients/tui/Makefile.in index 331461a7..26f00406 100644 --- a/clients/tui/Makefile.in +++ b/clients/tui/Makefile.in @@ -415,6 +415,7 @@ LOG_DRIVER = @LOG_DRIVER@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ @@ -559,6 +560,7 @@ with_valgrind = @with_valgrind@ @BUILD_NMTUI_TRUE@AM_CPPFLAGS = \ @BUILD_NMTUI_TRUE@ -I$(top_srcdir) \ @BUILD_NMTUI_TRUE@ -I$(top_srcdir)/include \ +@BUILD_NMTUI_TRUE@ -I$(top_builddir)/include \ @BUILD_NMTUI_TRUE@ -I$(top_srcdir)/libnm-core \ @BUILD_NMTUI_TRUE@ -I$(top_builddir)/libnm-core \ @BUILD_NMTUI_TRUE@ -I$(top_srcdir)/libnm \ diff --git a/clients/tui/newt/Makefile.in b/clients/tui/newt/Makefile.in index 96131a7d..ab647863 100644 --- a/clients/tui/newt/Makefile.in +++ b/clients/tui/newt/Makefile.in @@ -319,6 +319,7 @@ LOG_DRIVER = @LOG_DRIVER@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ diff --git a/clients/tui/nmt-page-ip4.c b/clients/tui/nmt-page-ip4.c index df3f0b64..c7009e2f 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 1513dbfa..122c37f6 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")); diff --git a/clients/tui/nmtui-connect.c b/clients/tui/nmtui-connect.c index 438915d2..cacb0b44 100644 --- a/clients/tui/nmtui-connect.c +++ b/clients/tui/nmtui-connect.c @@ -30,6 +30,8 @@ #include <glib/gi18n-lib.h> +#include "gsystem-local-alloc.h" + #include "nmt-newt.h" #include "nmtui.h" @@ -132,7 +134,7 @@ activate_connection (NMConnection *connection, NMObject *specific_object) { NmtNewtForm *form; - NMSecretAgentOld *agent; + gs_unref_object NMSecretAgentOld *agent = NULL; NmtNewtWidget *label; NmtSyncOp op; const char *specific_object_path; @@ -188,7 +190,7 @@ activate_connection (NMConnection *connection, goto done; } - if (!connection) { + if (agent && !connection) { connection = NM_CONNECTION (nm_active_connection_get_connection (ac)); if (connection) { nm_secret_agent_simple_enable (NM_SECRET_AGENT_SIMPLE (agent), @@ -220,8 +222,8 @@ activate_connection (NMConnection *connection, nmt_newt_form_quit (form); g_object_unref (form); - nm_secret_agent_old_unregister (agent, NULL, NULL); - g_object_unref (agent); + if (agent) + nm_secret_agent_old_unregister (agent, NULL, NULL); } static void |