Re: Shrinking and growing widgets in GTK+ 3.x
- From: Bastien Nocera <hadess hadess net>
- To: Tristan Van Berkom <tristanvb openismus com>
- Cc: GTK Development List <gtk-devel-list gnome org>
- Subject: Re: Shrinking and growing widgets in GTK+ 3.x
- Date: Thu, 02 Dec 2010 12:20:02 +0000
On Thu, 2010-12-02 at 13:07 +0900, Tristan Van Berkom wrote:
> On Thu, 2010-12-02 at 00:56 +0000, Bastien Nocera wrote:
> > Heya,
<snip>
> If you want the whole window to "shrink", a.) that's a little
> yuck, I'm not sure how much end-users like that behaviour ...
> b.) GTK+ doesnt like doing that... but if I recall correctly
> you might provoke GTK+ to do that by calling
> gtk_container_check_resize()... I'd have to take a deeper look
> to make sure.
It might be yuck, but it's a feature other movie players implement, and
something we implemented a long time ago:
commit 9567aa7563ddd1cb6d38ee65bc42eb6ff5942804
Author: Bastien Nocera <hadess hadess net>
Date: Sun Sep 15 20:48:15 2002 +0000
added /apps/totem/auto_resize implement automatically changing the
ratio
2002-09-15 Bastien Nocera <hadess hadess net>
* data/totem.schemas.in: added /apps/totem/auto_resize
* src/gtk-xine.c: (frame_output_cb), (gtk_xine_idle_signal),
(gtk_xine_ratio_fits_screen), (gtk_xine_set_scale_ratio):
implement automatically changing the ratio when the video
changes size
(Closes: #92320)
Note that it's disabled by default.
gtk_container_check_resize() is lacking documentation in my day old
checkout of gtk+.
Cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]