Container resizing behaviour changed in Gtk 3?
- From: Greg Ewing <greg ewing canterbury ac nz>
- To: Gtk+ list <gtk-list gnome org>
- Subject: Container resizing behaviour changed in Gtk 3?
- Date: Mon, 28 Mar 2011 18:19:41 +1300
The behaviour of containers when their contents try
to resize themselves seems to have changed between
Gtk 2 and Gtk 3.
In Gtk 2, if you have a GtkLayout carrying a
GtkFrame that contains a GtkTextView, and use
set_size_request() to set the size of the GtkFrame,
it stays that size. If you type more text into the
GtkTextView than will fit in the visible area,
it auto-scrolls.
But in Gtk 3, the GtkTextView and its containing
GtkFrame seem to enlarge themselves without limit
to accommodate the text.
I don't want that to happen. Is there some way of
getting the old behaviour back? I can't find any
way of setting the *maximum* size of a widget.
Thanks,
Greg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]