[gthumb/gthumb-3-4] grid view: fixed dragging action not started
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-4] grid view: fixed dragging action not started
- Date: Mon, 3 Oct 2016 09:24:26 +0000 (UTC)
commit 2efe0a4c1e7dcd805ff88bf460797d6e3436224a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Sep 11 09:53:09 2016 +0200
grid view: fixed dragging action not started
gthumb/gth-grid-view.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 16e6a39..855b552 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -3160,6 +3160,10 @@ gth_grid_view_motion_notify (GtkWidget *widget,
/**/
self->priv->drag_started = TRUE;
+ self->priv->select_pending = FALSE;
+ self->priv->activate_pending = FALSE;
+ self->priv->selecting = FALSE;
+
context = gtk_drag_begin_with_coordinates (widget,
self->priv->drag_target_list,
self->priv->drag_actions,
@@ -3224,6 +3228,15 @@ gth_grid_view_motion_notify (GtkWidget *widget,
static void
+gth_grid_view_drag_end (GtkWidget *widget,
+ GdkDragContext *context,
+ gpointer user_data)
+{
+ _gth_grid_view_stop_dragging (GTH_GRID_VIEW (widget));
+}
+
+
+static void
select_range_with_keyboard (GthGridView *self,
int next_focused_item)
{
@@ -3706,6 +3719,7 @@ gth_grid_view_class_init (GthGridViewClass *grid_view_class)
widget_class->button_press_event = gth_grid_view_button_press;
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;
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]