Re: Gtk::Expander contract



I tried all kinds of resize, set_default_size ..._size in the signal handler 
as suggested, no success. After some more googling I found the solution:

In order for the Expander to contract his parent window the parent 
windows "resizable" property needs to be set to "false".

Well, that is logical...
;-)

See:

http://www.gtkforums.com/about1181.html
(bottom)

Reference:

http://svn.gnome.org/viewvc/gtk%2B/tags/GTK_2_8_6/gtk/gtkexpander.c?view=markup

cheers
Chris


http://www.acurana.de/



Am Mittwoch 23 April 2008 11:08:33 schrieb Marko Anastasov:
> On Wed, Apr 23, 2008 at 10:49 AM, Christopher Lang
>
> <christopher lang acurana de> wrote:
> >  Hi,
> >
> >  when expanding the Gtk::Expander the containing window changes its size
> >  accordingly and becomes bigger.
> >
> >  However when contracting the Expander, the window stays at its (bigger)
> > size.
> >
> >  What would be the best way to make the window containing the Expander
> > contract too if the expander is contracted? Some notify signal maybe?
>
> Resize the window manually: connect to property_expanded()'s signal as in
> the snippet at
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Expande
>r.html
>
>     Marko



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]