diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-24 18:53:22 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-24 18:53:22 +0000 |
commit | dff04132f5c900e8ea3ce1c336205347a7ceaa13 (patch) | |
tree | 551bc47881ed89fd75cd49dfd43854b7cc167252 /www/ump/files | |
parent | 784a571455da42f399bc21ebd5a9539b67381469 (diff) |
Notes
Diffstat (limited to 'www/ump/files')
-rw-r--r-- | www/ump/files/patch-ump::UnixShell.c | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/www/ump/files/patch-ump::UnixShell.c b/www/ump/files/patch-ump::UnixShell.c new file mode 100644 index 000000000000..ad4ffba591ab --- /dev/null +++ b/www/ump/files/patch-ump::UnixShell.c @@ -0,0 +1,86 @@ +--- ump/UnixShell.c.orig.1 Thu Nov 15 20:47:15 2001 ++++ ump/UnixShell.c Thu Nov 15 20:50:37 2001 +@@ -38,7 +38,7 @@ + /* + ** Stuff for the NPP_SetWindow method: + */ +-#ifdef XP_UNIX ++#if 0 + #include <X11/Xlib.h> /* Xlib */ + #include <X11/Intrinsic.h> /* Xt */ + #include <X11/StringDefs.h> /* "callback" */ +@@ -230,7 +230,7 @@ + int loop; /* 0 means play only once, non-zero means loop forever */ + + /* UNIX data members */ +-#ifdef XP_UNIX ++#if 0 + Widget play, pause, stop, plus, minus; /* button widgets, and their pictures, as well as the logo picture */ + Pixmap logoPixmap, playupPixmap, playdnPixmap, pauseupPixmap, pausednPixmap, stopupPixmap, stopdnPixmap, plusupPixmap, plusdnPixmap, minusupPixmap, minusdnPixmap; + Display *display; /* needed for XFreePixmap() */ +@@ -344,6 +344,7 @@ + This->pid = -1; + This->pipes[1] = -1; + This->pipes[0] = -1; ++#if 0 + This->logoPixmap = -1; + This->playupPixmap = -1; + This->playdnPixmap = -1; +@@ -355,6 +356,7 @@ + This->plusdnPixmap = -1; + This->minusupPixmap = -1; + This->minusdnPixmap = -1; ++#endif + This->pluginState = PLUGIN_PLAYING; + This->loop = 0; + } +@@ -422,7 +424,7 @@ + close(This->pipes[1]); + close(This->pipes[0]); + +-#ifdef XP_UNIX ++#if 0 + if(This->logoPixmap != -1)XFreePixmap(This->display, This->logoPixmap); + if(This->playupPixmap != -1)XFreePixmap(This->display, This->playupPixmap); + if(This->playdnPixmap != -1)XFreePixmap(This->display, This->playdnPixmap); +@@ -446,6 +448,7 @@ + return NPERR_NO_ERROR; + } + ++#if 0 + /* give buttons the right look for the state of the plugin */ + + static void setButtons(PluginInstance* This, pluginPlayState state){ +@@ -610,6 +613,7 @@ + *b = False; + + } ++#endif + + + NPError +@@ -633,7 +637,7 @@ + * size changes, etc. + */ + +-#ifdef XP_UNIX ++#if 0 + { + + +@@ -1050,6 +1054,7 @@ + unuse_UMP(NPN_GetJavaEnv()); + } + ++#if 0 + /* functions for LiveConnect */ + + static void stopSelectedCallback(XtPointer This, XtIntervalId* id){ stopSelected(NULL, This, NULL); } +@@ -1109,6 +1114,7 @@ + (void) XtAppAddTimeOut(XtWidgetToApplicationContext(Ump->stop), 1, minusSelectedCallback, (XtPointer) This); + + } ++#endif + + + |