summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-11-02 19:48:32 +0100
committerGravatar waker <wakeroid@gmail.com>2010-11-02 19:48:32 +0100
commit7cd4cc7c53cdca6b078b72e2982ca2effb3fac00 (patch)
tree77637fee110742a5a817d2e0573c22f09425e1a3 /plugins/gtkui
parent0a4c7284f055d0ef86ad849163cabb34e940d4c2 (diff)
icon in portable build
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/gtkui.c6
1 files changed, 6 insertions, 0 deletions
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);