summaryrefslogtreecommitdiff
path: root/itches/emacs/pgtk-shift-space.c
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2023-07-16 11:51:29 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2023-07-16 11:51:29 +0200
commit5ce1f8113558cffcc20b928c6d9a9239aa14cde7 (patch)
tree5176858274de1a22942e07ca07528621862d3d6f /itches/emacs/pgtk-shift-space.c
parentb27bc692bdb7564f235388350fe1e8fa42e30c88 (diff)
downloadmemory-leaks-5ce1f8113558cffcc20b928c6d9a9239aa14cde7.tar.xz
Appease GLib
Diffstat (limited to 'itches/emacs/pgtk-shift-space.c')
-rw-r--r--itches/emacs/pgtk-shift-space.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/itches/emacs/pgtk-shift-space.c b/itches/emacs/pgtk-shift-space.c
index b223098..c684bd3 100644
--- a/itches/emacs/pgtk-shift-space.c
+++ b/itches/emacs/pgtk-shift-space.c
@@ -55,7 +55,13 @@ main (int argc, char **argv)
GtkApplication *app;
int status;
- app = gtk_application_new ("org.gtk.key-scratchpad", G_APPLICATION_DEFAULT_FLAGS);
+ app = gtk_application_new ("org.gtk.key-scratchpad",
+#if GLIB_CHECK_VERSION(2, 74, 0)
+ G_APPLICATION_DEFAULT_FLAGS
+#else
+ 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);