[gthumb] grid view: hide the drop position on drag end



commit 263262a7302567bba757c1545222b14f50955226
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Sep 11 10:43:58 2016 +0200

    grid view: hide the drop position on drag end

 gthumb/gth-grid-view.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 6acd38e..5c7bf5f 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -3246,7 +3246,15 @@ gth_grid_view_drag_end (GtkWidget      *widget,
                        GdkDragContext *context,
                        gpointer        user_data)
 {
-       _gth_grid_view_stop_dragging (GTH_GRID_VIEW (widget));
+       GthGridView *self = GTH_GRID_VIEW (widget);
+
+       _gth_grid_view_stop_dragging (self);
+
+       if ((self->priv->drop_pos != GTH_DROP_POSITION_NONE) || (self->priv->drop_item != -1)) {
+               self->priv->drop_item = -1;
+               self->priv->drop_pos = GTH_DROP_POSITION_NONE;
+               gtk_widget_queue_draw (GTK_WIDGET (self));
+       }
 }
 
 


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