thc_flow
Joined: 31 Jan 2011 Posts: 1
|
Posted: Mon Jan 31, 2011 7:17 am Post subject: gtkD and Glade - how to start? |
|
|
Hi, i'm new in D language, but i know some others.
I have problem with using Glade in D.
I've found http://gtkd.mikewey.eu/src/glade/Glade.html , but there is no information how to start with that.
My code is very small:
Code: | import glade.Glade;
import gtk.Main;
void main(string[] args)
{
Glade g;
g.init();
g.construct("window.glade",null,null);
}
|
but, i get errors:
Code: |
(process:21364): GLib-GObject-CRITICAL **: gtype.c:2710: You forgot to call g_type_init()
(process:21364): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:21364): GLib-GObject-CRITICAL **: gtype.c:2710: You forgot to call g_type_init()
(process:21364): GLib-GObject-CRITICAL **: gtype.c:2710: You forgot to call g_type_init()
(process:21364): GLib-GObject-CRITICAL **: gtype.c:2710: You forgot to call g_type_init()
(process:21364): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:21364): GLib-GObject-CRITICAL **: gtype.c:2710: You forgot to call g_type_init()
(process:21364): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
(process:21364): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(process:21364): GLib-GObject-CRITICAL **: g_type_get_qdata: assertion `node != NULL' failed
|
How to fix that? How to load glade file and make it working?
Sorry for my bad English |
|