[maemo-developers] chinook, python, libglade and toolbars
From: Owen Williams owen-maemo at ywwg.comDate: Tue Dec 11 20:07:26 EET 2007
- Previous message: chinook, python, libglade and toolbars
- Next message: chinook, python, libglade and toolbars
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm using 2.6.2-1indt1 owen On Tue, 2007-12-11 at 18:45 +0100, Luca Ognibene wrote: > On Dec 11, 2007 6:23 PM, Owen Williams <owen-maemo at ywwg.com> wrote: > > > > 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. > > > > > Thanks but i've tried but python segfaults for me if i try unparent... argh! > Are you using chinook? which libglade version? > >
- Previous message: chinook, python, libglade and toolbars
- Next message: chinook, python, libglade and toolbars
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]