diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2011-12-21 09:44:16 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2011-12-21 09:44:16 +0000 |
commit | 2516addf19b96bfee3449f648ccbeb87223993fa (patch) | |
tree | 2be18df32a65534374c2fa97339a5996e05790da /browser-plugin | |
parent | cabef55744ba1686879bbe117c2042db8a883378 (diff) | |
download | totem-2516addf19b96bfee3449f648ccbeb87223993fa.tar.gz |
Fix uses of deprecated GLib threading API if we have a new enough GLib
If we have GLib ≥ 2.31.0, use the new threading API instead of the old one.
This doesn't bump our GLib dependency.
Diffstat (limited to 'browser-plugin')
-rw-r--r-- | browser-plugin/totem-plugin-viewer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c index 9462cc9a7..f0e0d85aa 100644 --- a/browser-plugin/totem-plugin-viewer.c +++ b/browser-plugin/totem-plugin-viewer.c @@ -2228,7 +2228,9 @@ int main (int argc, char **argv) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#if !GLIB_CHECK_VERSION (2, 31, 0) g_thread_init (NULL); +#endif g_set_application_name (_("Movie browser plugin")); gtk_window_set_default_icon_name ("totem"); |