diff -ur linuxdcpp-1.0.2.orig/linux/mainwindow.cc linuxdcpp-1.0.2/linux/mainwindow.cc --- linuxdcpp-1.0.2.orig/linux/mainwindow.cc 2008-07-03 06:54:14.000000000 +0300 +++ linuxdcpp-1.0.2/linux/mainwindow.cc 2008-07-13 15:14:38.000000000 +0300 @@ -226,14 +226,23 @@ setMainStatus_gui(_("Welcome to LinuxDC++")); - // Putting this after all the resizing and moving makes the window appear - // in the correct position instantly, looking slightly more cool - gtk_widget_show_all(GTK_WIDGET(window)); - setTabPosition_gui(WGETI("tab-position")); setToolbarStyle_gui(WGETI("toolbar-style")); + GdkScreen *screen; + GdkColormap *colormap; + /* Set the colour map */ + screen = gtk_widget_get_screen (GTK_WIDGET(window)); + colormap = gdk_screen_get_rgba_colormap (screen); + createTrayIcon_gui(); + + if (colormap) + gtk_widget_set_default_colormap (colormap); + + // Putting this after all the resizing and moving makes the window appear + // in the correct position instantly, looking slightly more cool + gtk_widget_show_all(GTK_WIDGET(window)); } MainWindow::~MainWindow()