Re: Gtk::HPaned size and divider

On Saturday 16 April 2005 17:41, Matthias Kaeppler wrote:

> The way presented here doesn't work. I have also written several mails
> with Vladislav.
> His "solution" was to:
> signal_size_allocate().connect( sigc::mem_fun( *this,
> &ApplicationWindow::on_hpane_geometry_changed ) );
> The problem is, if I set the position in the allocation signal handler,
> the signal is emitted again and I'm in an endless loop so to say
> (program hangs).
> Any other ideas?

Yes, you are right, it would cause a loop.  Does it work if you connect to 
signal_realized()?  If that doesn't work try signal_style_changed() (that is 
always called when a widget is first shown).


Summer is y-cumen in, lhude sing, cuccu!
Groweth sed and bloweth med, springeth the wude nu.

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