mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-03 12:55:42 +03:00
Keep building with GLib older than 2.74
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
#include "glviewport.h"
|
||||
#include "headform.h"
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 74, 0)
|
||||
#define G_APPLICATION_DEFAULT_FLAGS G_APPLICATION_FLAGS_NONE
|
||||
#endif
|
||||
|
||||
__attribute__((noreturn)) void wd_fatal_error(int status, const char *message) {
|
||||
GtkWindow *parent = gtk_application_get_active_window(GTK_APPLICATION(g_application_get_default()));
|
||||
GtkWidget *dialog = gtk_message_dialog_new(parent, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", message);
|
||||
|
||||
Reference in New Issue
Block a user