I'm porting a program wich uses libglade for its gui to maemo.
I've seen that there are two versions of libglade in chinook:
1:2.4.0-1osso2 and 1:2.6.2-1indt1
With libglade 2.4.0 i have a problem with toolbars... i've done this
code to reparent a toolbar from a normal toolbar to the hildon
toolbar:

toolbar = gtk.Toolbar ()
for child in self.toolbar2.get_children():
    child.reparent(toolbar)
self.window.add_toolbar(toolbar)
self.toolbar2.destroy()

but this fails with:

GtkWarning: gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
  child.reparent(toolbar)
GtkWarning: gtk_button_set_relief: assertion `GTK_IS_BUTTON (button)' failed
  child.reparent(toolbar)
 GtkWarning: gtk_container_add: assertion `GTK_IS_CONTAINER (container)' failed
  self.window.add_toolbar(toolbar)
 GtkWarning: gtk_button_set_relief: assertion `GTK_IS_BUTTON (button)' failed

This code works fine with 2.6.2-1indt1 but i don't know which version
will be official in the final sdk..
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to