[gthumb/gthumb-3-4] grid view: hide the drop position on drag end
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-4] grid view: hide the drop position on drag end
- Date: Mon, 3 Oct 2016 09:24:42 +0000 (UTC)
commit e3ff6a23c277b973c3b2f6bb6482f8275d668caa
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 cdb5a66..c8ba13e 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -3241,7 +3241,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]