[Gtk-sharp-list] GLib property change notification?

Zach Bean zb at forty2.com
Sat Jul 24 12:36:10 EDT 2010


On Saturday, 07/24/2010, 08:12 -0400 Bojan Rajkovic wrote:
> On Sat, Jul 24, 2010 at 3:07 AM, Zach Bean <zb at forty2.com> wrote:
>         
>         My plan was to listen for the "expanded" property to change,
>         then use
>         vbox.SetChildPacking() to change the "expand" flag
>         accordingly.  There may
>         well be a better (or just different) way of doing this, but
>         neither my tired
>         brain nor Google seem to have turned up much.
>         
>         Much appreciated,
>         Zach Bean
> 
> 
> Hi Zach,
> 
> 
> You can listen to the Activated property on Gtk.Expander and then
> check the Expanded property to figure out if it's open or closed.
> 
> 
> --Bojan 

Hi Bojan,

I'm not sure how I missed that, but you're right, it works just as well.
Thanks!

Zach






More information about the Gtk-sharp-list mailing list