Author: everaldo
Date: 2007-06-03 08:05:12 -0400 (Sun, 03 Jun 2007)
New Revision: 78499
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/moon-plugin.cpp
trunk/moon/plugin/moon-plugin.h
Log:
* moon-plugin.c:
* moon-plugin.h: Remove unused members to provide a clean code.
2007-06-03 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-03 11:42:28 UTC (rev 78498)
+++ trunk/moon/plugin/ChangeLog 2007-06-03 12:05:12 UTC (rev 78499)
@@ -1,5 +1,10 @@
2007-06-03 Everaldo Canuto <[EMAIL PROTECTED]>
+ * moon-plugin.c:
+ * moon-plugin.h: Remove unused members to provide a clean code.
+
+2007-06-03 Everaldo Canuto <[EMAIL PROTECTED]>
+
* Makefile.am: Fix link options.
2007-06-03 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp 2007-06-03 11:42:28 UTC (rev 78498)
+++ trunk/moon/plugin/moon-plugin.cpp 2007-06-03 12:05:12 UTC (rev 78499)
@@ -119,8 +119,6 @@
/* mode is NP_EMBED, NP_FULL, or NP_BACKGROUND (see npapi.h) */
This->mode = mode;
This->instance = instance;
- This->dialog_up = 0;
- This->windowless = FALSE;
return NPERR_NO_ERROR;
}
@@ -313,29 +311,7 @@
int16
moon_plugin_handle_event (NPP instance, void* event)
{
- XGraphicsExposeEvent exposeEvent;
- XEvent *nsEvent;
-
- nsEvent = (XEvent *)event;
- exposeEvent = nsEvent->xgraphicsexpose;
-
- DEBUG ("event: x, y, w, h = %d, %d, %d, %d; display @ %p,
window/drawable = %d\n",
- exposeEvent.x,
- exposeEvent.y,
- exposeEvent.width,
- exposeEvent.height,
- exposeEvent.display,
- exposeEvent.drawable);
-
- windowlessWindow.window = exposeEvent.display;
- windowlessWindow.x = exposeEvent.x;
- windowlessWindow.y = exposeEvent.y;
- windowlessWindow.width = exposeEvent.width;
- windowlessWindow.height = exposeEvent.height;
- windowlessWindow.ws_info = (void *) exposeEvent.drawable;
-
- moon_plugin_set_window (instance, &windowlessWindow);
-
+ /* Our plugin is a windowed so we dont need the windowless code */
return 0;
}
Modified: trunk/moon/plugin/moon-plugin.h
===================================================================
--- trunk/moon/plugin/moon-plugin.h 2007-06-03 11:42:28 UTC (rev 78498)
+++ trunk/moon/plugin/moon-plugin.h 2007-06-03 12:05:12 UTC (rev 78499)
@@ -23,8 +23,6 @@
#include "glib.h"
#include "gtk/gtk.h"
-static NPWindow windowlessWindow;
-
#define DEBUG_PLUGIN
#define PLUGIN_NAME "Novell MoonLight"
@@ -52,18 +50,10 @@
uint32 width, height;
NPP instance;
- NPBool pluginsHidden;
GtkWidget *container;
GtkWidget *canvas;
- guchar *four_quads;
- gboolean dialog_up;
- gboolean windowless;
-
- /* when we have to go raw */
- XImage *ximage;
-
} PluginInstance;
NPError moon_plugin_initialize ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches