[Gtk-sharp-list] GdkWindow again

Thomas 'Dent' Mirlacher dent@cosy.sbg.ac.at
Fri, 28 Feb 2003 11:22:35 +0100 (MET)

hi list,

ok, i tracked down the problem to (and this is the point wher i'm stuck)

the function returns null for the IntPtr passed (well it seems to work fine
	with GtkButton ...)

Q: so what does gtksharp_get_type_name do?
A: return G_OBJECT_TYPE_NAME(obj)

ok, great - so i tried to write a small c-program checking if it works within
some simple testcase.

GtkWindow win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
printf ("obj_type: %s\n", G_OBJECT_TYPE_NAME(win));	// obj_type: GtkWindow
printf ("obj_type: %s\n", G_OBJECT_TYPE_NAME(win->window));// SEGFAULT

hmm, seems there is a problem somewhere down the road - or did i miss to
ref() something here?



"They that can give up liberty to obtain a little temporary safety
 deserve neighter liberty nor safety" - Benjamin Franklin