[gnome-todo] task-list-view: Receive doubles in drop callback



commit 0ec8681ba8a637de7ac0c18720490149dd982c7f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Apr 2 16:14:18 2020 -0300

    task-list-view: Receive doubles in drop callback
    
    Doubles have a larger type size compared to integers, and
    that may cause invalid reads of the 'self' variable.

 src/task-list-view/gtd-task-list-view.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/task-list-view/gtd-task-list-view.c b/src/task-list-view/gtd-task-list-view.c
index 96e4597..b640286 100644
--- a/src/task-list-view/gtd-task-list-view.c
+++ b/src/task-list-view/gtd-task-list-view.c
@@ -1,6 +1,6 @@
 /* gtd-task-list-view.c
  *
- * Copyright (C) 2015 Georges Basile Stavracas Neto <georges stavracas gmail com>
+ * Copyright (C) 2015-2020 Georges Basile Stavracas Neto <georges stavracas gmail com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -821,8 +821,8 @@ fail:
 static gboolean
 on_drop_target_drag_drop_cb (GtkDropTarget   *drop_target,
                              const GValue    *value,
-                             gint             x,
-                             gint             y,
+                             gdouble          x,
+                             gdouble          y,
                              GtdTaskListView *self)
 {
   GtdTaskListViewPrivate *priv;


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