changeset 11453:d446fcc2c63b

[gaim-migrate @ 13692] nosnilmot is likely right. I should have done this more slowly. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 06 Sep 2005 02:35:26 +0000
parents 7e671f619c3c
children 201617d49573
files src/gtkconv.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Tue Sep 06 01:55:44 2005 +0000
+++ b/src/gtkconv.c	Tue Sep 06 02:35:26 2005 +0000
@@ -269,15 +269,19 @@
 	/* 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)
 	{
-		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->imhtml) {
+			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)
 	{
-		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->imhtml) {
+			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);
 	}