changeset 11452:7e671f619c3c

[gaim-migrate @ 13691] I have always hated only saving when there is exactly one tab. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 06 Sep 2005 01:55:44 +0000
parents 99548d90257e
children d446fcc2c63b
files src/gtkconv.c
diffstat 1 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Sep 05 23:44:26 2005 +0000
+++ b/src/gtkconv.c	Tue Sep 06 01:55:44 2005 +0000
@@ -266,24 +266,18 @@
 	/* I find that I resize the window when it has a bunch of conversations in it, mostly so that the tab bar
 	 * will fit, but then I don't want new windows taking up the entire screen.  I check to see if there is only one
 	 * conversation in the window.  This way we'll be setting new windows to the size of the last resized new window. */
-
+	/* I think that the above justification is not the majority, and that the new tab resizing should negate it anyway.  --luke*/
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM)
 	{
-		if (w == gtkconv->imhtml && (gaim_conv_window_get_conversation_count(win) == 1))
-		{
-			gaim_prefs_set_int("/gaim/gtk/conversations/im/default_width", allocation->width);
-			gaim_prefs_set_int("/gaim/gtk/conversations/im/default_height", allocation->height);
-		}
+		gaim_prefs_set_int("/gaim/gtk/conversations/im/default_width", allocation->width);
+		gaim_prefs_set_int("/gaim/gtk/conversations/im/default_height", allocation->height);
 		if (w == gtkconv->entry)
 			gaim_prefs_set_int("/gaim/gtk/conversations/im/entry_height", allocation->height);
 	}
 	else if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_CHAT)
 	{
-		if (w == gtkconv->imhtml && (gaim_conv_window_get_conversation_count(win) == 1))
-		{
-			gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_width", allocation->width);
-			gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_height", allocation->height);
-		}
+		gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_width", allocation->width);
+		gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_height", allocation->height);
 		if (w == gtkconv->entry)
 			gaim_prefs_set_int("/gaim/gtk/conversations/chat/entry_height", allocation->height);
 	}