From 7cd4cc7c53cdca6b078b72e2982ca2effb3fac00 Mon Sep 17 00:00:00 2001 From: waker Date: Tue, 2 Nov 2010 19:48:32 +0100 Subject: icon in portable build --- plugins/gtkui/gtkui.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/gtkui') diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 1c2b9b9f..246dea63 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -919,7 +919,13 @@ gtkui_thread (void *ctx) { mainwin = create_mainwin (); gtkpl_init (); +#if PORTABLE + char iconpath[1024]; + snprintf (iconpath, sizeof (iconpath), "%s/deadbeef.png", deadbeef->get_prefix ()); + gtk_window_set_icon_from_file (GTK_WINDOW (mainwin), iconpath, NULL); +#else gtk_window_set_icon_name (GTK_WINDOW (mainwin), "deadbeef"); +#endif { int x = deadbeef->conf_get_int ("mainwin.geometry.x", 40); -- cgit v1.2.3