[gnome-todo/wip/gbsneto/dnd-fixups: 5/6] task-row: Reset cursor after DnD



commit c4e338475538bf76e8b08579e563ad2b06246258
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Oct 31 16:39:52 2017 -0200

    task-row: Reset cursor after DnD

 src/gtd-task-row.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/gtd-task-row.c b/src/gtd-task-row.c
index 05212ac..dcd4e12 100644
--- a/src/gtd-task-row.c
+++ b/src/gtd-task-row.c
@@ -238,6 +238,7 @@ drag_end_cb (GtkWidget      *dnd_event_box,
              GdkDragContext *context,
              GtdTaskRow     *self)
 {
+  set_cursor (GTK_WIDGET (self), NULL);
   gtk_widget_show (GTK_WIDGET (self));
 }
 
@@ -247,6 +248,7 @@ drag_failed_cb (GtkWidget      *widget,
                 GtkDragResult   result,
                 GtdTaskRow     *self)
 {
+  set_cursor (GTK_WIDGET (self), NULL);
   gtk_widget_show (GTK_WIDGET (self));
 
   return FALSE;


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