After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 129580 - Zoom functionality doen't work under certain condition
Zoom functionality doen't work under certain condition
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2003-12-18 06:12 UTC by prakesh
Modified: 2007-05-07 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to highlight only available Zoom Ratios (14.25 KB, patch)
2004-01-02 11:52 UTC, Harsh Jaitly
needs-work Details | Review

Description prakesh 2003-12-18 06:12:27 UTC
Setup deatils
-------------
Redhat 9.0
Gnome 2.2.2
This is xine (X11 gui) - a free video player v0.9.22.
(c) 2000-2003 The xine Team.
Built with xine library 1.0.0 (1-rc2)
Found xine library version: 1.0.0 (1-rc2).
XServer Vendor: The XFree86 Project, Inc. Release: 40300000,
        Protocol Version: 11, Revision: 0,
        Available Screen(s): 1, using 0
        Depth: 24.
        XShmQueryVersion: 1.1.

Steps to Replicate
--------------------
1.Open totem.
2.Try to play a .wav file.
3. Maximize the totem window so that in occupy the entire desktop.
4.Now cleck the option
    Zoom 1:1
    Zoom 1:2
    Zoom 2:1
Non of the above functionality works under this condition.
Comment 1 prakesh 2003-12-18 08:29:31 UTC
Totem version is 0.99.8
Comment 2 Harsh Jaitly 2004-01-02 11:52:30 UTC
Created attachment 22836 [details] [review]
Patch to highlight only available Zoom Ratios
Comment 3 Harsh Jaitly 2004-01-02 12:02:12 UTC
1. The attached patch changes the totem.glade interface to create a
main "Zoom" Menu Item and the earlier ( Zoom 1:1, Zoom 1:2 ) menu
items have been created as children of this "Zoom" Item.
We will change the sensitivity of these accordingly so ONLY the
possible zoom ratios will be displayed to the user. ( keyboard
shortcuts lead to error messages to the shell. )

2. The APIs bacon_video_widget_set_scale_ratio and
totem_action_set_scale_ratio have been changed to return a gboolean
value depending on whether or not the chosen zoom ratio will lead to a
change in window size.  
An extra argument (gboolean resize ) is being passed to these APIs to
indicate whether we want to resize the toplevel window or just query
whether a resize will be done or not. 
Comment 4 Bastien Nocera 2004-01-04 09:17:21 UTC
Printing to the console is very very bad error feedback. I'd prefer if
nothing happened in those cases (the availability of the menu items is
a good enough discovery item).
I'd prefer it if the test was actually done when the window is
resized. Even better would be to move the set_scale_ratio to the
video-utils.[ch] as apart from the dimension of the video on the
screen, nothing is needed from the video widget.
Comment 5 Harsh Jaitly 2004-01-05 08:04:24 UTC
EXACTLY my feelings about the patch..:)

1. I was torn between ignoring the errors from keyboard shortcuts and
displaying an error message on the screen ( eeks...) and finally
settled on the error messages to the console.

2. I wanted to do the tests when the window was resized since that
would not require any change to the glade XML interface, but I did not
know what handler handles the window change...:(
Will do more work on this one and resubmit.
Comment 6 Bastien Nocera 2004-09-20 16:24:43 UTC
Mass reassign.
Comment 7 Bastien Nocera 2005-02-23 22:58:24 UTC
Re-reading the original bug report, it was indeed pretty normal that the
maximised windows couldn't be set to those zoom levels. We would need to
unmaximise the window first. However, we'd still need to be able to track which
zoom levels can, and cannot be reached given the video size, and desktop size.
Comment 8 Daniel Holbach 2006-08-09 09:51:57 UTC
https://launchpad.net/distros/ubuntu/+source/totem/+bug/55584 mentions the same with totem 1.5.90
Comment 9 Bastien Nocera 2007-05-07 16:41:49 UTC
The original bug report should be fixed by that commit.

2007-05-07  Bastien Nocera  <hadess@hadess.net>

        * src/totem.c: (window_state_event_cb): When the window becomes
        maximised, disable the fit window to movie menu entries, as we
        can't fit to movie when we're maximised (Closes: #129580)

Having the menu entries be available depending on the size of the desktop, and the size of the movie would be nice, but it would require a different bug report.