Don't recreate the open files items when DnD reordering tabs, now

that the open files treeview is sorted alphabetically.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1394 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-03-14 12:11:50 +00:00
parent f1302af228
commit 638af6cd6d
3 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,9 @@
* src/callbacks.c: * src/callbacks.c:
Delay updating interface items when switching notebook tabs until Delay updating interface items when switching notebook tabs until
after the page has changed, so it appears to switch pages faster. 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@uvena.de> 2007-03-13 Enrico Tröger <enrico.troeger@uvena.de>

View File

@ -182,7 +182,9 @@ static void
notebook_page_reordered_cb(GtkNotebook *notebook, GtkWidget *child, guint page_num, notebook_page_reordered_cb(GtkNotebook *notebook, GtkWidget *child, guint page_num,
gpointer user_data) 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();
} }

View File

@ -234,6 +234,7 @@ void treeviews_openfiles_update(gint idx)
} }
#if 0
void treeviews_openfiles_update_all() void treeviews_openfiles_update_all()
{ {
guint i; guint i;
@ -248,6 +249,7 @@ void treeviews_openfiles_update_all()
treeviews_openfiles_add(idx); treeviews_openfiles_add(idx);
} }
} }
#endif
void treeviews_remove_document(gint idx) void treeviews_remove_document(gint idx)