Search
j0ke.net Open Build Service
>
Projects
>
mozilla
>
nspluginwrapper
> nspluginwrapper-0.9.91.5-gthreads-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nspluginwrapper-0.9.91.5-gthreads-init.patch of Package nspluginwrapper
2007-12-23 Gwenole Beauchesne <gb.public@free.fr> * src/npw-viewer.c (do_main): Initialize glib for multithreading, aka fix crashes with Flash Player plugin 9 Update 3 (9.0.115). Index: src/npw-viewer.c =================================================================== --- src/npw-viewer.c (revision 480) +++ src/npw-viewer.c (revision 481) @@ -3001,6 +3001,7 @@ XtToolkitInitialize(); x_app_context = XtCreateApplicationContext(); x_display = XtOpenDisplay(x_app_context, NULL, "npw-viewer", "npw-viewer", NULL, 0, &argc, argv); + g_thread_init(NULL); gtk_init(&argc, &argv); // Initialize RPC communication channel Index: Makefile =================================================================== --- Makefile.orig 2007-08-22 21:20:50.000000000 +0200 +++ Makefile 2007-12-31 10:01:12.000000000 +0100 @@ -102,7 +102,7 @@ npviewer_CFLAGS += $(GTK_CFLAGS) npviewer_LDFLAGS = $(GTK_LDFLAGS) $(X_LDFLAGS) endif npviewer_CFLAGS += $(MOZILLA_CFLAGS) -npviewer_LDFLAGS += $(libdl_LDFLAGS) $(libpthread_LDFLAGS) +npviewer_LDFLAGS += $(libdl_LDFLAGS) $(libpthread_LDFLAGS) -lgthread-2.0 ifeq ($(TARGET_ARCH),i386) npviewer_MAPFILE = $(SRC_PATH)/src/npw-viewer.map endif