# HG changeset patch # User Daniel Atallah # Date 1183929823 0 # Node ID b91a29987d71947d3ffb5e577e1eff59c0c85b18 # Parent 042b64016a5718842f8f13bb39f1348342313afa Give Windows users the option of having new conversation windows created minimized. Hopefully this will stop the incessant crying about this. Fixes #664. diff -r 042b64016a57 -r b91a29987d71 pidgin/gtkconv.c --- 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; diff -r 042b64016a57 -r b91a29987d71 pidgin/gtkprefs.c --- 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)