/[gcjwebplugin]/gcjwebplugin/src/gcjwebplugin.cc
ViewVC logotype

Diff of /gcjwebplugin/src/gcjwebplugin.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by mkoch, Mon Nov 29 14:26:15 2004 UTC revision 1.32 by mkoch, Sat Dec 4 16:06:38 2004 UTC
# Line 330  GCJ_SetWindow (NPP instance, NPWindow* w Line 330  GCJ_SetWindow (NPP instance, NPWindow* w
330    else    else
331      {      {
332        PLUGIN_DEBUG ("GCJ_SetWindow: setting window\n");        PLUGIN_DEBUG ("GCJ_SetWindow: setting window\n");
333        data->xid = g_strdup_printf ("xid %d", (int)(window->window));  #if SIZEOF_VOID_P == 4 // We are on a 32-bit architecture.
334          data->xid = g_strdup_printf ("xid %d", (int) (window->window));
335    #elif SIZEOF_VOID_P == 8 // We are on a 64-bit architecture.
336          data->xid = g_strdup_printf ("xid %ld", (long) (window->window));
337    #else // We are on an architecture with unkown pointer size.
338    #error "Unknown pointer size."
339    #endif
340    
341        send_message_to_appletviewer (data->instance_id);        send_message_to_appletviewer (data->instance_id);
342        send_message_to_appletviewer (data->xid);        send_message_to_appletviewer (data->xid);

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26