Re: Gtk::HPaned size and divider
- From: Matthias Kaeppler <nospam digitalraid com>
- To: gtkmm-list gnome org
- Cc: Vladislav Grinchenko <3rdshift comcast net>
- Subject: Re: Gtk::HPaned size and divider
- Date: Sun, 17 Apr 2005 11:29:29 +0200
Chris Vine wrote:
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).
Chris.
Yep! Worked, when connected to the realize signal. Great, thanks guys.
--
Matthias Kaeppler
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]