Grabbing space for a widget
- From: Jonathan Hayward <christos jonathan hayward gmail com>
- To: gtk-list gnome org
- Subject: Grabbing space for a widget
- Date: Fri, 5 Aug 2005 13:36:28 -0500
I currently have a window that's laid out like this:
111111111111111
2222222222222222222222222222222
2222222222222222222222222222222
3333333 44444444444444444444444
3333333 44444444444444444444444
3333333 44444444444444444444444
3333333 44444444444444444444444
3333333
3333333 5555555555555555
3333333 5555555555555555
Widgets 1, 2, 3, and 5 should be about the same size regardless of the overall size of the window (apart from the width of 2).
I'd like to adapt my code so that 4 shrinks if the user shrinks the
window, and expands in size if the user expands the window. I can do
this if I know when the size has changed, and how many pixels 4 can
occupy given a window's new size.
Is there a way to ask "How much space can this widget occupy?
--
++ Jonathan Hayward,
jonathan hayward pobox com** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at
http://JonathansCorner.com** If you'd like a Google Mail (
gmail.com) account, please tell me!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]