[gthumb/gthumb-3-4] grid view: remove drop position highlight in drop-leave
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-4] grid view: remove drop position highlight in drop-leave
- Date: Mon, 3 Oct 2016 09:25:07 +0000 (UTC)
commit 73b2c572d876429f23606ad2f5fc95b94f6f3e58
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Sep 17 18:19:23 2016 +0200
grid view: remove drop position highlight in drop-leave
gthumb/gth-grid-view.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index c8ba13e..f110918 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -3238,12 +3238,19 @@ gth_grid_view_motion_notify (GtkWidget *widget,
static void
gth_grid_view_drag_end (GtkWidget *widget,
- GdkDragContext *context,
- gpointer user_data)
+ GdkDragContext *context)
{
GthGridView *self = GTH_GRID_VIEW (widget);
-
_gth_grid_view_stop_dragging (self);
+}
+
+
+static void
+gth_grid_view_drag_leave (GtkWidget *widget,
+ GdkDragContext *context,
+ guint time)
+{
+ GthGridView *self = GTH_GRID_VIEW (widget);
if ((self->priv->drop_pos != GTH_DROP_POSITION_NONE) || (self->priv->drop_item != -1)) {
self->priv->drop_item = -1;
@@ -3737,6 +3744,7 @@ gth_grid_view_class_init (GthGridViewClass *grid_view_class)
widget_class->button_release_event = gth_grid_view_button_release;
widget_class->motion_notify_event = gth_grid_view_motion_notify;
widget_class->drag_end = gth_grid_view_drag_end;
+ widget_class->drag_leave = gth_grid_view_drag_leave;
grid_view_class->select_all = gth_grid_view_select_all;
grid_view_class->unselect_all = gth_grid_view_unselect_all;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]