GtkPlug/socket broken in GTK+ 2.0

Hi guys,

for some strange reason, GtkPlug/socket doesn't work in GTK+ 2.0.
I have no idea what it is yet, I don't get any runtime warnings or
error or anything, but the contents of the plug window just doesn't
show up in the socket window.

First of all, there's a little patch which needs to be applied to
GtkPlug.c to avoid a SIGSEGV:

Index: gtkplug.c
RCS file: /cvs/gnome/gtk+/gtk/gtkplug.c,v
retrieving revision 1.21
diff -u -u -r1.21 gtkplug.c
--- gtkplug.c	2000/10/25 22:34:13	1.21
+++ gtkplug.c	2001/03/08 13:47:01
@@ -212,7 +212,7 @@
       widget->window = gdk_window_new (NULL, &attributes, attributes_mask);
   gdk_window_set_user_data (widget->window, window);
   widget->style = gtk_style_attach (widget->style, widget->window);
To make it easier for you to reproduce this bug and find out what's
wrong, I attached a little test program here which work fine with
GTK+ 1.2.x, but not with GTK+ 2.0.

Attachment: test-container.c
Description: Binary data

Attachment: test-component.c
Description: Binary data

Anyone an idea what the problem is ?

Martin Baulig
martin gnome org (private)
baulig suse de (work)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]