diff options
Diffstat (limited to 'clients/tui')
| -rw-r--r-- | clients/tui/meson.build | 1 | ||||
| -rw-r--r-- | clients/tui/nm-editor-bindings.c | 22 | ||||
| -rw-r--r-- | clients/tui/nm-editor-bindings.h | 20 | ||||
| -rw-r--r-- | clients/tui/nm-editor-utils.c | 4 | ||||
| -rw-r--r-- | clients/tui/nmt-page-ip-tunnel.c | 2 |
5 files changed, 24 insertions, 25 deletions
diff --git a/clients/tui/meson.build b/clients/tui/meson.build index 40eb4b4a..5f7f0fbb 100644 --- a/clients/tui/meson.build +++ b/clients/tui/meson.build @@ -7,7 +7,6 @@ deps = [ cflags = clients_cflags + [ '-DG_LOG_DOMAIN="@0@"'.format(name), - '-DNMLOCALEDIR="@0@"'.format(nm_localedir) ] subdir('newt') diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c index 24803868..8df741f5 100644 --- a/clients/tui/nm-editor-bindings.c +++ b/clients/tui/nm-editor-bindings.c @@ -59,7 +59,7 @@ value_transform_string_uint (const GValue *src_value, if (val < 0 || val > G_MAXUINT || *end) return; - g_value_set_uint (dest_value, (gint) val); + g_value_set_uint (dest_value, (int) val); } void @@ -180,9 +180,9 @@ ip_addresses_with_prefix_from_strv (GBinding *binding, void nm_editor_bind_ip_addresses_with_prefix_to_strv (int addr_family, gpointer source, - const gchar *source_property, + const char *source_property, gpointer target, - const gchar *target_property, + const char *target_property, GBindingFlags flags) { g_object_bind_property_full (source, source_property, @@ -232,9 +232,9 @@ ip_addresses_check_and_copy (GBinding *binding, void nm_editor_bind_ip_addresses_to_strv (int addr_family, gpointer source, - const gchar *source_property, + const char *source_property, gpointer target, - const gchar *target_property, + const char *target_property, GBindingFlags flags) { g_object_bind_property_full (source, source_property, @@ -328,8 +328,8 @@ void nm_editor_bind_ip_gateway_to_string (int addr_family, NMSettingIPConfig *source, gpointer target, - const gchar *target_property, - const gchar *target_sensitive_property, + const char *target_property, + const char *target_sensitive_property, GBindingFlags flags) { g_object_bind_property_full (source, "gateway", @@ -535,13 +535,13 @@ ip_route_transform_from_metric_string (GBinding *binding, void nm_editor_bind_ip_route_to_strings (int addr_family, gpointer source, - const gchar *source_property, + const char *source_property, gpointer dest_target, - const gchar *dest_target_property, + const char *dest_target_property, gpointer next_hop_target, - const gchar *next_hop_target_property, + const char *next_hop_target_property, gpointer metric_target, - const gchar *metric_target_property, + const char *metric_target_property, GBindingFlags flags) { g_object_bind_property_full (source, source_property, diff --git a/clients/tui/nm-editor-bindings.h b/clients/tui/nm-editor-bindings.h index 72bd91e3..174fb929 100644 --- a/clients/tui/nm-editor-bindings.h +++ b/clients/tui/nm-editor-bindings.h @@ -23,33 +23,33 @@ void nm_editor_bindings_init (void); void nm_editor_bind_ip_addresses_with_prefix_to_strv (int family, gpointer source, - const gchar *source_property, + const char *source_property, gpointer target, - const gchar *target_property, + const char *target_property, GBindingFlags flags); void nm_editor_bind_ip_addresses_to_strv (int family, gpointer source, - const gchar *source_property, + const char *source_property, gpointer target, - const gchar *target_property, + const char *target_property, GBindingFlags flags); void nm_editor_bind_ip_gateway_to_string (int family, NMSettingIPConfig *source, gpointer target, - const gchar *target_property, - const gchar *target_sensitive_property, + const char *target_property, + const char *target_sensitive_property, GBindingFlags flags); void nm_editor_bind_ip_route_to_strings (int family, gpointer source, - const gchar *source_property, + const char *source_property, gpointer dest_target, - const gchar *dest_target_property, + const char *dest_target_property, gpointer next_hop_target, - const gchar *next_hop_target_property, + const char *next_hop_target_property, gpointer metric_target, - const gchar *metric_target_property, + const char *metric_target_property, GBindingFlags flags); void nm_editor_bind_wireless_security_method (NMConnection *connection, diff --git a/clients/tui/nm-editor-utils.c b/clients/tui/nm-editor-utils.c index 8fecefa8..9dd95c08 100644 --- a/clients/tui/nm-editor-utils.c +++ b/clients/tui/nm-editor-utils.c @@ -33,7 +33,7 @@ static GSList *vpn_plugins; -static gint +static int sort_vpn_plugins (gconstpointer a, gconstpointer b) { NMVpnEditorPlugin *aa = NM_VPN_EDITOR_PLUGIN (a); @@ -93,7 +93,7 @@ typedef struct { gboolean no_autoconnect; } NMEditorConnectionTypeDataReal; -static gint +static int sort_types (gconstpointer a, gconstpointer b) { NMEditorConnectionTypeData *typea = *(NMEditorConnectionTypeData **)a; diff --git a/clients/tui/nmt-page-ip-tunnel.c b/clients/tui/nmt-page-ip-tunnel.c index 0b0b30ea..563abf76 100644 --- a/clients/tui/nmt-page-ip-tunnel.c +++ b/clients/tui/nmt-page-ip-tunnel.c @@ -94,7 +94,7 @@ add_offset (GBinding *binding, gpointer user_data) { guint v; - gint offset = GPOINTER_TO_INT (user_data); + int offset = GPOINTER_TO_INT (user_data); g_return_val_if_fail (G_VALUE_HOLDS (from_value, G_TYPE_UINT), FALSE); g_return_val_if_fail (G_VALUE_HOLDS (to_value, G_TYPE_UINT), FALSE); |