[gthumb] don't set the cursor automatically when focused



commit 4c887bc0d507a282974290d6c70a505a8bc71fa5
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Nov 25 15:24:48 2011 +0100

    don't set the cursor automatically when focused
    
    this avoids an automatic scrolling to the focused item when selecting with
    the mouse.

 gthumb/gth-grid-view.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index a97109f..f28d582 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -1487,8 +1487,6 @@ gth_grid_view_focus_in (GtkWidget     *widget,
 	GthGridView *self = GTH_GRID_VIEW (widget);
 
 	_gth_grid_view_keep_focus_consistent (self);
-	if ((self->priv->focused_item == -1) && (self->priv->n_items > 0))
-		gth_file_view_set_cursor (GTH_FILE_VIEW (self), 0);
 	gtk_widget_queue_draw (widget);
 
 	return TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]