Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 22287:36036b9489fe
Bring back the "Close IMs immediately when the tab is closed" pref. As far
as I'm concerned, this can go when we have better logic for when logs are
cycled, it's been discussed on devel@c.p.i a few times but nothing happened.
John Bailey also dislikes the lack of this preference.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 12 Feb 2008 03:16:21 +0000 |
parents | c0ad0943cd6e |
children | 63f102c210ad 02eda4bd2b22 056fb36a5770 |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Mon Feb 11 00:50:42 2008 +0000 +++ b/pidgin/gtkconv.c Tue Feb 12 03:16:21 2008 +0000 @@ -238,7 +238,10 @@ switch (purple_conversation_get_type(conv)) { case PURPLE_CONV_TYPE_IM: { - hide_conv(gtkconv, TRUE); + if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/im/close_immediately")) + close_this_sucker(gtkconv); + else + hide_conv(gtkconv, TRUE); break; } case PURPLE_CONV_TYPE_CHAT: @@ -7641,6 +7644,7 @@ purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/im/show_buddy_icons", TRUE); purple_prefs_add_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new", "never"); + purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/im/close_immediately", TRUE); #ifdef _WIN32 purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/win32/minimize_new_convs", FALSE);