Re: Shrinking and growing widgets in GTK+ 3.x

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,
> 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
    2002-09-15  Bastien Nocera  <hadess hadess net>
            * data/ 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+.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]