kyle-tk
Joined: 11 Jan 2008 Posts: 3
|
Posted: Fri Jan 11, 2008 1:00 am Post subject: Changing paned windows based on height and width |
|
|
I have two widgets (a GtkDrawingArea and a GtkNotebook) both in a paned window. I would like the paned window to go left to right (a HPaned) if the window width is larger than the window height and go up and down (a VPaned) if the window height is larger.
What would be the best way to implement this? Without digging in to far the way I see is to destroy the Paned and create a new one (of the other type) each time the size changes over. But before I get started is there a better way? Is there a way to create a GtkPaned (the base class) and just tell it what orientation to take and be able to switch to the other?
thanks,
-kyle |
|