Glade problem
Posted: Sun Feb 18, 2007 8:27 pm
Edit: But it still doesn't show the window. The glade_xml_get_widget() also fails.
Edit: I found out. libglade.so.0 should be libglade-2.0.so.
This is my code:
For some reason, glade_xml_new() fails. What's wrong?
Edit: I found out. libglade.so.0 should be libglade-2.0.so.
This is my code:
Code: Select all
ImportC "/usr/lib/libglade.so.0"
glade_xml_new(filename.s, root.s, domain.s)
glade_xml_get_widget(a.l, b.s)
glade_init()
EndImport
gtk_init_(0, 0)
Debug FileSize("/home/trond/Source/Juggernaught/juggernaught.glade")
main_window = glade_xml_new ("/home/trond/Source/Juggernaught/juggernaught.glade", "", "")
Debug main_window
widget = glade_xml_get_widget(main_window, "wnd_main")
Debug widget