Re: Gtk::HPaned size and divider



Vladislav Grinchenko wrote:
Matthias,

sorry for confusion - must have been very late at night when I wrote it:

pane.signal_size_allocate ().connect (

            mem_fun (*foobar, &FooBar::geom_changed_cb));

void FooBar::geom_change_cb (Gtk::Allocation& allocation_)
{
	pane.set_position( allocation_.get_width() / 2 );
}




Hm, the programs hangs when doing that, I guess because the set_position method itself triggers that signal and thus the program loops in this signal handler.

--
Matthias Kaeppler




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