[Xfce4-commits] [xfce/thunar] 01/01: Handle g_mem_is_system_malloc deprecation
noreply at xfce.org
noreply at xfce.org
Tue Sep 12 05:21:41 CEST 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 2
in repository xfce/thunar.
commit ffaa11c61fd941813196109e2ffe7b2c7888ba99
Author: Andre Miranda <andreldm at xfce.org>
Date: Tue Sep 12 00:20:06 2017 -0300
Handle g_mem_is_system_malloc deprecation
---
thunar/thunar-session-client.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/thunar/thunar-session-client.c b/thunar/thunar-session-client.c
index de8db1f..519f307 100644
--- a/thunar/thunar-session-client.c
+++ b/thunar/thunar-session-client.c
@@ -171,7 +171,10 @@ thunar_session_client_connect (ThunarSessionClient *session_client,
/* tell GDK about our new session id */
gdk_set_sm_client_id (id);
-
+#if GLIB_CHECK_VERSION (2, 46, 0)
+ /* just use the memory */
+ session_client->id = id;
+#else
/* remember the returned client id */
if (g_mem_is_system_malloc ())
{
@@ -184,6 +187,7 @@ thunar_session_client_connect (ThunarSessionClient *session_client,
session_client->id = g_strdup (id);
free (id);
}
+#endif
/* determine the session file path */
spec = g_strconcat ("sessions/Thunar-", session_client->id, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list