From 51c25da188b437d689860432f89ba3329eaf083e Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 15 Jan 2013 08:23:53 +0000 Subject: LinGui: Fix compatibility with GTK versions < 2.32 Ubuntu 11.04 and 11.10 use this and I'm not quite ready to drop support for these. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5172 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gtk/src/callbacks.h') diff --git a/gtk/src/callbacks.h b/gtk/src/callbacks.h index b4a9654ee..3a22b4c2c 100644 --- a/gtk/src/callbacks.h +++ b/gtk/src/callbacks.h @@ -32,6 +32,14 @@ #include #include "settings.h" +#if GTK_CHECK_VERSION(2, 32, 0) +#define GHB_THREAD_NEW(n, f, p) \ + g_thread_new(n, (GThreadFunc)(f), (p)) +#else +#define GHB_THREAD_NEW(n, f, p) \ + g_thread_create((GThreadFunc)(f), (p), TRUE, NULL) +#endif + void ghb_check_all_depencencies(signal_user_data_t *ud); gboolean ghb_timer_cb(gpointer data); gboolean ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data); -- cgit v1.2.3