tomboy r1787 - in trunk: . Tomboy/Notebooks



Author: btimothy
Date: Mon Jan 14 20:49:27 2008
New Revision: 1787
URL: http://svn.gnome.org/viewvc/tomboy?rev=1787&view=rev

Log:
2008-01-14  Boyd Timothy <btimothy gmail com> 

        * Tomboy/Notebooks/NotebooksTreeView.cs: Adjust previous
          commit to prevent notes from being dropped on the
          "All Notes" notebook.  Also, allows a border to be drawn
          around the "Unfiled Notes" notebook during the drag.



Modified:
   trunk/ChangeLog
   trunk/Tomboy/Notebooks/NotebooksTreeView.cs

Modified: trunk/Tomboy/Notebooks/NotebooksTreeView.cs
==============================================================================
--- trunk/Tomboy/Notebooks/NotebooksTreeView.cs	(original)
+++ trunk/Tomboy/Notebooks/NotebooksTreeView.cs	Mon Jan 14 20:49:27 2008
@@ -52,6 +52,11 @@
 			}
 			
 			Notebook destNotebook = Model.GetValue (iter, 0) as Notebook;
+			if (destNotebook is AllNotesNotebook) {
+				Gtk.Drag.Finish (context, false, false, time_);
+				return;
+			}
+			
 			foreach (Uri uri in uriList) {
 				Note note = noteManager.FindByUri (uri.ToString ());
 				if (note == null)
@@ -85,7 +90,7 @@
 			}
 			
 			Notebook destNotebook = Model.GetValue (iter, 0) as Notebook;
-			if (destNotebook is SpecialNotebook) {
+			if (destNotebook is AllNotesNotebook) {
 				SetDragDestRow (null, Gtk.TreeViewDropPosition.IntoOrAfter);
 				return true;
 			}



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