summaryrefslogtreecommitdiffstats
path: root/onlineupdate/source/update/updater/progressui_gtk.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'onlineupdate/source/update/updater/progressui_gtk.cxx')
-rw-r--r--onlineupdate/source/update/updater/progressui_gtk.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/onlineupdate/source/update/updater/progressui_gtk.cxx b/onlineupdate/source/update/updater/progressui_gtk.cxx
index 595a29ad68cf..64d8b18d70ba 100644
--- a/onlineupdate/source/update/updater/progressui_gtk.cxx
+++ b/onlineupdate/source/update/updater/progressui_gtk.cxx
@@ -12,6 +12,7 @@
#include "readstrings.h"
#include "errors.h"
#include <string.h>
+#include "progressui_gtk_icon.h"
#define TIMER_INTERVAL 100
@@ -87,8 +88,6 @@ ShowProgressUI()
return -1;
static GdkPixbuf *pixbuf;
- char icon_path[PATH_MAX];
- snprintf(icon_path, sizeof(icon_path), "%s.png", sProgramPath);
g_signal_connect(G_OBJECT(sWin), "delete_event",
G_CALLBACK(OnDeleteEvent), nullptr);
@@ -99,7 +98,7 @@ ShowProgressUI()
gtk_window_set_resizable(GTK_WINDOW(sWin), FALSE);
gtk_window_set_decorated(GTK_WINDOW(sWin), TRUE);
gtk_window_set_deletable(GTK_WINDOW(sWin),FALSE);
- pixbuf = gdk_pixbuf_new_from_file (icon_path, nullptr);
+ pixbuf = gdk_pixbuf_new_from_xpm_data (icon_data);
gtk_window_set_icon(GTK_WINDOW(sWin), pixbuf);
g_object_unref(pixbuf);