@@ -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;
Do you mean to have something like `g_signal_connect(geany_object, "document-open", G_CALLBACK(on_document_open), &doc_saves_to_new_file);`?
yes
Should we really do that?
I don't know. Ideally there wouldn't be any need for a hack to know whether it was saved or saved as… BTW your technique here doesn't really work: it only finds out whether it's the first save, not whether the filename changed.
--- 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/c064984ff29744294b7c25d2987c5...