[maemo-developers] New project idea, pygtk questions, and a toolkit

From: Ross Burton ross at burtonini.com
Date: Mon Feb 19 22:10:46 EET 2007
On Mon, 2007-02-19 at 22:07 +0200, Xan Lopez wrote:
> > >> - There appears to be no hook for gtk.Paned to detect when the user
> > >> is moving / has moved the divider bar.  This would seem to me to be
> > >> the single most important hook.  The only option I've found online is
> > >> to override the size change hook  Am I missing something?
> > >>
> > >
> > > The widget has a "position" property. You could ask to be notified
> > > when that value changes?
> >
> > How is this done?  By subclassing and overriding the attribute?  Or
> > is there a mechanism to tie into notifications?
> 
> Something like g_signal_connect (paned, "notify::position",
> your_callback, your_data) will do the trick.

I've never seen an application that actually needs to know the position,
as GTK+ will resize the widgets on its own without the application
needing to be involved.

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF




More information about the maemo-developers mailing list