Skip to content

Commit

Permalink
docs: make tutorial compatible with GLib versions older than 2.74
Browse files Browse the repository at this point in the history
  • Loading branch information
LegStrong authored and eli-schwartz committed Jul 22, 2024
1 parent 9459bd8 commit 2d98cfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/markdown/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ int main(int argc, char **argv)
GtkApplication *app;
int status;
#if GLIB_CHECK_VERSION(2, 74, 0)
app = gtk_application_new(NULL, G_APPLICATION_DEFAULT_FLAGS);
#else
app = gtk_application_new(NULL, G_APPLICATION_FLAGS_NONE);
#endif
g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
status = g_application_run(G_APPLICATION(app), argc, argv);
g_object_unref(app);
Expand Down

0 comments on commit 2d98cfd

Please sign in to comment.