comparison src/gtkconv.c @ 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
comparison
equal deleted inserted replaced
11452:7e671f619c3c 11453:d446fcc2c63b
267 * will fit, but then I don't want new windows taking up the entire screen. I check to see if there is only one 267 * will fit, but then I don't want new windows taking up the entire screen. I check to see if there is only one
268 * conversation in the window. This way we'll be setting new windows to the size of the last resized new window. */ 268 * conversation in the window. This way we'll be setting new windows to the size of the last resized new window. */
269 /* I think that the above justification is not the majority, and that the new tab resizing should negate it anyway. --luke*/ 269 /* I think that the above justification is not the majority, and that the new tab resizing should negate it anyway. --luke*/
270 if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM) 270 if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM)
271 { 271 {
272 gaim_prefs_set_int("/gaim/gtk/conversations/im/default_width", allocation->width); 272 if (w == gtkconv->imhtml) {
273 gaim_prefs_set_int("/gaim/gtk/conversations/im/default_height", allocation->height); 273 gaim_prefs_set_int("/gaim/gtk/conversations/im/default_width", allocation->width);
274 gaim_prefs_set_int("/gaim/gtk/conversations/im/default_height", allocation->height);
275 }
274 if (w == gtkconv->entry) 276 if (w == gtkconv->entry)
275 gaim_prefs_set_int("/gaim/gtk/conversations/im/entry_height", allocation->height); 277 gaim_prefs_set_int("/gaim/gtk/conversations/im/entry_height", allocation->height);
276 } 278 }
277 else if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_CHAT) 279 else if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_CHAT)
278 { 280 {
279 gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_width", allocation->width); 281 if (w == gtkconv->imhtml) {
280 gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_height", allocation->height); 282 gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_width", allocation->width);
283 gaim_prefs_set_int("/gaim/gtk/conversations/chat/default_height", allocation->height);
284 }
281 if (w == gtkconv->entry) 285 if (w == gtkconv->entry)
282 gaim_prefs_set_int("/gaim/gtk/conversations/chat/entry_height", allocation->height); 286 gaim_prefs_set_int("/gaim/gtk/conversations/chat/entry_height", allocation->height);
283 } 287 }
284 288
285 return FALSE; 289 return FALSE;