[maemo-developers] chinook, python, libglade and toolbars

From: Luca Ognibene luca.ognibene at gmail.com
Date: Tue Dec 11 20:14:24 EET 2007
yep, this is my problem. With libglade 2.4 (provided by nokia sdk) it
doesn't work but with libglade 2.6 (provided by indt) it works fine.
The problem is: which version will be in user's devices? Why there are
two different versions?

On Dec 11, 2007 7:07 PM, Owen Williams <owen-maemo at ywwg.com> wrote:
> 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?
> >
> >
>
>

More information about the maemo-developers mailing list