From b2001167f9656db10d2df11e8065909f5271ca8e Mon Sep 17 00:00:00 2001 From: Kate Doeen Date: Wed, 13 Jul 2022 23:36:31 +0200 Subject: [PATCH] harbour, linux: Set window icon --- packages/harbour/linux/my_application.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/harbour/linux/my_application.cc b/packages/harbour/linux/my_application.cc index 4ded7d7b..e490356c 100644 --- a/packages/harbour/linux/my_application.cc +++ b/packages/harbour/linux/my_application.cc @@ -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/logo_harbour.svg", 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);