Browse Source

harbour, linux: Set window icon

pull/19/head
Kate Doeen 2 years ago
parent
commit
b2001167f9
No known key found for this signature in database
GPG Key ID: 9F81F962D88883F8
  1. 7
      packages/harbour/linux/my_application.cc

7
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);

Loading…
Cancel
Save