[Github-comments] [geany/geany] Add features for sorting editor tabs (#1144)

konsolebox notifications at xxxxx
Sun Jul 31 02:31:42 UTC 2016


> @@ -65,6 +66,8 @@ static gboolean switch_in_progress = FALSE;
>  static GtkWidget *switch_dialog = NULL;
>  static GtkWidget *switch_dialog_label = NULL;
>  
> +static gboolean doc_saves_to_new_file = FALSE;

> Ideally there wouldn't be any need for a hack to know whether it was saved or saved as

Would that unexpectedly move a manually rearranged tab when simply just  saving a file?

> it only finds out whether it's the first save, not whether the filename changed.

As I observed, `doc->real_path` is always `NULL` in a `"document-before-save"` event when saving to a new file.  Is there a case where this is different?  I'll check it again.

---
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/c064984ff29744294b7c25d2987c5b51f3c24405#r72897052
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160730/61b9a6d1/attachment.html>


More information about the Github-comments mailing list