[Github-comments] [geany/geany] Add "project-before-close" signal to API (#1223)

Colomban Wendling notifications at xxxxx
Sun Sep 18 11:08:48 UTC 2016


b4n commented on this pull request.



> @@ -156,6 +156,12 @@ static void create_signals(GObjectClass *g_object_class)
 		G_SIGNAL_RUN_FIRST,
 		0, NULL, NULL, g_cclosure_marshal_VOID__VOID,
 		G_TYPE_NONE, 0);
+	geany_object_signals[GDB_PROJECT_BEFORE_CLOSE] = g_signal_new (
+		"project-before-close",
+		G_OBJECT_CLASS_TYPE (g_object_class),
+		G_SIGNAL_RUN_FIRST,
+		0, NULL, NULL, g_cclosure_marshal_VOID__VOID,
+		G_TYPE_NONE, 0);

Hum, actually I just thought of a perfectly plausible use case: get notified the settings were changed back to the non-project one and read those.  This requires the signal to be emitted after those were restored, and that currently mean when the project is actually closed.

So maybe we need that extra signal.

-- 
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/1223
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160918/3226f729/attachment-0001.html>


More information about the Github-comments mailing list