Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion linux/my_application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

#include "flutter/generated_plugin_registrant.h"

#if GLIB_CHECK_VERSION(2,74,0)
#define MY_APP_DEFAULT_FLAGS G_APPLICATION_DEFAULT_FLAGS
#else
#define MY_APP_DEFAULT_FLAGS G_APPLICATION_FLAGS_NONE
#endif

struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
Expand Down Expand Up @@ -131,6 +137,6 @@ static void my_application_init(MyApplication* self) {
MyApplication* my_application_new() {
return MY_APPLICATION(g_object_new(my_application_get_type(),
"application-id", APPLICATION_ID,
"flags", G_APPLICATION_DEFAULT_FLAGS,
"flags", MY_APP_DEFAULT_FLAGS,
nullptr));
}
Loading