Glade issue: segmentation fault with any widget
| From: | John Starkey | Date: | Mon, 10 Feb 2003 00:12:45 +0000 |
| Subject: | Glade issue: segmentation fault with any widget | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3018@lists.php.net to get a copy of this message | ||
Hello all. I'm trying to get glade xml working. I'm running into a few
issues:
1) I get segmentation faults with any glade xml that goes deeper than
GTK-Interface.
2) Glade is printing the root as glade-interface, rather than
GTK-Interface.
3) PHP-Gtk is complaining about the schema.
Here's the Glade XML ('.' in all opening tags added by me):
<.?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="window1">
<.property name="visible">True</property>
<.property name="title" translatable="yes">window1</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>
<.placeholder/>
</child>
<.child>
<.placeholder/>
</child>
<.child>
<.placeholder/>
</child>
</widget>
</child>
</widget>
</glade-interface>
Here's the output when running the file:
Message: *** 'property' tag found while in state WIDGET_CHILD_ATTRIBUTE
Message: *** 'property' tag found while in state WIDGET_CHILD_ATTRIBUTE
Message: *** 'property' tag found while in state WIDGET_CHILD_ATTRIBUTE
Message: *** 'child' tag found while in state WIDGET_CHILD_ATTRIBUTE
Message: *** 'child' tag found while in state WIDGET_CHILD_ATTRIBUTE
Message: *** 'child' tag found while in state WIDGET_CHILD_ATTRIBUTE
Segmentation Fault
The script only loads the .so and then:
$layout = &new GladeXML( 'main/main.glade' );
Gtk::main();
Does anyone see what it's tripping over?
TIA,
John
--
John Starkey <jstarkey@advancecreations.com>