mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[dfb,422221] Gtk/DirectFB misc build stuff
This commit is contained in:
parent
cec2aa1047
commit
517a03d55c
@ -84,8 +84,11 @@ MOZ_CHROME_FILE_FORMAT = @MOZ_CHROME_FILE_FORMAT@
|
||||
|
||||
MOZ_WIDGET_TOOLKIT = @MOZ_WIDGET_TOOLKIT@
|
||||
MOZ_GFX_TOOLKIT = @MOZ_GFX_TOOLKIT@
|
||||
MOZ_DFB = @MOZ_DFB@
|
||||
MOZ_X11 = @MOZ_X11@
|
||||
|
||||
MOZ_PANGO = @MOZ_PANGO@
|
||||
|
||||
MOZ_JS_LIBS = @MOZ_JS_LIBS@
|
||||
|
||||
MOZ_DEBUG = @MOZ_DEBUG@
|
||||
|
@ -80,7 +80,6 @@ cairo-atsui.h
|
||||
cairo-beos.h
|
||||
cairo-ft.h
|
||||
cairo-glitz.h
|
||||
cairo-nquartz.h
|
||||
cairo-os2.h
|
||||
cairo-pdf.h
|
||||
cairo-ps.h
|
||||
@ -88,6 +87,8 @@ cairo-quartz.h
|
||||
cairo-win32.h
|
||||
cairo-xlib.h
|
||||
cairo-xlib-xrender.h
|
||||
cairo-directfb.h
|
||||
cairo-qpainter.h
|
||||
#endif
|
||||
callconv.h
|
||||
Carbon/Carbon.h
|
||||
|
@ -277,8 +277,10 @@ endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK2
|
||||
ifdef MOZ_X11
|
||||
STATIC_LIBS += gtkxtbin
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_IPCD
|
||||
DEFINES += -DMOZ_IPCD
|
||||
|
@ -84,8 +84,10 @@ tier_gecko_dirs += \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_ENABLE_GTK2
|
||||
ifdef MOZ_X11
|
||||
tier_gecko_dirs += widget/src/gtkxtbin
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_IPCD
|
||||
tier_gecko_dirs += ipc/ipcd
|
||||
|
@ -269,7 +269,9 @@ static char **gRestartArgv;
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK2)
|
||||
#include <gtk/gtk.h>
|
||||
#ifdef MOZ_X11
|
||||
#include <gdk/gdkx.h>
|
||||
#endif /* MOZ_X11 */
|
||||
#include "nsGTKToolkit.h"
|
||||
#endif
|
||||
|
||||
@ -2386,6 +2388,7 @@ static void MOZ_gdk_display_close(GdkDisplay *display)
|
||||
// gdk_display_manager_set_default_display (gdk_display_manager_get(), NULL)
|
||||
// was also broken.
|
||||
if (gtk_check_version(2,10,0) != NULL) {
|
||||
#ifdef MOZ_X11
|
||||
// Version check failed - broken gdk_display_close.
|
||||
//
|
||||
// Let the gdk structures leak but at least close the Display,
|
||||
@ -2393,6 +2396,9 @@ static void MOZ_gdk_display_close(GdkDisplay *display)
|
||||
Display* dpy = GDK_DISPLAY_XDISPLAY(display);
|
||||
if (!theme_is_qt)
|
||||
XCloseDisplay(dpy);
|
||||
#else
|
||||
gdk_display_close(display);
|
||||
#endif /* MOZ_X11 */
|
||||
}
|
||||
else {
|
||||
if (!theme_is_qt)
|
||||
|
@ -297,6 +297,8 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||
|
||||
*aRetVal = PR_TRUE;
|
||||
|
||||
#ifdef MOZ_X11
|
||||
|
||||
PRLibrary *gnomeuiLib = PR_LoadLibrary("libgnomeui-2.so.0");
|
||||
if (!gnomeuiLib)
|
||||
return NS_OK;
|
||||
@ -316,6 +318,8 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#endif /* MOZ_X11 */
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
// We will load gail, atk-bridge by ourself later
|
||||
// We can't run atk-bridge init here, because gail get the control
|
||||
@ -325,7 +329,9 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||
setenv(accEnv, "0", 1);
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_X11
|
||||
gnome_program_init("Gecko", "1.0", libgnomeui_module_info_get(), gArgc, gArgv, NULL);
|
||||
#endif /* MOZ_X11 */
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
if (accOldValue) {
|
||||
@ -339,6 +345,7 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||
// gnome_program_init causes atexit handlers to be registered. Strange
|
||||
// crashes will occur if these libraries are unloaded.
|
||||
|
||||
#ifdef MOZ_X11
|
||||
gnome_client_request_interaction = (_gnome_client_request_interaction_fn)
|
||||
PR_FindFunctionSymbol(gnomeuiLib, "gnome_client_request_interaction");
|
||||
gnome_interaction_key_return = (_gnome_interaction_key_return_fn)
|
||||
@ -352,6 +359,7 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||
GnomeClient *client = gnome_master_client();
|
||||
g_signal_connect(client, "save-yourself", G_CALLBACK(save_yourself_cb), NULL);
|
||||
g_signal_connect(client, "die", G_CALLBACK(die_cb), NULL);
|
||||
#endif /* MOZ_X11 */
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user