Gtk::HPaned size and divider



Hi,

I want to set the position of the divider in a pane to always be centered. So I tried the obvious:

pane.set_position( pane.get_width() / 2 );

Problem is, get_width() always returns 1.
I also tried to resize the pane with set_size_request() but that didn't have any effect.

Am I missing something?

--
Matthias Kaeppler




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