Use MOZ_X11 instead of NO_X11 to signify that we're building for an X11-based toolkit.

Bug #191447 r=peterl sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@138842 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
seawood%netscape.com
2003-03-04 03:58:43 +00:00
parent 38c98e521a
commit 3d8d80e7ff
8 changed files with 23 additions and 23 deletions

View File

@@ -197,7 +197,7 @@ NPP_SetWindow(NPP instance, NPWindow* window)
ws_info = (NPSetWindowCallbackStruct *)window->ws_info;
#ifndef NO_X11
#ifdef MOZ_X11
if (This->window == (Window) window->window) {
/* The page with the plugin is being resized.
Save any UI information because the next time
@@ -227,7 +227,7 @@ NPP_SetWindow(NPP instance, NPWindow* window)
makePixmap(This);
makeWidget(This);
}
#endif /* #ifndef NO_X11 */
#endif /* #ifdef MOZ_X11 */
return NPERR_NO_ERROR;
}

View File

@@ -38,7 +38,7 @@
#include <gdk/gdkkeysyms.h>
/* Xlib/Xt stuff */
#ifndef NO_X11
#ifdef MOZ_X11
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include <X11/cursorfont.h>
@@ -351,7 +351,7 @@ static GdkPixmap *nullPluginGdkPixmap = 0;
static GdkWindow *getGdkWindow(PluginInstance *This)
{
#ifndef NO_X11
#ifdef MOZ_X11
GdkWindow *gdk_window;
Window xwin = (Window) This->window;
Widget xt_w = XtWindowToWidget(This->display, xwin);
@@ -393,7 +393,7 @@ createPixmap(PluginInstance *This)
style = gtk_widget_get_style(widget);
nullPluginGdkPixmap = gdk_pixmap_create_from_xpm_d(gdk_window , &mask,
&style->bg[GTK_STATE_NORMAL], npnul320_xpm);
#ifndef NO_X11
#ifdef MOZ_X11
/* Pixmap is created on original X session but used by new session */
XSync(GDK_DISPLAY(), False);
#endif
@@ -412,7 +412,7 @@ drawPixmap(PluginInstance *This)
dest_y = This->height/2 - pixmap_height/2;
if (dest_x >= 0 && dest_y >= 0)
{
#ifndef NO_X11
#ifdef MOZ_X11
GC gc;
gc = XCreateGC(This->display, This->window, 0, NULL);
XCopyArea(This->display, GDK_WINDOW_XWINDOW(nullPluginGdkPixmap) , This->window, gc,
@@ -426,7 +426,7 @@ drawPixmap(PluginInstance *This)
static void
setCursor (PluginInstance *This)
{
#ifndef NO_X11
#ifdef MOZ_X11
static Cursor nullPluginCursor = 0;
if (!nullPluginCursor)
{
@@ -439,7 +439,7 @@ setCursor (PluginInstance *This)
#endif
}
#ifndef NO_X11
#ifdef MOZ_X11
static void
xt_event_handler(Widget xt_w, PluginInstance *This, XEvent *xevent, Boolean *b)
{
@@ -462,7 +462,7 @@ xt_event_handler(Widget xt_w, PluginInstance *This, XEvent *xevent, Boolean *b)
static void
addXtEventHandler(PluginInstance *This)
{
#ifndef NO_X11
#ifdef MOZ_X11
Display *dpy = (Display*) This->display;
Window xwin = (Window) This->window;
Widget xt_w = XtWindowToWidget(dpy, xwin);

View File

@@ -64,7 +64,7 @@ Click OK to download Plugin."
typedef struct _PluginInstance
{
uint16 mode;
#ifndef NO_X11
#ifdef MOZ_X11
Window window;
Display *display;
#endif
@@ -77,7 +77,7 @@ typedef struct _PluginInstance
char *pluginsPageUrl;
char *pluginsFileUrl;
NPBool pluginsHidden;
#ifndef NO_X11
#ifdef MOZ_X11
Visual* visual;
Colormap colormap;
#endif