For info - flash plugins and gtk2.1
mike <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <[email protected]> |
As per this http://bugzilla.mozilla.org/show_bug.cgi?id=182726 The crash problem is now fixed. It needs the attached patch applying to mozilla head (maybe works with 1.2/1.3)
embed.patch
(text/x-patch, 1.2 KB)
Index: gtk2xtbin.c
===================================================================
RCS file: /cvsroot/mozilla/widget/src/gtkxtbin/gtk2xtbin.c,v
retrieving revision 1.2
diff -u -r1.2 gtk2xtbin.c
--- gtk2xtbin.c 27 Nov 2002 02:46:39 -0000 1.2
+++ gtk2xtbin.c 14 Dec 2002 04:13:10 -0000
@@ -274,6 +274,9 @@
xtbin->xtwindow = XtWindow(xtbin->xtclient.child_widget);
gdk_flush();
+
+ /* now that we have created the xt client, add it to the socket. */
+ gtk_socket_steal(GTK_SOCKET(widget), xtbin->xtwindow);
}
Index: gtk2xtbin.h
===================================================================
RCS file: /cvsroot/mozilla/widget/src/gtkxtbin/gtk2xtbin.h,v
retrieving revision 1.1
diff -u -r1.1 gtk2xtbin.h
--- gtk2xtbin.h 2 Sep 2002 05:11:10 -0000 1.1
+++ gtk2xtbin.h 14 Dec 2002 04:13:10 -0000
@@ -42,8 +42,6 @@
GTK_TYPE_XTBIN))
#define GTK_IS_XTBIN_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), \
GTK_TYPE_XTBIN))
-#define GTK_SOCKET_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), \
- GTK_TYPE_SOCKET, GtkSocketClass))
typedef struct _XtClient XtClient;
struct _XtClient {