Re: Gtk::HPaned size and divider
- From: Matthias Kaeppler <nospam digitalraid com>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::HPaned size and divider
- Date: Wed, 13 Apr 2005 15:59:37 +0200
Vladislav Grinchenko wrote:
On Tue, 2005-04-12 at 17:47, Matthias Kaeppler wrote:
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?
pane.signal_value_changed ().connect (
mem_fun (*foobar, &FooBar::geom_changed_cb));
void FooBar::geom_change_cb ()
{
pane.set_position( pane.get_width() / 2 );
}
I also can't find a signal called value_changed. You sure that's its name?
--
Matthias Kaeppler
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]