Re: Glade issue: segmentation fault with any widget
| From: | Alan Knowles | Date: | Tue, 11 Feb 2003 02:09:38 +0000 |
| Subject: | Re: Glade issue: segmentation fault with any widget | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3021@lists.php.net to get a copy of this message | ||
Have you tried other glade files - eg. from phpmole/Gtk_VarDump ?
Did you want to upload the real glade file somewhere so it can be tested..?
I'm guessing it's Unix.. - have you got the right libraries installed - changed versions.. etc.
Regards
Alan
John Starkey wrote:
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>-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com<.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