Package: gthumb Version: 3:2.8.0-1 Severity: normal Tags: patch
Find a directory of images smaller than the screen. Set preference `Viewer - After loading an Image' to `Keep previous zoom'. Enter fullscreen mode by pressing `f'. Make image zoom to fit by pressing `x'. Step to next image by pressng space. The new image is not zoomed to fit, like I asked. This is upstream bug #321840. The patch given in that bug report applies cleanly to the Debianized tree and fixes the bug (at least well enough for me); I reproduce it below. The fix doesn't appear to be in 2.8.1 judging by the Gnome Subversion repository, so just upgrading to the next upstream release won't help. Index: src/gth-fullscreen.c =================================================================== RCS file: /cvs/gnome/gthumb/src/gth-fullscreen.c,v retrieving revision 1.34 diff -u -p -r1.34 gth-fullscreen.c --- src/gth-fullscreen.c 17 Aug 2006 16:16:45 -0000 1.34 +++ src/gth-fullscreen.c 29 Sep 2006 20:29:38 -0000 @@ -1468,6 +1468,7 @@ gth_fullscreen_construct (GthFullscreen { GthFullscreenPrivateData *priv = fullscreen->priv; GdkScreen *screen = gtk_widget_get_screen (GTK_WIDGET (fullscreen)); + GthZoomChange zoom_change = pref_get_zoom_change (); gtk_window_set_default_size (GTK_WINDOW (fullscreen), gdk_screen_get_width (screen), @@ -1495,7 +1496,7 @@ gth_fullscreen_construct (GthFullscreen image_viewer_set_zoom_quality (IMAGE_VIEWER (priv->viewer), pref_get_zoom_quality ()); image_viewer_set_zoom_change (IMAGE_VIEWER (priv->viewer), - GTH_ZOOM_CHANGE_FIT_IF_LARGER); + zoom_change); image_viewer_set_check_type (IMAGE_VIEWER (priv->viewer), pref_get_check_type ()); image_viewer_set_check_size (IMAGE_VIEWER (priv->viewer), @@ -1504,7 +1505,12 @@ gth_fullscreen_construct (GthFullscreen pref_get_transp_type ()); image_viewer_set_black_background (IMAGE_VIEWER (priv->viewer), TRUE); image_viewer_hide_frame (IMAGE_VIEWER (priv->viewer)); - image_viewer_zoom_to_fit_if_larger (IMAGE_VIEWER (priv->viewer)); + if(zoom_change == GTH_ZOOM_CHANGE_ACTUAL_SIZE) + image_viewer_set_zoom (IMAGE_VIEWER (priv->viewer), 1.0); + else if(zoom_change == GTH_ZOOM_CHANGE_FIT) + image_viewer_zoom_to_fit (IMAGE_VIEWER (priv->viewer)); + else + image_viewer_zoom_to_fit_if_larger (IMAGE_VIEWER (priv->viewer)); g_signal_connect (G_OBJECT (priv->viewer), "key_press_event", -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.29 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages gthumb depends on: ii gconf2 2.16.0-3 GNOME configuration database syste ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi ii libatk1.0-0 1.12.4-1 The ATK accessibility toolkit ii libbonobo2-0 2.14.0-3 Bonobo CORBA interfaces library ii libbonoboui2-0 2.14.0-5 The Bonobo UI library ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libcairo2 1.2.4-4 The Cairo 2D vector graphics libra ii libexif12 0.6.13-5 library to parse EXIF files ii libfontconfig1 2.4.2-1 generic font configuration library ii libgconf2-4 2.16.0-3 GNOME configuration database syste ii libglade2-0 1:2.6.0-4 library to load .glade files at ru ii libglib2.0-0 2.12.4-2 The GLib library of C routines ii libgnome-keyring0 0.6.0-3 GNOME keyring services library ii libgnome2-0 2.16.0-2 The GNOME 2 library - runtime file ii libgnomecanvas2-0 2.14.0-2 A powerful object-oriented display ii libgnomeprint2.2-0 2.12.1-7 The GNOME 2.2 print architecture - ii libgnomeprintui2.2-0 2.12.1-4 GNOME 2.2 print architecture User ii libgnomeui-0 2.14.1-2 The GNOME 2 libraries (User Interf ii libgnomevfs2-0 2.14.2-4 GNOME virtual file-system (runtime ii libgphoto2-2 2.2.1-12 gphoto2 digital camera library ii libgphoto2-port0 2.2.1-12 gphoto2 digital camera port librar ii libgtk2.0-0 2.8.20-3 The GTK+ graphical user interface ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library ii libjpeg62 6b-13 The Independent JPEG Group's JPEG ii liborbit2 1:2.14.3-0.1 libraries for ORBit2 - a CORBA ORB ii libpango1.0-0 1.14.8-4 Layout and rendering of internatio ii libpopt0 1.10-3 lib for parsing cmdline parameters ii libsm6 1:1.0.1-3 X11 Session Management library ii libtiff4 3.8.2-7 Tag Image File Format (TIFF) libra ii libx11-6 2:1.0.3-4 X11 client-side library ii libxcursor1 1.1.7-4 X cursor management library ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes' extensio ii libxi6 1:1.0.1-4 X11 Input extension library ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library ii libxml2 2.6.27.dfsg-1 GNOME XML library ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library ii libxrender1 1:0.9.1-3 X Rendering Extension client libra ii scrollkeeper 0.3.14-11 A free electronic cataloging syste ii shared-mime-info 0.19-1 FreeDesktop.org shared MIME databa ii zlib1g 1:1.2.3-13 compression library - runtime gthumb recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]