rpms/gnotime/F-8 fix_drag_and_drop.diff, NONE, 1.1 gnotime.spec, 1.26, 1.27

Toshio くらとみ (toshio) fedora-extras-commits at redhat.com
Sat Dec 8 07:52:36 UTC 2007


Author: toshio

Update of /cvs/pkgs/rpms/gnotime/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1783

Modified Files:
	gnotime.spec 
Added Files:
	fix_drag_and_drop.diff 
Log Message:
Add the 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;
 


Index: gnotime.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnotime/F-8/gnotime.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- gnotime.spec	8 Dec 2007 07:43:32 -0000	1.26
+++ gnotime.spec	8 Dec 2007 07:52:01 -0000	1.27
@@ -1,6 +1,6 @@
 Name:           gnotime
 Version:        2.2.3
-Release:        3%{?dist}
+Release:        3%{?dist}.1
 Summary:        Tracks and reports time spent
 
 Group:          Applications/Productivity
@@ -116,6 +116,9 @@
 %{_sysconfdir}/gconf/schemas/*
 
 %changelog
+* Fri Dec 7 2007 Toshio Kuratomi <toshio at fedoraproject.org> - 2.2.3-3.1
+- Add forgotten patch.
+
 * Fri Dec 7 2007 Toshio Kuratomi <toshio at fedoraproject.org> - 2.2.3-3
 - Upstream's fix needed some fuzz cleanups.
 - Fix the desktop file's Icon definition.




More information about the fedora-extras-commits mailing list