Author: everaldo
Date: 2007-06-09 02:58:43 -0400 (Sat, 09 Jun 2007)
New Revision: 79032
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/moon-plugin.cpp
trunk/moon/plugin/moon-plugin.h
trunk/moon/plugin/plugin-glue.cpp
Log:
2007-06-09 Everaldo Canuto <[EMAIL PROTECTED]>
* moon-plugin.cpp,
* plugin-glue.cpp,
* moon-plugin.h: Rename DEBUG to DEBUGMSG.
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-09 06:23:11 UTC (rev 79031)
+++ trunk/moon/plugin/ChangeLog 2007-06-09 06:58:43 UTC (rev 79032)
@@ -1,3 +1,9 @@
+2007-06-09 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * moon-plugin.cpp,
+ * plugin-glue.cpp,
+ * moon-plugin.h: Rename DEBUG to DEBUGMSG.
+
2007-06-08 Everaldo Canuto <[EMAIL PROTECTED]>
* moon-plugin.h,
Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp 2007-06-09 06:23:11 UTC (rev 79031)
+++ trunk/moon/plugin/moon-plugin.cpp 2007-06-09 06:58:43 UTC (rev 79032)
@@ -20,14 +20,14 @@
static void moon_plugin_menu_about (PluginInstance *plugin)
{
- DEBUG ("*** moon_plugin_menu_about Clicked!");
+ DEBUGMSG ("*** moon_plugin_menu_about Clicked!");
// TODO: Implement an about Window.
}
gboolean
moon_plugin_show_menu (PluginInstance *plugin)
{
- DEBUG ("*** moon_plugin_show_menu");
+ DEBUGMSG ("*** moon_plugin_show_menu");
GtkWidget *menu;
GtkWidget *menu_item;
@@ -95,20 +95,20 @@
PluginInstance::~PluginInstance ()
{
- DEBUG ("destructor point 1");
+ DEBUGMSG ("destructor point 1");
if (this->surface != NULL)
//gtk_container_remove (GTK_CONTAINER (container),
this->surface->drawing_area);
surface_destroy (this->surface);
- DEBUG ("destructor point 2");
+ DEBUGMSG ("destructor point 2");
if (this->canvas != NULL)
delete (this->canvas);
- DEBUG ("destructor point 3");
+ DEBUGMSG ("destructor point 3");
if (this->container != NULL)
gtk_widget_destroy (this->container);
- DEBUG ("destructor point 4 (end)");
+ DEBUGMSG ("destructor point 4 (end)");
#ifdef SCRIPTING
- DEBUG ("destructor point object (%x) (%d)", this->object,
this->object->referenceCount);
+ DEBUGMSG ("destructor point object (%x) (%d)", this->object,
this->object->referenceCount);
if (this->object)
NPN_ReleaseObject (this->object);
#endif
@@ -166,7 +166,7 @@
NPN_GetValue(this->instance, NPNVSupportsXEmbedBool,
&this->xembed_supported);
if (!this->xembed_supported)
{
- DEBUG ("*** XEmbed not supported");
+ DEBUGMSG ("*** XEmbed not supported");
return NPERR_GENERIC_ERROR;
}
@@ -179,7 +179,7 @@
void
PluginInstance::CreateWindow ()
{
- DEBUG ("*** creating window (%d,%d,%d,%d)", window->x, window->y,
window->width, window->height);
+ DEBUGMSG ("*** creating window (%d,%d,%d,%d)", window->x, window->y,
window->width, window->height);
// GtkPlug container and surface inside
this->container = gtk_plug_new (reinterpret_cast <GdkNativeWindow>
(window->window));
@@ -223,7 +223,7 @@
void
PluginInstance::CreateDemoControls ()
{
- DEBUG ("*** creating demo controls");
+ DEBUGMSG ("*** creating demo controls");
Rectangle *r;
Modified: trunk/moon/plugin/moon-plugin.h
===================================================================
--- trunk/moon/plugin/moon-plugin.h 2007-06-09 06:23:11 UTC (rev 79031)
+++ trunk/moon/plugin/moon-plugin.h 2007-06-09 06:58:43 UTC (rev 79032)
@@ -27,8 +27,6 @@
#include "runtime.h"
#include "shape.h"
-#define DEBUG_PLUGIN
-
#define PLUGIN_NAME "WPFe Plug-In"
#define PLUGIN_VERSION "0.99.0"
#define PLUGIN_OURNAME "Novell MoonLight"
@@ -36,14 +34,16 @@
#define PLUGIN_DESCRIPTION "Novell MoonLight is a Free Unix implementation of
SilverLight";
#define MIME_TYPES_HANDLED "application/ag-plugin:xaml:Novell MoonLight"
-#ifdef DEBUG_PLUGIN
+#define DEBUG
+
+#ifdef DEBUG
#ifdef G_LOG_DOMAIN
#undef G_LOG_DOMAIN
#endif
#define G_LOG_DOMAIN "MoonLight"
-#define DEBUG(x...) g_message (x)
+#define DEBUGMSG(x...) g_message (x)
#else
-#define DEBUG(msg)
+#define DEBUGMSG(x...)
#endif
class PluginSettings : public PluginClass
Modified: trunk/moon/plugin/plugin-glue.cpp
===================================================================
--- trunk/moon/plugin/plugin-glue.cpp 2007-06-09 06:23:11 UTC (rev 79031)
+++ trunk/moon/plugin/plugin-glue.cpp 2007-06-09 06:58:43 UTC (rev 79032)
@@ -18,7 +18,7 @@
NPError
NPP_New (NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char*
argn[], char* argv[], NPSavedData* saved)
{
- DEBUG ("NPP_New");
+ DEBUGMSG ("NPP_New");
if (!instance)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -36,7 +36,7 @@
NPError
NPP_Destroy (NPP instance, NPSavedData** save)
{
- DEBUG ("NPP_Destroy");
+ DEBUGMSG ("NPP_Destroy");
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -55,7 +55,7 @@
NPError
NPP_SetWindow (NPP instance, NPWindow* window)
{
- DEBUG ("NPP_SetWindow %d %d", window->width, window->height);
+ DEBUGMSG ("NPP_SetWindow %d %d", window->width, window->height);
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -67,7 +67,7 @@
NPError
NPP_NewStream (NPP instance, NPMIMEType type, NPStream* stream, NPBool
seekable, uint16* stype)
{
- DEBUG ("NPP_NewStream");
+ DEBUGMSG ("NPP_NewStream");
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -79,7 +79,7 @@
NPError
NPP_DestroyStream (NPP instance, NPStream* stream, NPError reason)
{
- DEBUG ("NPP_DestroyStream");
+ DEBUGMSG ("NPP_DestroyStream");
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -91,7 +91,7 @@
void
NPP_StreamAsFile (NPP instance, NPStream* stream, const char* fname)
{
- DEBUG ("NPP_StreamAsFile");
+ DEBUGMSG ("NPP_StreamAsFile");
if (instance == NULL)
return;
@@ -103,7 +103,7 @@
int32
NPP_WriteReady (NPP instance, NPStream* stream)
{
- DEBUG ("NPP_WriteReady");
+ DEBUGMSG ("NPP_WriteReady");
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -117,7 +117,7 @@
int32
NPP_Write (NPP instance, NPStream* stream, int32 offset, int32 len, void*
buffer)
{
- DEBUG ("NPP_Write");
+ DEBUGMSG ("NPP_Write");
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -131,7 +131,7 @@
void
NPP_Print (NPP instance, NPPrint* platformPrint)
{
- DEBUG ("NPP_Print");
+ DEBUGMSG ("NPP_Print");
if (instance == NULL)
return;
@@ -143,7 +143,7 @@
void
NPP_URLNotify (NPP instance, const char* url, NPReason reason, void*
notifyData)
{
- DEBUG ("NPP_URLNotify");
+ DEBUGMSG ("NPP_URLNotify");
if (instance == NULL)
return;
@@ -156,7 +156,7 @@
int16
NPP_HandleEvent (NPP instance, void* event)
{
- DEBUG ("NPP_HandleEvent");
+ DEBUGMSG ("NPP_HandleEvent");
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -168,7 +168,7 @@
NPError
NPP_GetValue (NPP instance, NPPVariable variable, void *result)
{
- DEBUG ("NPP_GetValue %d (%x)", variable, variable);
+ DEBUGMSG ("NPP_GetValue %d (%x)", variable, variable);
NPError err = NPERR_NO_ERROR;
@@ -196,7 +196,7 @@
NPError
NPP_SetValue (NPP instance, NPNVariable variable, void *value)
{
- DEBUG ("NPP_SetValue %d (%x)", variable, value);
+ DEBUGMSG ("NPP_SetValue %d (%x)", variable, value);
if (instance == NULL)
return NPERR_INVALID_INSTANCE_ERROR;
@@ -208,14 +208,14 @@
char *
NPP_GetMIMEDescription (void)
{
- DEBUG ("NPP_GetMIMEDescription");
+ DEBUGMSG ("NPP_GetMIMEDescription");
return (MIME_TYPES_HANDLED);
}
NPError
NPP_Initialize (void)
{
- DEBUG ("NP_Initialize");
+ DEBUGMSG ("NP_Initialize");
gtk_init (0, 0);
runtime_init ();
@@ -226,5 +226,5 @@
void
NPP_Shutdown (void)
{
- DEBUG ("NP_Shutdown");
+ DEBUGMSG ("NP_Shutdown");
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches