[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-gtk
Subject: patch to let UNIX plugin work
From: Davide Pasetto <dipo () sis ! it>
Date: 1999-05-19 11:18:52
[Download RAW message or body]
Here's a little patch to widget/src/gtk/nsWindow.cpp to let UNIX plugin
work.
The point is to implement NS_NATIVE_PLUGIN_PORT in GetNativeData().
Ciao,
Davide
--- nsWindow.cpp Wed May 19 13:12:08 1999
+++ nsWindow.cpp.dipo Wed May 19 13:08:04 1999
@@ -390,8 +390,16 @@
/* GetSharedGC ups the ref count on the GdkGC so make sure you
release
* it afterwards. */
return (void *)((nsToolkit *)mToolkit)->GetSharedGC();
+ case NS_NATIVE_PLUGIN_PORT:
+#ifdef NS_GTK_REF
+ return (void
*)(GDK_WINDOW_XWINDOW(gdk_window_ref(GTK_LAYOUT(mWidget)->bi
n_window)));
+#else
+ return (void
*)(GDK_WINDOW_XWINDOW(GTK_LAYOUT(mWidget)->bin_window));
+#endif
+ break;
+
default:
- break;
+ break;
}
return nsnull;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic