diff options
author | jstebbins <[email protected]> | 2013-01-15 08:23:53 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-01-15 08:23:53 +0000 |
commit | 51c25da188b437d689860432f89ba3329eaf083e (patch) | |
tree | 22e8266fe79999200f515c45352af92fa73fef83 /gtk/src/callbacks.h | |
parent | 3086efa56616c0e062eac6dfd4bc6b7c0031df14 (diff) |
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
Diffstat (limited to 'gtk/src/callbacks.h')
-rw-r--r-- | gtk/src/callbacks.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <gtk/gtk.h> #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); |