diff options
author | Christian Neumair <cneumair@gnome.org> | 2008-04-02 11:26:50 +0000 |
---|---|---|
committer | Christian Neumair <cneumair@src.gnome.org> | 2008-04-02 11:26:50 +0000 |
commit | a5cf591c28a50b3493279ca54bf95bb4ed110030 (patch) | |
tree | 938678242297c753817d1112fdb2635124760298 /libnautilus-private/nautilus-icon-container.h | |
parent | 2966e3f43c54fae599be129c3bb8a236e06da7c2 (diff) | |
download | nautilus-a5cf591c28a50b3493279ca54bf95bb4ed110030.tar.gz |
Subtract 1 from icon rectangle's x2/y2 positions before setting scroll
2008-04-02 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-icon-container.c
(nautilus_icon_container_update_scroll_region),
(lay_down_icons_horizontal), (get_max_icon_dimensions),
(lay_down_icons_vertical),
(nautilus_icon_container_start_renaming_selected_item),
(nautilus_icon_container_is_layout_vertical):
* libnautilus-private/nautilus-icon-container.h:
* src/nautilus-window.c
(nautilus_window_set_initial_window_geometry):
Subtract 1 from icon rectangle's x2/y2 positions before setting scroll
area since the entire canvas codes requests 1 px more than it needs.
Wrap when the icon hits the canvas, rather than wrapping to late.
Fixes most of the "text besides icons" glitches.
Add container padding on the RHS for vertical layout, and consider
max. emblem rectangles when deciding whether to wrap. This may wrap
slightly to early in some (high zoom level) situations, but we will
never get scroll glitches.
svn path=/trunk/; revision=14025
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.h')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-icon-container.h b/libnautilus-private/nautilus-icon-container.h index 702911705..ed9d1d3c5 100644 --- a/libnautilus-private/nautilus-icon-container.h +++ b/libnautilus-private/nautilus-icon-container.h @@ -308,6 +308,7 @@ void nautilus_icon_container_set_all_columns_same_width (NautilusIconContaine gboolean all_columns_same_width); gboolean nautilus_icon_container_is_layout_rtl (NautilusIconContainer *container); +gboolean nautilus_icon_container_is_layout_vertical (NautilusIconContainer *container); void nautilus_icon_container_widget_to_file_operation_position (NautilusIconContainer *container, GdkPoint *position); |