diff options
| author | Michael Biebl <biebl@debian.org> | 2019-03-26 23:25:23 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2019-03-26 23:25:23 +0100 |
| commit | 9a6dcbf895f9da01768e64b73cec88c16157d91e (patch) | |
| tree | a359958930d731e9f1b59344642e10754419fe84 /clients/tui | |
| parent | 964ae8cc391520440cf5aa13e2b9cc34850ea6c2 (diff) | |
New upstream version 1.16.0 upstream/1.16.0
Diffstat (limited to 'clients/tui')
24 files changed, 31 insertions, 51 deletions
diff --git a/clients/tui/meson.build b/clients/tui/meson.build index 5f7f0fbb..461b1f0a 100644 --- a/clients/tui/meson.build +++ b/clients/tui/meson.build @@ -2,7 +2,7 @@ name = 'nmtui' deps = [ newt_dep, - nm_core_dep + nm_core_dep, ] cflags = clients_cflags + [ @@ -51,13 +51,13 @@ sources = files( 'nmtui-edit.c', 'nmtui-hostname.c', 'nmt-utils.c', - 'nmt-widget-list.c' + 'nmt-widget-list.c', ) deps += [ libnm_dep, libnmc_base_dep, - libnmt_newt_dep + libnmt_newt_dep, ] executable( @@ -67,5 +67,5 @@ executable( c_args: cflags, link_args: ldflags_linker_script_binary, link_depends: linker_script_binary, - install: true + install: true, ) diff --git a/clients/tui/newt/meson.build b/clients/tui/newt/meson.build index aeec39da..5bb713d3 100644 --- a/clients/tui/newt/meson.build +++ b/clients/tui/newt/meson.build @@ -18,7 +18,7 @@ sources = files( 'nmt-newt-textbox.c', 'nmt-newt-toggle-button.c', 'nmt-newt-utils.c', - 'nmt-newt-widget.c' + 'nmt-newt-widget.c', ) libnmt_newt = static_library( @@ -26,10 +26,10 @@ libnmt_newt = static_library( sources: sources + [libnm_enum[1]], include_directories: libnm_inc, dependencies: deps, - c_args: cflags + c_args: cflags, ) libnmt_newt_dep = declare_dependency( include_directories: include_directories('.'), - link_with: libnmt_newt + link_with: libnmt_newt, ) diff --git a/clients/tui/newt/nmt-newt-button-box.c b/clients/tui/newt/nmt-newt-button-box.c index 5341c76a..02d8f5cb 100644 --- a/clients/tui/newt/nmt-newt-button-box.c +++ b/clients/tui/newt/nmt-newt-button-box.c @@ -31,9 +31,8 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-button-box.h" + #include "nmt-newt-button.h" G_DEFINE_TYPE (NmtNewtButtonBox, nmt_newt_button_box, NMT_TYPE_NEWT_CONTAINER) diff --git a/clients/tui/newt/nmt-newt-container.c b/clients/tui/newt/nmt-newt-container.c index 927f187e..40259025 100644 --- a/clients/tui/newt/nmt-newt-container.c +++ b/clients/tui/newt/nmt-newt-container.c @@ -28,9 +28,8 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-container.h" + #include "nmt-newt-component.h" G_DEFINE_ABSTRACT_TYPE (NmtNewtContainer, nmt_newt_container, NMT_TYPE_NEWT_WIDGET) diff --git a/clients/tui/newt/nmt-newt-entry-numeric.c b/clients/tui/newt/nmt-newt-entry-numeric.c index a52fe868..92855fcb 100644 --- a/clients/tui/newt/nmt-newt-entry-numeric.c +++ b/clients/tui/newt/nmt-newt-entry-numeric.c @@ -127,8 +127,8 @@ newt_entry_numeric_validate (NmtNewtEntry *entry, if (!*text) return priv->optional ? TRUE : FALSE; - val = _nm_utils_ascii_str_to_int64 (text, 10, priv->min, priv->max, 0); - return val != 0 || errno == 0; + val = _nm_utils_ascii_str_to_int64 (text, 10, priv->min, priv->max, G_MAXINT64); + return val != G_MAXINT64 || errno == 0; } static void diff --git a/clients/tui/newt/nmt-newt-entry.c b/clients/tui/newt/nmt-newt-entry.c index 2715a738..90c2e467 100644 --- a/clients/tui/newt/nmt-newt-entry.c +++ b/clients/tui/newt/nmt-newt-entry.c @@ -28,8 +28,6 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-entry.h" #include "nmt-newt-form.h" #include "nmt-newt-hacks.h" diff --git a/clients/tui/newt/nmt-newt-form.c b/clients/tui/newt/nmt-newt-form.c index ccf447ea..cd87a216 100644 --- a/clients/tui/newt/nmt-newt-form.c +++ b/clients/tui/newt/nmt-newt-form.c @@ -27,7 +27,6 @@ #include "nm-default.h" #include <fcntl.h> -#include <string.h> #include <unistd.h> #include "nmt-newt-form.h" diff --git a/clients/tui/newt/nmt-newt-grid.c b/clients/tui/newt/nmt-newt-grid.c index 4333e0dc..e6c487f5 100644 --- a/clients/tui/newt/nmt-newt-grid.c +++ b/clients/tui/newt/nmt-newt-grid.c @@ -42,8 +42,6 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-grid.h" G_DEFINE_TYPE (NmtNewtGrid, nmt_newt_grid, NMT_TYPE_NEWT_CONTAINER) diff --git a/clients/tui/newt/nmt-newt-label.c b/clients/tui/newt/nmt-newt-label.c index f9aed8a3..63bd28da 100644 --- a/clients/tui/newt/nmt-newt-label.c +++ b/clients/tui/newt/nmt-newt-label.c @@ -27,9 +27,8 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-label.h" + #include "nmt-newt-utils.h" G_DEFINE_TYPE (NmtNewtLabel, nmt_newt_label, NMT_TYPE_NEWT_COMPONENT) diff --git a/clients/tui/newt/nmt-newt-listbox.c b/clients/tui/newt/nmt-newt-listbox.c index 15a89b0b..4f8120f1 100644 --- a/clients/tui/newt/nmt-newt-listbox.c +++ b/clients/tui/newt/nmt-newt-listbox.c @@ -227,7 +227,7 @@ nmt_newt_listbox_get_active_key (NmtNewtListbox *listbox) /** * nmt_newt_listbox_set_height: * @listbox: an #NmtNewtListbox - * @height: the new height, or -1 for no fixed heigh + * @height: the new height, or -1 for no fixed height * * Updates @listbox's height. */ diff --git a/clients/tui/newt/nmt-newt-section.c b/clients/tui/newt/nmt-newt-section.c index 34073454..9b7e44e4 100644 --- a/clients/tui/newt/nmt-newt-section.c +++ b/clients/tui/newt/nmt-newt-section.c @@ -37,9 +37,8 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-section.h" + #include "nmt-newt-grid.h" #include "nmt-newt-label.h" #include "nmt-newt-utils.h" diff --git a/clients/tui/newt/nmt-newt-stack.c b/clients/tui/newt/nmt-newt-stack.c index 3abf00b1..da4beb8b 100644 --- a/clients/tui/newt/nmt-newt-stack.c +++ b/clients/tui/newt/nmt-newt-stack.c @@ -31,8 +31,6 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-stack.h" G_DEFINE_TYPE (NmtNewtStack, nmt_newt_stack, NMT_TYPE_NEWT_CONTAINER) diff --git a/clients/tui/newt/nmt-newt-textbox.c b/clients/tui/newt/nmt-newt-textbox.c index 73794f5e..0850e60c 100644 --- a/clients/tui/newt/nmt-newt-textbox.c +++ b/clients/tui/newt/nmt-newt-textbox.c @@ -26,9 +26,8 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-newt-textbox.h" + #include "nmt-newt-utils.h" G_DEFINE_TYPE (NmtNewtTextbox, nmt_newt_textbox, NMT_TYPE_NEWT_COMPONENT) diff --git a/clients/tui/newt/nmt-newt-utils.c b/clients/tui/newt/nmt-newt-utils.c index e8866500..475faf7e 100644 --- a/clients/tui/newt/nmt-newt-utils.c +++ b/clients/tui/newt/nmt-newt-utils.c @@ -23,7 +23,6 @@ #include "nm-default.h" -#include <errno.h> #include <stdarg.h> #include <unistd.h> #include <sys/wait.h> diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c index 8df741f5..df6387c3 100644 --- a/clients/tui/nm-editor-bindings.c +++ b/clients/tui/nm-editor-bindings.c @@ -27,12 +27,11 @@ #include "nm-default.h" +#include "nm-editor-bindings.h" + #include <arpa/inet.h> #include <netinet/in.h> #include <stdlib.h> -#include <string.h> - -#include "nm-editor-bindings.h" static void value_transform_string_int (const GValue *src_value, @@ -516,7 +515,7 @@ ip_route_transform_from_metric_string (GBinding *binding, * @addr_family: the IP address family * @source: the source object * @source_property: the source property - * @dest_target: the target object for the route's destionation + * @dest_target: the target object for the route's destination * @dest_target_property: the property on @dest_target * @next_hop_target: the target object for the route's next hop * @next_hop_target_property: the property on @next_hop_target diff --git a/clients/tui/nmt-address-list.c b/clients/tui/nmt-address-list.c index 53990d6a..ae1a6b2f 100644 --- a/clients/tui/nmt-address-list.c +++ b/clients/tui/nmt-address-list.c @@ -30,12 +30,12 @@ #include "nm-default.h" +#include "nmt-address-list.h" + #include <arpa/inet.h> #include <netinet/in.h> #include <stdlib.h> -#include <string.h> -#include "nmt-address-list.h" #include "nmt-ip-entry.h" G_DEFINE_TYPE (NmtAddressList, nmt_address_list, NMT_TYPE_WIDGET_LIST) diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c index a4d63e4f..43fbbc16 100644 --- a/clients/tui/nmt-device-entry.c +++ b/clients/tui/nmt-device-entry.c @@ -36,12 +36,12 @@ #include "nm-default.h" -#include <string.h> +#include "nmt-device-entry.h" + #include <sys/socket.h> #include <linux/if_arp.h> #include "nmtui.h" -#include "nmt-device-entry.h" G_DEFINE_TYPE (NmtDeviceEntry, nmt_device_entry, NMT_TYPE_EDITOR_GRID) diff --git a/clients/tui/nmt-editor-grid.c b/clients/tui/nmt-editor-grid.c index bc8a7843..bb3e78b8 100644 --- a/clients/tui/nmt-editor-grid.c +++ b/clients/tui/nmt-editor-grid.c @@ -39,8 +39,6 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-editor-grid.h" G_DEFINE_TYPE (NmtEditorGrid, nmt_editor_grid, NMT_TYPE_NEWT_CONTAINER) diff --git a/clients/tui/nmt-mac-entry.c b/clients/tui/nmt-mac-entry.c index 23c2ab1c..70c8c307 100644 --- a/clients/tui/nmt-mac-entry.c +++ b/clients/tui/nmt-mac-entry.c @@ -30,8 +30,6 @@ #include "nmt-mac-entry.h" -#include <string.h> - #include "nm-common-macros.h" G_DEFINE_TYPE (NmtMacEntry, nmt_mac_entry, NMT_TYPE_NEWT_ENTRY) diff --git a/clients/tui/nmt-slave-list.c b/clients/tui/nmt-slave-list.c index 893b7caf..a2c088b0 100644 --- a/clients/tui/nmt-slave-list.c +++ b/clients/tui/nmt-slave-list.c @@ -56,7 +56,7 @@ static gboolean nmt_slave_list_connection_filter (NmtEditConnectionList *list, /** * nmt_slave_list_new: * @master: the master #NMConnection whose slaves are being listed - * @type_filter: (allow-none): a function to limit the availble slave types + * @type_filter: (allow-none): a function to limit the available slave types * @type_filter_data: (allow-none): data for @type_filter. * * Creates a new #NmtSlaveList. diff --git a/clients/tui/nmt-utils.c b/clients/tui/nmt-utils.c index 7cd71be2..96b97158 100644 --- a/clients/tui/nmt-utils.c +++ b/clients/tui/nmt-utils.c @@ -23,8 +23,6 @@ #include "nm-default.h" -#include <string.h> - #include "nmt-utils.h" /** diff --git a/clients/tui/nmt-widget-list.c b/clients/tui/nmt-widget-list.c index 2fd5af02..ad35f3de 100644 --- a/clients/tui/nmt-widget-list.c +++ b/clients/tui/nmt-widget-list.c @@ -32,12 +32,12 @@ #include "nm-default.h" +#include "nmt-widget-list.h" + #include <arpa/inet.h> #include <netinet/in.h> #include <stdlib.h> -#include <string.h> -#include "nmt-widget-list.h" #include "nmt-newt.h" G_DEFINE_TYPE (NmtWidgetList, nmt_widget_list, NMT_TYPE_NEWT_GRID) diff --git a/clients/tui/nmtui-connect.c b/clients/tui/nmtui-connect.c index 6f29e13e..e43c22e4 100644 --- a/clients/tui/nmtui-connect.c +++ b/clients/tui/nmtui-connect.c @@ -240,7 +240,7 @@ activate_connection (NMConnection *connection, NMObject *specific_object) { NmtNewtForm *form; - gs_unref_object NMSecretAgentOld *agent = NULL; + gs_unref_object NMSecretAgentSimple *agent = NULL; NmtNewtWidget *label; NmtSyncOp op; const char *specific_object_path; @@ -257,7 +257,7 @@ activate_connection (NMConnection *connection, agent = nm_secret_agent_simple_new ("nmtui"); if (agent) { if (connection) { - nm_secret_agent_simple_enable (NM_SECRET_AGENT_SIMPLE (agent), + nm_secret_agent_simple_enable (agent, nm_object_get_path (NM_OBJECT (connection))); } g_signal_connect (agent, @@ -303,7 +303,7 @@ activate_connection (NMConnection *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), + nm_secret_agent_simple_enable (agent, nm_object_get_path (NM_OBJECT (connection))); } } @@ -341,7 +341,7 @@ activate_connection (NMConnection *connection, g_object_unref (form); if (agent) - nm_secret_agent_old_unregister (agent, NULL, NULL); + nm_secret_agent_old_unregister (NM_SECRET_AGENT_OLD (agent), NULL, NULL); } static void diff --git a/clients/tui/nmtui.c b/clients/tui/nmtui.c index 97c528e7..aacc07cb 100644 --- a/clients/tui/nmtui.c +++ b/clients/tui/nmtui.c @@ -26,14 +26,14 @@ #include "nm-default.h" +#include "nmtui.h" + #include <locale.h> #include <stdlib.h> -#include <string.h> #include "nmt-newt.h" #include "nm-editor-bindings.h" -#include "nmtui.h" #include "nmtui-edit.h" #include "nmtui-connect.h" #include "nmtui-hostname.h" |