Changed linux build method

This commit is contained in:
Juan Gilsanz Polo 2023-05-04 18:23:01 +02:00
parent 65708c48c3
commit 62cf4d0c7f
8 changed files with 59 additions and 10 deletions

View file

@ -51,6 +51,13 @@ static void my_application_activate(GApplication* application) {
gtk_widget_show(GTK_WIDGET(window));
g_autoptr(FlDartProject) project = fl_dart_project_new();
g_autoptr(GError) error = nullptr;
gtk_window_set_icon_from_file(window, g_strconcat(fl_dart_project_get_assets_path(project), "/assets/icon/icon-circle-256.png", NULL), &error);
if (error != nullptr) {
g_warning("Failed to set icon: %s", error->message);
}
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
FlView* view = fl_view_new(project);