mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
b28a21d276
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
From f4c172d9c61700aa1f26ccaa154aa0d66093bb8f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
|
|
Date: Sun, 2 May 2021 13:50:30 +0200
|
|
Subject: [PATCH] Use themed icon
|
|
|
|
Also put the icon under the hicolor icon hierarchy.
|
|
---
|
|
data/Makefile.am | 2 +-
|
|
src/lxmusic.c | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/data/Makefile.am b/data/Makefile.am
|
|
index c7679de..f612733 100644
|
|
--- a/data/Makefile.am
|
|
+++ b/data/Makefile.am
|
|
@@ -4,7 +4,7 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
|
desktopdir=$(datadir)/applications
|
|
|
|
icon_DATA=lxmusic.png
|
|
-icondir=$(datadir)/pixmaps
|
|
+icondir=$(datadir)/icons/hicolor/128x128/apps
|
|
|
|
man_MANS = lxmusic.1
|
|
|
|
diff --git a/src/lxmusic.c b/src/lxmusic.c
|
|
index 60efc61..5e55aa4 100644
|
|
--- a/src/lxmusic.c
|
|
+++ b/src/lxmusic.c
|
|
@@ -265,7 +265,7 @@ void on_about(GtkWidget* mi, gpointer data)
|
|
|
|
about = gtk_about_dialog_new();
|
|
gtk_about_dialog_set_program_name( (GtkAboutDialog*)about, "LXMusic" );
|
|
- gtk_about_dialog_set_logo((GtkAboutDialog*)about, gdk_pixbuf_new_from_file(PACKAGE_DATA_DIR"/pixmaps/lxmusic.png", NULL));
|
|
+ gtk_about_dialog_set_logo_icon_name((GtkAboutDialog*)about, "lxmusic");
|
|
gtk_about_dialog_set_version( (GtkAboutDialog*)about, VERSION );
|
|
gtk_about_dialog_set_authors( (GtkAboutDialog*)about, authors );
|
|
gtk_about_dialog_set_artists( (GtkAboutDialog*)about, artists );
|
|
@@ -2395,7 +2395,7 @@ static void setup_ui()
|
|
gtk_builder_connect_signals(builder, NULL);
|
|
|
|
/* window icon */
|
|
- gtk_window_set_icon_from_file(GTK_WINDOW(main_win), PACKAGE_DATA_DIR"/pixmaps/lxmusic.png", NULL );
|
|
+ gtk_window_set_icon_name(GTK_WINDOW(main_win), "lxmusic");
|
|
|
|
gtk_window_set_default_size(GTK_WINDOW(main_win), win_width, win_height);
|
|
/* this can trigger signal handler and show or hide the playlist. */
|
|
--
|
|
2.31.1
|
|
|