[Xfce4-commits] <thunar:master> Don't force scrolling to the window edge.

Nick Schermer noreply at xfce.org
Sat Oct 13 18:30:01 CEST 2012


Updating branch refs/heads/master
         to c4d3a3a9abe1977251779aa5427b854d2bc0435b (commit)
       from aab9d0378415e34d07fc8b3614d161db40ec7745 (commit)

commit c4d3a3a9abe1977251779aa5427b854d2bc0435b
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Oct 13 18:28:30 2012 +0200

    Don't force scrolling to the window edge.
    
    This avoid the small scrolls thunar sometimes makes.

 thunar/thunar-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 99738ff..2d2ca0e 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1722,7 +1722,7 @@ thunar_window_action_open_new_window (GtkAction    *action,
   if (window->view != NULL && thunar_view_get_visible_range (THUNAR_VIEW (window->view), &start_file, NULL))
     {
       /* scroll the new window to the same file */
-      thunar_window_scroll_to_file (THUNAR_WINDOW (new_window), start_file, FALSE, TRUE, 0.0f, 0.0f);
+      thunar_window_scroll_to_file (THUNAR_WINDOW (new_window), start_file, FALSE, TRUE, 0.1f, 0.1f);
 
       /* release the file reference */
       g_object_unref (G_OBJECT (start_file));
@@ -3048,7 +3048,7 @@ thunar_window_set_current_directory (ThunarWindow *window,
       /* check if we have a scroll_to_file for the new directory and scroll to the file */
       file = g_hash_table_lookup (window->scroll_to_files, window->current_directory);
       if (G_LIKELY (file != NULL))
-        thunar_window_scroll_to_file (window, file, FALSE, TRUE, 0.0f, 0.0f);
+        thunar_window_scroll_to_file (window, file, FALSE, TRUE, 0.1f, 0.1f);
 
       /* reset the selected files list */
       selected_files.data = NULL;


More information about the Xfce4-commits mailing list