[totem/wip/hadess/libx11-threads: 3/4] backend: Rely on libX11 initialising threads
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/libx11-threads: 3/4] backend: Rely on libX11 initialising threads
- Date: Mon, 18 Jul 2022 11:21:01 +0000 (UTC)
commit 2610b4536f73493587e4a5a38e01c9961fcabb96
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 4 11:37:37 2022 +0200
backend: Rely on libX11 initialising threads
src/backend/bvw-test.c | 7 -------
src/backend/meson.build | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/backend/bvw-test.c b/src/backend/bvw-test.c
index e0b4d0fcc..9cb23ef44 100644
--- a/src/backend/bvw-test.c
+++ b/src/backend/bvw-test.c
@@ -4,9 +4,6 @@
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include "bacon-video-widget.h"
-#ifdef GDK_WINDOWING_X11
-#include <X11/Xlib.h>
-#endif
static char **filenames;
static const char *argument;
@@ -78,10 +75,6 @@ int main
GtkWidget *win, *bvw;
GtkSettings *gtk_settings;
-#ifdef GDK_WINDOWING_X11
- XInitThreads ();
-#endif
-
context = g_option_context_new ("- Play audio and video inside a web browser");
baconoptiongroup = bacon_video_widget_get_option_group();
g_option_context_add_main_entries (context, option_entries, GETTEXT_PACKAGE);
diff --git a/src/backend/meson.build b/src/backend/meson.build
index 67f3c636f..2ac155636 100644
--- a/src/backend/meson.build
+++ b/src/backend/meson.build
@@ -100,7 +100,7 @@ executable(
backend_test,
backend_test + '.c',
include_directories: libbacon_video_widget_incs,
- dependencies: [libbacon_video_widget_dep, x11_dep],
+ dependencies: [libbacon_video_widget_dep],
c_args: libbacon_video_widget_cflags + [
'-DG_LOG_DOMAIN="@0@"'.format(backend_test)
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]