changeset 18460:b91a29987d71

Give Windows users the option of having new conversation windows created minimized. Hopefully this will stop the incessant crying about this. Fixes #664.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 08 Jul 2007 21:23:43 +0000
parents 042b64016a57
children d2b6ae715eae 09b964413667
files pidgin/gtkconv.c pidgin/gtkprefs.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Sun Jul 08 19:59:13 2007 +0000
+++ b/pidgin/gtkconv.c	Sun Jul 08 21:23:43 2007 +0000
@@ -8333,6 +8333,9 @@
 #ifdef _WIN32
 	g_signal_connect(G_OBJECT(win->window), "show",
 	                 G_CALLBACK(winpidgin_ensure_onscreen), win->window);
+
+	if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/win32/minimize_new_convs"))
+		gtk_window_iconify(GTK_WINDOW(win->window));
 #endif
 
 	return win;
--- a/pidgin/gtkprefs.c	Sun Jul 08 19:59:13 2007 +0000
+++ b/pidgin/gtkprefs.c	Sun Jul 08 21:23:43 2007 +0000
@@ -1014,6 +1014,8 @@
 
 #ifdef _WIN32
 	pidgin_prefs_checkbox(_("F_lash window when IMs are received"), PIDGIN_PREFS_ROOT "/win32/blink_im", vbox);
+
+	pidgin_prefs_checkbox(_("Minimi_ze new conversation windows"), PIDGIN_PREFS_ROOT "/win32/minimize_new_convs", vbox);
 #endif
 
 #if GTK_CHECK_VERSION(2,4,0)