This may actually be a bug in libglade itself rather than the Python
bindings, but it's simpler to demonstrate it in Python. Essentially, if
you try to use get_widget (or get_widget_by_longname) for a combo box's
entry widget you'll get a core dump.
Here's some Python code and a trimmed down glade file to demonstrate:
(test.py)
from gtk import *
import libglade
widgets = libglade.GladeXML('libglade_bug.glade')
window1 = widgets.get_widget('combo-entry1')
mainloop()
(libglade_bug.glade)
<?xml version="1.0"?>
<GTK-Interface>
<widget>
<class>GtkWindow</class>
<name>window1</name>
<title>window1</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<widget>
<class>GtkCombo</class>
<name>combo1</name>
<case_sensitive>False</case_sensitive>
<use_arrows>True</use_arrows>
<use_arrows_always>False</use_arrows_always>
<items></items>
<widget>
<class>GtkEntry</class>
<child_name>GtkCombo:entry</child_name>
<name>combo-entry1</name>
<can_focus>True</can_focus>
<editable>True</editable>
<text_visible>True</text_visible>
<text_max_length>0</text_max_length>
<text></text>
</widget>
</widget>
</widget>
</GTK-Interface>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]