Widget sizes
- From: Stéphane Konstantaropoulos <stephane cs york ac uk>
- To: gtk-app-devel-list gnome org
- Subject: Widget sizes
- Date: Tue, 12 Apr 2005 19:17:09 +0100
Hello All,
I have implemeted a widget and I'd like it to notify its container of
its preferred size but I do not want this size to be compulsory.
So I override the size_request method of the widget, where I set the
GtkRequisition.
Fine, it works, when I put that widget into a GtkVBox then into a
GtkWindow it resizes the whole thing when the app calls
gtk_widget_size_request(); then gtk_widget_queue_resize() on the widget;
But, the widget cannot be resized to smaller than that afterwards, it
works if I make the window bigger but it is stuck to the requested size
as the smallest size.
Is there a workaround? (without using calls to the toplevel window)
Perhaps in the GtkVBox that contains the widget?
Thanks for helping,
--
Stéphane Konstantaropoulos
- Research Student, Computer Science
-- University of York, http://www-users.cs.york.ac.uk/~stephane
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]