rpms/gnotime/F-7 fix_drag_and_drop.diff,NONE,1.1
Toshio くらとみ (toshio)
fedora-extras-commits at redhat.com
Sat Dec 8 07:50:26 UTC 2007
Author: toshio
Update of /cvs/pkgs/rpms/gnotime/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1702
Added Files:
fix_drag_and_drop.diff
Log Message:
Add drag and drop patch
fix_drag_and_drop.diff:
--- NEW FILE fix_drag_and_drop.diff ---
diff -up gnotime-2.2.3/src/ctree.c.dnd gnotime-2.2.3/src/ctree.c
--- gnotime-2.2.3/src/ctree.c.dnd 2007-12-07 20:06:11.000000000 -0800
+++ gnotime-2.2.3/src/ctree.c 2007-12-07 20:08:11.000000000 -0800
@@ -662,6 +662,8 @@ drag_drop (GtkWidget *widget, GdkDragCon
* from which we were cutted. */
ctree_update_label (ptw, old_parent);
+ ctree_setup (ptw, ptw->proj_list);
+
ptw->source_ctree_node = NULL;
ptw->parent_ctree_node = NULL;
ptw->sibling_ctree_node = NULL;
@@ -686,8 +688,14 @@ ctree_drag (GtkCTree *ctree, GtkCTreeNod
}
/* Record the values. We don't actually reparent anything
- * until the drag has completed. */
- ptw->source_ctree_node = source_node;
+ * until the drag has completed.
+ * Record the source_node only if it was not recorded before
+ * to work around a bug in GtkCTree */
+
+ if (!ptw->source_ctree_node)
+ {
+ ptw->source_ctree_node = source_node;
+ }
ptw->parent_ctree_node = new_parent;
ptw->sibling_ctree_node = new_sibling;
More information about the fedora-extras-commits
mailing list