[Commits] [SCM] claws branch, master, updated. 3.16.0-167-gdee4e69

mones at claws-mail.org mones at claws-mail.org
Thu May 17 00:07:48 CEST 2018


The branch, master has been updated
       via  dee4e692b4a8574841d4f26222098ee52944de01 (commit)
      from  9fcc879f86807bbc64ad6c7943624e8c6c21e217 (commit)

Summary of changes:
 configure.ac |    2 +-
 src/main.c   |   15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)


- Log -----------------------------------------------------------------
commit dee4e692b4a8574841d4f26222098ee52944de01
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Tue Mar 13 21:03:46 2018 +0100

    Fix bug 3895: Port from libnm-util/libnm-glib to libnm

diff --git a/configure.ac b/configure.ac
index 58c63ac..35e3b13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -874,7 +874,7 @@ dnl # Check for NetworkManager support
 dnl #######################################################################
 if test x"$enable_dbus" = xyes; then
 	if test x"$enable_networkmanager" = xyes; then
-		PKG_CHECK_MODULES(NETWORKMANAGER_SUPPORT, NetworkManager >= 0.6.2,
+		PKG_CHECK_MODULES(NETWORKMANAGER_SUPPORT, libnm,
 		[
 			AC_DEFINE(HAVE_NETWORKMANAGER_SUPPORT, 1, [Define if NetworkManager support is to be included.])
 			echo "Building with NetworkManager support"
diff --git a/src/main.c b/src/main.c
index bf3a31e..c9590a7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -152,9 +152,6 @@
 static gboolean went_offline_nm;
 #endif
 
-#if !defined(NM_CHECK_VERSION)
-#define NM_CHECK_VERSION(x,y,z) 0
-#endif
 
 #ifdef HAVE_DBUS_GLIB
 static DBusGProxy *awn_proxy = NULL;
@@ -1107,17 +1104,10 @@ int main(int argc, char *argv[])
 			"/org/freedesktop/NetworkManager",
 			"org.freedesktop.NetworkManager");
 		if (nm_proxy) {
-#if NM_CHECK_VERSION(0,8,992)
 			dbus_g_proxy_add_signal(nm_proxy, "StateChanged", G_TYPE_UINT, G_TYPE_INVALID);
 			dbus_g_proxy_connect_signal(nm_proxy, "StateChanged",
 				G_CALLBACK(networkmanager_state_change_cb),
 				NULL,NULL);
-#else
-			dbus_g_proxy_add_signal(nm_proxy, "StateChange", G_TYPE_UINT, G_TYPE_INVALID);
-			dbus_g_proxy_connect_signal(nm_proxy, "StateChange",
-				G_CALLBACK(networkmanager_state_change_cb),
-				NULL,NULL);
-#endif
 		}
 #endif
 		install_dbus_status_handler();
@@ -2989,14 +2979,9 @@ gboolean networkmanager_is_online(GError **error)
 		g_propagate_error(error, tmp_error);
 		return TRUE;
 	}
-#if NM_CHECK_VERSION(0,8,992)
     	return (state == NM_STATE_CONNECTED_LOCAL ||
 		state == NM_STATE_CONNECTED_SITE ||
 		state == NM_STATE_CONNECTED_GLOBAL ||
 		state == NM_STATE_UNKNOWN);
-#else
-    	return (state == NM_STATE_CONNECTED ||
-		state == NM_STATE_UNKNOWN);
-#endif
 }
 #endif

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list