Hi, my name is Atanas Beloborodov, developer from Bulgaria [small country on east europe :)] and i use Geany for my everyday work, so i decide to help with development as i can.
Here is a small patch for main.c, that checks for GLib version and avoid call of g_thread_init() if GLlib version > 2.32 since this function is deprecated in GLib > 2.32 P.S.: Thanks to the SardemFF7 from irc channel who helped me.
>From 95f7839327b705971fce6e076b0b1cce0eaca50e Mon Sep 17 00:00:00 2001 From: Atanas Beloborodov <arrted...@gmail.com> Date: Thu, 25 Apr 2013 10:55:45 +0300 Subject: [PATCH] Add GLib version chechk around g_thread_init() call. g_thread_init has been deprecated since GLib version 2.32 --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 29b9a22..9c32cfb 100644 --- a/src/main.c +++ b/src/main.c @@ -1052,10 +1052,13 @@ gint main(gint argc, gchar **argv) /* Initialize GLib's thread system in case any plugins want to use it or their * dependencies (e.g. WebKit, Soup, ...) */ +#if ! GLIB_CHECK_VERSION(2,32,0) if (!g_thread_supported()) g_thread_init(NULL); /* removed as signal handling was wrong, see signal_cb() signal(SIGTERM, signal_cb); */ +#endif /* ! GLIB_CHECK_VERSION(2,32,0) */ + #ifdef G_OS_UNIX /* ignore SIGPIPE signal for preventing sudden death of program */ signal(SIGPIPE, SIG_IGN); -- 1.8.1.4
_______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel