I'm fooling with glade and libglademm and I have a very simple program that barfs with the
following error:
hellish localhost src $ ./a.out
(process:2166): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function
Segmentation fault
does anyone know what this means? I know g_type_init() is a GTK+ and not OOPified version
of some function but I do not know what what it is supposed to do or why I should be calling
it. here's the source:
#include <libglademm.h>
int main(int argc,char *argv[])
{
Glib::RefPtr<Gnome::Glade::Xml> refXml = Gnome::Glade::Xml::create("gic2.glade");
}
Just in case it has anything to do with my .glade file I'll include that too:
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="mainWin">
<property name="visible">True</property>
<property name="title" translatable="yes">GIC -- GIC Internet Communication</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkButton" id="newGateButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Connect to new gateway</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="newBuddyEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</widget>
</child>
</widget>
</glade-interface>
Thanks in advance.
Attachment:
pgp3UnaeK3vvi.pgp
Description: PGP signature