test icon linux?

This commit is contained in:
hiddify-com
2024-08-04 19:10:04 +02:00
parent 54c9503ac0
commit 21b86efa9f
2 changed files with 3 additions and 1 deletions

Submodule libcore updated: d08c5d80fc...0e3d3a0032

View File

@@ -14,6 +14,7 @@ struct _MyApplication
};
G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
#define ICON_PATH "./hiddify.png"
// Implements GApplication::activate.
static void my_application_activate(GApplication *application)
@@ -21,6 +22,7 @@ static void my_application_activate(GApplication *application)
MyApplication *self = MY_APPLICATION(application);
GtkWindow *window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
gtk_window_set_icon_from_file(window, ICON_PATH, NULL);
// Use a header bar when running in GNOME as this is the common style used
// by applications and is the setup most users will be using (e.g. Ubuntu