Skip to content

Commit

Permalink
test icon linux?
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Aug 4, 2024
1 parent 54c9503 commit 21b86ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libcore
2 changes: 2 additions & 0 deletions linux/my_application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ 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)
{
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
Expand Down

0 comments on commit 21b86ef

Please sign in to comment.