From 1906d3027dc3ad8b9b5533712299d48e265c852c Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 12 Mar 2018 09:14:01 -0700 Subject: Do not use hardcoded path for icon Use just the symbolic name "hardinfo", allowing for icon packs to provide alternative icons. Fixes #227 --- shell/callbacks.c | 2 +- shell/shell.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/callbacks.c b/shell/callbacks.c index 9bb5c990..e7183185 100644 --- a/shell/callbacks.c +++ b/shell/callbacks.c @@ -199,7 +199,7 @@ void cb_about() gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about), _("System information and benchmark tool")); gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), - icon_cache_get_pixbuf("logo.png")); + icon_cache_get_pixbuf("hardinfo.png")); gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about), _("HardInfo is free software; you can redistribute it and/or modify " diff --git a/shell/shell.c b/shell/shell.c index 8688f9ac..10c74d13 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -416,7 +416,7 @@ static void create_window(void) shell->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_icon(GTK_WINDOW(shell->window), - icon_cache_get_pixbuf("logo.png")); + icon_cache_get_pixbuf("hardinfo.org")); shell_set_title(shell, NULL); gtk_window_set_default_size(GTK_WINDOW(shell->window), 800, 600); g_signal_connect(G_OBJECT(shell->window), "destroy", destroy_me, NULL); -- cgit v1.2.3