Something I haven't test due to my HD crash was to modify gdk_window_impl_directfb_get_type and had these lines:
static const GInterfaceInfo window_info = { (GInterfaceInitFunc) gdk_window_impl_iface_init, NULL, NULL }; g_type_add_interface_static (object_type, GDK_TYPE_WINDOW, &window_info); Since it nows implement the interface GdkWindowImplIface, I think this make sense. bountykiller. On Tue, Jan 6, 2009 at 11:08 AM, Minsu Han <minsu81....@samsung.com> wrote: > > Hi. > > I also had a same problem. But now I know why this problem is > happened. > > I think the problem is there's no impl(GdkWindowImplDirectFB) object > in _gdk_windowing_window_init(). > > So when you refer impl pointer, there's some segmentation fault. > > > > In _gdk_windowing_window_init(). > > { > > ... > > _gdk_parent_root = g_object_new (GDK_TYPE_WINDOW, NULL); > > private = GDK_WINDOW_OBJECT (_gdk_parent_root); > > impl = GDK_WINDOW_IMPL_DIRECTFB (private->impl); > > impl->gdkWindow = _gdk_parent_root; > > ... > > } > > > > In my case, I declare GdkWindowImplDirectFB info using > G_DEFINE_TYPE_WITH_CODE. > > And initialize impl data. > > impl = g_object_new(_gdk_window_impl_get_type(), NULL ); > > > > Maybe it should be added in _gdk_windowing_window_init(), > gdk_directfb_window_new(), gdk_directfb_create_child_window(), > gdk_window_foreign_new_for_display(). > > After that, gtk-demo will be worked correctly. > > > > BR > > minsu.han > > > _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev