Merged in CMaiku/pidgin (pull request #126)
Remove GLIB_CHECK_VERSION <= 2.36 calls
--- a/finch/finch.c Sat Sep 17 11:43:36 2016 -0500
+++ b/finch/finch.c Sun Sep 18 22:21:58 2016 -0500
@@ -32,14 +32,6 @@
signal(SIGPIPE, SIG_IGN);
-#if !GLIB_CHECK_VERSION(2, 32, 0)
- /* GLib threading system is automaticaly initialized since 2.32.
- * For earlier versions, it have to be initialized before calling any
- * Glib or GTK+ functions.
g_set_application_name(_("Finch"));
--- a/libpurple/core.c Sat Sep 17 11:43:36 2016 -0500
+++ b/libpurple/core.c Sun Sep 18 22:21:58 2016 -0500
@@ -113,11 +113,6 @@
-#if !GLIB_CHECK_VERSION(2, 36, 0)
- /* GLib type system is automaticaly initialized since 2.36. */
_core = core = g_new0(PurpleCore, 1);
--- a/libpurple/glibcompat.h Sat Sep 17 11:43:36 2016 -0500
+++ b/libpurple/glibcompat.h Sun Sep 18 22:21:58 2016 -0500
@@ -33,37 +33,6 @@
-#if !GLIB_CHECK_VERSION(2, 36, 0)
-static inline gboolean g_close(gint fd, GError **error)
- if (G_LIKELY(res == 0))
- if (G_UNLIKELY(errno == EINTR))
- g_set_error_literal(error, G_FILE_ERROR,
- g_file_error_from_errno(errsv), g_strerror(errsv));
/* glib's definition of g_stat+GStatBuf seems to be broken on mingw64-w32 (and
* possibly other 32-bit windows), so instead of relying on it,
--- a/libpurple/plugins/caesarcipher.c Sat Sep 17 11:43:36 2016 -0500
+++ b/libpurple/plugins/caesarcipher.c Sun Sep 18 22:21:58 2016 -0500
@@ -117,11 +117,7 @@
-#if GLIB_CHECK_VERSION(2, 32, 0)
caesar_cipher_set_offset(cipher, g_value_get_schar(value));
- caesar_cipher_set_offset(cipher, g_value_get_char(value));
G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
--- a/libpurple/purple-client.c Sat Sep 17 11:43:36 2016 -0500
+++ b/libpurple/purple-client.c Sun Sep 18 22:21:58 2016 -0500
@@ -66,11 +66,6 @@
-#if !GLIB_CHECK_VERSION(2, 36, 0)
- /* GLib type system is automaticaly initialized since 2.36. */
bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
lose_gerror ("Couldn't connect to session bus", error);
--- a/libpurple/util.c Sat Sep 17 11:43:36 2016 -0500
+++ b/libpurple/util.c Sun Sep 18 22:21:58 2016 -0500
@@ -4266,11 +4266,7 @@
purple_gai_strerror(gint errnum)
-#if GLIB_CHECK_VERSION(2, 32, 0)
static GPrivate msg_private = G_PRIVATE_INIT(g_free);
- static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
@@ -4298,19 +4294,12 @@
-#if GLIB_CHECK_VERSION(2, 32, 0)
msg = g_private_get(&msg_private);
- msg = g_static_private_get(&msg_private);
-#if GLIB_CHECK_VERSION(2, 32, 0)
g_private_set(&msg_private, msg);
- g_static_private_set(&msg_private, msg, g_free);
sprintf(msg, "unknown error (%d)", errnum);
--- a/libpurple/win32/win32dep.c Sat Sep 17 11:43:36 2016 -0500
+++ b/libpurple/win32/win32dep.c Sun Sep 18 22:21:58 2016 -0500
@@ -622,15 +622,6 @@
-#if !GLIB_CHECK_VERSION(2, 32, 0)
- /* GLib threading system is automaticaly initialized since 2.32.
- * For earlier versions, it have to be initialized before calling any
- * Glib or GTK+ functions.
- if (!g_thread_supported())
if (purple_debug_is_verbose())
purple_debug_misc("wpurple", "wpurple_init start\n");
--- a/pidgin/gtkdebug.c Sat Sep 17 11:43:36 2016 -0500
+++ b/pidgin/gtkdebug.c Sun Sep 18 22:21:58 2016 -0500
@@ -273,11 +273,9 @@
g_regex_unref(win->regex);
-#if GLIB_CHECK_VERSION(2,34,0)
win->regex = g_regex_new(text, G_REGEX_CASELESS|G_REGEX_JAVASCRIPT_COMPAT, 0, NULL);
- win->regex = g_regex_new(text, G_REGEX_CASELESS, 0, NULL);
if (win->regex == NULL) {
regex_change_color(win->expression, FALSE);
--- a/pidgin/pidgin.c Sat Sep 17 11:43:36 2016 -0500
+++ b/pidgin/pidgin.c Sun Sep 18 22:21:58 2016 -0500
@@ -38,14 +38,6 @@
SetConsoleOutputCP(65001); /* UTF-8 */
-#if !GLIB_CHECK_VERSION(2, 32, 0)
- /* GLib threading system is automaticaly initialized since 2.32.
- * For earlier versions, it have to be initialized before calling any
- * Glib or GTK+ functions.
/* This is for UI testing purposes only, don't use it! */
test_prgname = g_getenv("PIDGIN_TEST_PRGNAME");
g_set_prgname(test_prgname ? test_prgname : "Pidgin");