[gthumb] thumbnail list: keep the focused item visibile when resizing



commit a77debd4a125714d1d3a757520ccac5df10c4183
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Dec 26 12:59:13 2015 +0100

    thumbnail list: keep the focused item visibile when resizing

 gthumb/gth-grid-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index a40283c..36a8e43 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -1192,8 +1192,10 @@ gth_grid_view_size_allocate (GtkWidget     *widget,
                                   MAX (self->priv->width, allocation->width),
                                   MAX (self->priv->height, allocation->height));
 
-               if (self->priv->needs_relayout || (old_cells_per_line != gth_grid_view_get_items_per_line 
(self)))
+               if (self->priv->needs_relayout || (old_cells_per_line != gth_grid_view_get_items_per_line 
(self))) {
+                       self->priv->make_focused_visible = TRUE;
                        _gth_grid_view_queue_relayout (self);
+               }
        }
        else
                self->priv->needs_relayout_after_size_allocate = TRUE;


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