sajimon
January 26th, 2012, 09:19 AM
Hello, i have this gtkmm application example from gnome development documentation
i put it all in one file, here is a code
http://dpaste.com/693447/
when i run application i got plenty of error massages
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-GObject-WARNING **: cannot add class private field to invalid type '<invalid>'
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
(process:28961): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:28961): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
i looks like Gtk::Main kit(); wasn't called or something.
I'm using gtkmm-3
i put it all in one file, here is a code
http://dpaste.com/693447/
when i run application i got plenty of error massages
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-GObject-WARNING **: cannot add class private field to invalid type '<invalid>'
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
(process:28961): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
(process:28961): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:28961): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:28961): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.30.0/./gobject/gtype.c:2708: You forgot to call g_type_init()
i looks like Gtk::Main kit(); wasn't called or something.
I'm using gtkmm-3