[Github-comments] [geany/geany] Add features for sorting editor tabs (#1144)
konsolebox
notifications at xxxxx
Wed Jul 27 09:22:53 UTC 2016
> + else if (interface_prefs.auto_sort_tabs_pathname)
> + notebook_sort_tabs(NOTEBOOK_TAB_SORT_PATHNAME);
> + }
> +
> + on_idle_auto_sort_hooked = FALSE;
> + return FALSE;
> +}
> +
> +
> +static gboolean on_document_open(GeanyDocument* doc)
> +{
> + if (!on_idle_auto_sort_hooked && interface_prefs.show_notebook_tabs &&
> + (interface_prefs.auto_sort_tabs_filename || interface_prefs.auto_sort_tabs_pathname))
> + {
> + if (g_idle_add(on_idle_auto_sort_tabs, NULL) > 0)
> + on_idle_auto_sort_hooked = TRUE;
Gradual sorting indeed is the better way. I already have a code for it but it still doesn't work as expected. I'll figure it out soon.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1144/files/4f219bdad24610e674da26cf2dc97d7d8a10b8c8#r72407471
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160727/2191c49f/attachment.html>
More information about the Github-comments
mailing list