Re: Shrinking and growing widgets in GTK+ 3.x
- From: Bastien Nocera <hadess hadess net>
- To: GTK Development List <gtk-devel-list gnome org>
- Subject: Re: Shrinking and growing widgets in GTK+ 3.x
- Date: Fri, 03 Dec 2010 01:07:39 +0000
On Thu, 2010-12-02 at 11:51 -0500, Havoc Pennington wrote:
> Hi,
>
> It seems like the following would work but maybe I'm missing the obvious
>
> * have the video request natural size = its natural unscaled size, and
> min size of whatever lowest scale factor you want to allow
>
> * to snap to natural size, just size request the entire toplevel to
> get the natural size, then gtk_window_resize() to that size
It might work :)
I went with Owen's solution, and it seems to behave as expected even
with the GtkPaned (though it already had some custom code to handle the
resizing there).
Thanks for the help.
Cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]