SF.net SVN: geany: [1394] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Mar 14 12:11:50 UTC 2007


Revision: 1394
          http://svn.sourceforge.net/geany/?rev=1394&view=rev
Author:   ntrel
Date:     2007-03-14 05:11:50 -0700 (Wed, 14 Mar 2007)

Log Message:
-----------
Don't recreate the open files items when DnD reordering tabs, now
that the open files treeview is sorted alphabetically.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/notebook.c
    trunk/src/treeviews.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-03-14 12:03:15 UTC (rev 1393)
+++ trunk/ChangeLog	2007-03-14 12:11:50 UTC (rev 1394)
@@ -3,6 +3,9 @@
  * src/callbacks.c:
    Delay updating interface items when switching notebook tabs until
    after the page has changed, so it appears to switch pages faster.
+ * src/treeviews.c, src/notebook.c:
+   Don't recreate the open files items when DnD reordering tabs, now
+   that the open files treeview is sorted alphabetically.
 
 
 2007-03-13  Enrico Tröger  <enrico.troeger at uvena.de>

Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c	2007-03-14 12:03:15 UTC (rev 1393)
+++ trunk/src/notebook.c	2007-03-14 12:11:50 UTC (rev 1394)
@@ -182,7 +182,9 @@
 notebook_page_reordered_cb(GtkNotebook *notebook, GtkWidget *child, guint page_num,
 	gpointer user_data)
 {
-	treeviews_openfiles_update_all();
+	/* Not necessary to update open files treeview if it's sorted.
+	 * Note: if enabled, it's best to move the item instead of recreating all items. */
+	//treeviews_openfiles_update_all();
 }
 
 

Modified: trunk/src/treeviews.c
===================================================================
--- trunk/src/treeviews.c	2007-03-14 12:03:15 UTC (rev 1393)
+++ trunk/src/treeviews.c	2007-03-14 12:11:50 UTC (rev 1394)
@@ -234,6 +234,7 @@
 }
 
 
+#if 0
 void treeviews_openfiles_update_all()
 {
 	guint i;
@@ -248,6 +249,7 @@
 		treeviews_openfiles_add(idx);
 	}
 }
+#endif
 
 
 void treeviews_remove_document(gint idx)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list