1 From f4c172d9c61700aa1f26ccaa154aa0d66093bb8f Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
3 Date: Sun, 2 May 2021 13:50:30 +0200
4 Subject: [PATCH] Use themed icon
6 Also put the icon under the hicolor icon hierarchy.
8 data/Makefile.am | 2 +-
10 2 files changed, 3 insertions(+), 3 deletions(-)
12 diff --git a/data/Makefile.am b/data/Makefile.am
13 index c7679de..f612733 100644
14 --- a/data/Makefile.am
15 +++ b/data/Makefile.am
16 @@ -4,7 +4,7 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
17 desktopdir=$(datadir)/applications
20 -icondir=$(datadir)/pixmaps
21 +icondir=$(datadir)/icons/hicolor/128x128/apps
25 diff --git a/src/lxmusic.c b/src/lxmusic.c
26 index 60efc61..5e55aa4 100644
29 @@ -265,7 +265,7 @@ void on_about(GtkWidget* mi, gpointer data)
31 about = gtk_about_dialog_new();
32 gtk_about_dialog_set_program_name( (GtkAboutDialog*)about, "LXMusic" );
33 - gtk_about_dialog_set_logo((GtkAboutDialog*)about, gdk_pixbuf_new_from_file(PACKAGE_DATA_DIR"/pixmaps/lxmusic.png", NULL));
34 + gtk_about_dialog_set_logo_icon_name((GtkAboutDialog*)about, "lxmusic");
35 gtk_about_dialog_set_version( (GtkAboutDialog*)about, VERSION );
36 gtk_about_dialog_set_authors( (GtkAboutDialog*)about, authors );
37 gtk_about_dialog_set_artists( (GtkAboutDialog*)about, artists );
38 @@ -2395,7 +2395,7 @@ static void setup_ui()
39 gtk_builder_connect_signals(builder, NULL);
42 - gtk_window_set_icon_from_file(GTK_WINDOW(main_win), PACKAGE_DATA_DIR"/pixmaps/lxmusic.png", NULL );
43 + gtk_window_set_icon_name(GTK_WINDOW(main_win), "lxmusic");
45 gtk_window_set_default_size(GTK_WINDOW(main_win), win_width, win_height);
46 /* this can trigger signal handler and show or hide the playlist. */