diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-05-04 11:38:02 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-07-18 13:20:55 +0200 |
commit | 140d9eea70c3101ef3234abb4de5974cb84b13db (patch) | |
tree | 20bb6d32f57a2fa8564422b3965767ce6392e0fe /src | |
parent | 2610b4536f73493587e4a5a38e01c9961fcabb96 (diff) | |
download | totem-140d9eea70c3101ef3234abb4de5974cb84b13db.tar.gz |
main: Rely on libX11 initialising threads
Diffstat (limited to 'src')
-rw-r--r-- | src/meson.build | 2 | ||||
-rw-r--r-- | src/totem.c | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/meson.build b/src/meson.build index 3185cea50..0eeb807a4 100644 --- a/src/meson.build +++ b/src/meson.build @@ -186,7 +186,7 @@ totem = executable( meson.project_name(), 'totem.c', include_directories: totem_common_incs, - dependencies: [ libtotem_dep, x11_dep ], + dependencies: [ libtotem_dep ], c_args: totem_common_cflags + [ '-DG_LOG_DOMAIN="Totem"' ], diff --git a/src/totem.c b/src/totem.c index 3794f5497..46fed4505 100644 --- a/src/totem.c +++ b/src/totem.c @@ -35,11 +35,6 @@ #include <locale.h> #include <string.h> -#ifdef GDK_WINDOWING_X11 -/* X11 headers */ -#include <X11/Xlib.h> -#endif - #include "totem.h" int @@ -52,11 +47,6 @@ main (int argc, char **argv) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#ifdef GDK_WINDOWING_X11 - if (XInitThreads () == 0) - g_error ("XInitThreads() failed, OS is broken. Contact your provider for support."); -#endif - g_set_prgname ("totem"); #if DEVELOPMENT_VERSION g_set_application_name (_("Videos Preview")); |