aboutsummaryrefslogtreecommitdiff
path: root/src/core/eggtrayicon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/eggtrayicon.c')
-rw-r--r--src/core/eggtrayicon.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/eggtrayicon.c b/src/core/eggtrayicon.c
index 4807f9c8..ef92f44f 100644
--- a/src/core/eggtrayicon.c
+++ b/src/core/eggtrayicon.c
@@ -634,13 +634,21 @@ void initTrayIcon() {
634 GtkWidget *eventbox, *trayContextMenu, *tray_quit; 634 GtkWidget *eventbox, *trayContextMenu, *tray_quit;
635 GdkPixbuf *pixbuf; 635 GdkPixbuf *pixbuf;
636 GladeXML *trayContextMenuXML; 636 GladeXML *trayContextMenuXML;
637 char * instDir;
638 char * iconPath;
637 639
638 trayContextMenuXML = glade_xml_new (getGladeFileName(), "trayContextMenu", PACKAGE_NAME); 640 trayContextMenuXML = glade_xml_new (getGladeFileName(), "trayContextMenu", PACKAGE_NAME);
639 trayContextMenu = glade_xml_get_widget (trayContextMenuXML, "trayContextMenu"); 641 trayContextMenu = glade_xml_get_widget (trayContextMenuXML, "trayContextMenu");
640 tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit"); 642 tray_quit = glade_xml_get_widget (trayContextMenuXML, "tray_quit");
641 643
642 tray_icon = egg_tray_icon_new (_("GNU's p2p network")); 644 tray_icon = egg_tray_icon_new (_("GNU's p2p network"));
643 pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR"/gnunet-gtk-tray.png", NULL); 645 instDir = os_get_installation_path(IPK_DATADIR);
646 iconPath = MALLOC(strlen(instDir) + 40);
647 strcpy(iconPath, iconDir);
648 strcat(iconPath, "/gnunet-gtk-tray.png");
649 FREE(instDir);
650 pixbuf = gdk_pixbuf_new_from_file (iconPath, NULL);
651 FREE(iconPath);
644 tray_icon_image = gtk_image_new_from_pixbuf (pixbuf); 652 tray_icon_image = gtk_image_new_from_pixbuf (pixbuf);
645 eventbox = gtk_event_box_new (); 653 eventbox = gtk_event_box_new ();
646 gtk_container_add (GTK_CONTAINER (eventbox), tray_icon_image); 654 gtk_container_add (GTK_CONTAINER (eventbox), tray_icon_image);