[maemo-developers] chinook, python, libglade and toolbars
From: Owen Williams owen-maemo at ywwg.comDate: Tue Dec 11 19:23:48 EET 2007
- Previous message: chinook, python, libglade and toolbars
- Next message: chinook, python, libglade and toolbars
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 2007-12-11 at 13:25 +0100, Luca Ognibene wrote: > 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() for comparison, my code looks like this: vbox = ... all my window contents ... toolbar = self._widgetTree.get_widget('toolbar1') toolbar.unparent() self.window.add(vbox) self.window.add_toolbar(toolbar) The APIs discourage using unparent, but it works for me. owen
- Previous message: chinook, python, libglade and toolbars
- Next message: chinook, python, libglade and toolbars
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]