[sylpheed:36103] Re: [ANNOUNCE] Sylpheed 3.5beta1 released

Victor Ananjevsky ananasik at gmail.com
Thu Jun 19 19:25:30 JST 2014


hi

i'm not sure if this will be very helpful, but i'm use the following patch
for completely remove window when it hided to tray. theoretically, it
must work and for win32 too

diff -urN sylpheed-3.1.1-orig/src/gtkutils.c sylpheed-3.1.1/src/gtkutils.c
--- sylpheed-3.1.1-orig/src/gtkutils.c	2011-02-10 08:53:45.000000000 +0200
+++ sylpheed-3.1.1/src/gtkutils.c	2011-05-26 14:57:53.362993437 +0300
@@ -960,7 +960,6 @@
 	if (new_x != x || new_y != y)
 		gdk_window_move(window->window, new_x, new_y);
 
-	gtk_window_set_skip_taskbar_hint(GTK_WINDOW(window), FALSE);
 	gtk_window_present(GTK_WINDOW(window));
 #ifdef G_OS_WIN32
 	/* ensure that the window is displayed at the top */
diff -urN sylpheed-3.1.1-orig/src/mainwindow.c sylpheed-3.1.1/src/mainwindow.c
--- sylpheed-3.1.1-orig/src/mainwindow.c	2010-12-14 10:45:39.000000000 +0200
+++ sylpheed-3.1.1/src/mainwindow.c	2011-05-26 14:57:53.366993437 +0300
@@ -3161,7 +3161,9 @@
 {
 	MainWindow *mainwin = (MainWindow *)data;
 
-	if (mainwin->lock_count == 0)
+	if (prefs_common.minimize_to_tray)
+		gtk_widget_hide (mainwin->window);
+	else if (mainwin->lock_count == 0)
 		app_exit_cb(data, 0, widget);
 
 	return TRUE;
@@ -3245,12 +3247,6 @@
 			mainwin->window_hidden = FALSE;
 	}
 
-	if (mainwin->window_hidden &&
-	    prefs_common.show_trayicon && prefs_common.minimize_to_tray)
-		gtk_window_set_skip_taskbar_hint(GTK_WINDOW(widget), TRUE);
-	else if (!mainwin->window_hidden)
-		gtk_window_set_skip_taskbar_hint(GTK_WINDOW(widget), FALSE);
-
 	return FALSE;
 }
 
diff -urN sylpheed-3.1.1-orig/src/trayicon.c sylpheed-3.1.1/src/trayicon.c
--- sylpheed-3.1.1-orig/src/trayicon.c	2009-10-02 07:12:58.000000000 +0300
+++ sylpheed-3.1.1/src/trayicon.c	2011-05-26 15:06:25.361993242 +0300
@@ -49,13 +49,8 @@
 #include <gtk/gtkstatusicon.h>
 #endif
 
-#ifdef G_OS_WIN32
 #define TRAYICON_IMAGE		STOCK_PIXMAP_SYLPHEED_SMALL
 #define TRAYICON_NEW_IMAGE	STOCK_PIXMAP_SYLPHEED_NEWMAIL_SMALL
-#else
-#define TRAYICON_IMAGE		STOCK_PIXMAP_SYLPHEED
-#define TRAYICON_NEW_IMAGE	STOCK_PIXMAP_SYLPHEED_NEWMAIL
-#endif
 
 static TrayIcon trayicon;
 static GtkWidget *trayicon_menu;
@@ -244,9 +239,12 @@
 
 	if (prefs_common.toggle_window_on_trayicon_click &&
 	    gtk_window_is_active(GTK_WINDOW(mainwin->window)))
-		gtk_window_iconify(GTK_WINDOW(mainwin->window));
-	else
+		gtk_widget_hide(mainwin->window);
+	else {
+		if (!gtk_widget_get_visible(mainwin->window))
+			gtk_widget_show(mainwin->window);
 		main_window_popup(mainwin);
+	}
 }
 
 static void trayicon_popup_menu_cb(GtkStatusIcon *status_icon, guint button,


В Thu, 19 Jun 2014 19:03:46 +0900
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp> писал:

> Hello,
> 
> On Wed, 18 Jun 2014 23:20:08 +0200
> "mr.somewhere" <mr.somewhere at yahoo.fr> wrote:
> 
> > Using Sylpheed 3.5beta1 with Windows 7 SP1 32b, Sylpheed doesn't minimize to tray icon.
> > 
> > With the following options.
> > Display tray icon
> > Minimize to tray icon
> 
> This new bug has been brought by GTK+ >= 2.14, and still not fixed yet:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=537183
> 
> Probably additional workaround is required to fix it.
> 
> -- 
> Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>


-- 
Victor Ananjevsky <ananasik at gmail.com>


More information about the Sylpheed mailing list