- Fix whitespace on the right in icon view when zooming

This commit is contained in:
Alexander Larsson 2009-04-16 08:48:21 +00:00
parent 66bbb146ef
commit 9639441999
3 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,25 @@
Index: libnautilus-private/nautilus-icon-container.c
===================================================================
--- libnautilus-private/nautilus-icon-container.c (revision 15183)
+++ libnautilus-private/nautilus-icon-container.c (revision 15184)
@@ -1033,9 +1033,9 @@
GtkAllocation *allocation;
gboolean reset_scroll_region;
+ pixels_per_unit = EEL_CANVAS (container)->pixels_per_unit;
+
if (nautilus_icon_container_get_is_fixed_size (container)) {
- pixels_per_unit = EEL_CANVAS (container)->pixels_per_unit;
-
/* Set the scroll region to the size of the container allocation */
allocation = &GTK_WIDGET (container)->allocation;
eel_canvas_set_scroll_region
@@ -1090,7 +1090,7 @@
if (nautilus_icon_container_is_auto_layout (container)) {
allocation = &GTK_WIDGET (container)->allocation;
x1 = MIN (x1, 0);
- x2 = MAX (x2, allocation->width);
+ x2 = MAX (x2, allocation->width / pixels_per_unit);
y1 = 0;
} else {
/* Otherwise we add the padding that is at the start of the

View File

@ -16,7 +16,7 @@
Name: nautilus Name: nautilus
Summary: File manager for GNOME Summary: File manager for GNOME
Version: 2.26.2 Version: 2.26.2
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: User Interface/Desktops Group: User Interface/Desktops
Source: http://download.gnome.org/sources/%{name}/2.26/%{name}-%{version}.tar.bz2 Source: http://download.gnome.org/sources/%{name}/2.26/%{name}-%{version}.tar.bz2
@ -87,6 +87,9 @@ Patch10: nautilus-gvfs-desktop-key-2.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=519743 # http://bugzilla.gnome.org/show_bug.cgi?id=519743
Patch17: nautilus-filetype-symlink-fix.patch Patch17: nautilus-filetype-symlink-fix.patch
# From svn (rev 15184)
Patch18: nautilus-2.26.2-icon-whitespace.patch
%description %description
Nautilus is the file manager and graphical shell for the GNOME desktop Nautilus is the file manager and graphical shell for the GNOME desktop
that makes it easy to manage your files and the rest of your system. that makes it easy to manage your files and the rest of your system.
@ -124,6 +127,7 @@ for developing nautilus extensions.
# %patch8 -p1 -b .hide-white-screen # %patch8 -p1 -b .hide-white-screen
%patch10 -p1 -b .gvfs-desktop-key %patch10 -p1 -b .gvfs-desktop-key
%patch17 -p0 -b .symlink %patch17 -p0 -b .symlink
%patch18 -p0 -b .whitespace
%build %build
@ -261,6 +265,9 @@ fi
%changelog %changelog
* Thu Apr 16 2009 Alexander Larsson <alexl@redhat.com> - 2.26.2-2
- Fix whitespace on the right in icon view when zooming
* Mon Apr 13 2009 Alexander Larsson <alexl@redhat.com> - 2.26.2-1 * Mon Apr 13 2009 Alexander Larsson <alexl@redhat.com> - 2.26.2-1
- Update to 2.26.2 - Update to 2.26.2

View File

@ -1,2 +1 @@
5d75f5de2806e9003e36a4613866b8d1 nautilus-2.26.1.tar.bz2
6b9292ed9dde8b5f86a3b6df1422d5f8 nautilus-2.26.2.tar.bz2 6b9292ed9dde8b5f86a3b6df1422d5f8 nautilus-2.26.2.tar.bz2