|
|
| Author |
Message |
|
|
windwisp
Joined: 18 Feb 2007 Posts: 2
|
Posted: Sun Feb 18, 2007 3:11 pm Post subject: question on scrolled window: Maximize events/Resize events |
|
|
Hi,
I've got 2 scrolled windows packed in a hbox (a diff tool kinda 2 panel view),
and i want the 2 scrolled windows to resize when the window
is resized to always occupy half the window-width.
i've tried setting widget sizes on window-state-event signal but that
doesn't work for 'resizing'.
Is there some setting i can use to
enable all packed-widgets in the container to resize, when main window is
resized ????
TIA |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
|
Posted: Sun Feb 18, 2007 5:06 pm Post subject: |
|
|
| If you pack both scrolled windows with gtk_box_pack_start() and set all expand and fill settings to TRUE, they should automatically both take up half of the space. As for catching the window resize, connect your GtkHBox to configure-event. This will catch when the box is resized if the previous packing solution doesn't work. |
|
| Back to top |
|
 |
windwisp
Joined: 18 Feb 2007 Posts: 2
|
Posted: Mon Feb 19, 2007 7:11 am Post subject: |
|
|
| thanks, it worked ! |
|
| Back to top |
|
 |
|