diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-11-29 09:00:07 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-02-14 20:05:25 +0100 |
commit | 60d1370c1bbd2d8edc5d25bf8727d4afa40548f2 (patch) | |
tree | 6e54e812d312d61a283cf75988480dfa6cba5be3 | |
parent | 0255531c5c1d0e0ecf604e5f2f7b1f1d854ec8d7 (diff) | |
download | network-manager-applet-60d1370c1bbd2d8edc5d25bf8727d4afa40548f2.tar.gz |
applet-dialogs: drop a NM-1.12 compat hack
-rw-r--r-- | src/applet-dialogs.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c index 88d32a64..e432cf29 100644 --- a/src/applet-dialogs.c +++ b/src/applet-dialogs.c @@ -937,31 +937,6 @@ info_dialog_add_page_for_vpn (GtkNotebook *notebook, gtk_widget_show_all (GTK_WIDGET (grid)); } -#ifndef NM_REMOTE_CONNECTION_FLAGS -/* - * NetworkManager < 1.12 compatibility. - * If you look outside and see flying cars, remove this. - */ -typedef enum { - NM_SETTINGS_CONNECTION_FLAG_NM_GENERATED = 2, -} NMSettingsConnectionFlags; - -static NMSettingsConnectionFlags -nm_remote_connection_get_flags (NMRemoteConnection *connection) -{ - NMSettingsConnectionFlags flags; - - if (!g_object_class_find_property (G_OBJECT_GET_CLASS (connection), "flags")) - return 0; - - g_object_get (connection, "flags", &flags, NULL); - return flags; -} -#else -#define nm_remote_connection_get_flags(conn) \ - NM_LIBNM_COMPAT_UNDEPRECATE (nm_remote_connection_get_flags (conn)) -#endif - static int _compare_active_connections (gconstpointer a, gconstpointer b) { |