changeset 2899:019d7462337b

[gaim-migrate @ 2912] this is a work-around for a bug in gtk. i knew it wasn't my fault. i hate all of you. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 20 Dec 2001 09:26:12 +0000
parents eef6c9ca18c9
children aaaca46b507b
files src/buddy_chat.c src/conversation.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Sun Dec 16 22:54:04 2001 +0000
+++ b/src/buddy_chat.c	Thu Dec 20 09:26:12 2001 +0000
@@ -1276,7 +1276,7 @@
 	if (convo_options & OPT_CONVO_CHECK_SPELLING)
 		gtkspell_attach(GTK_TEXT(chatentry));
 	gtk_box_pack_start(GTK_BOX(vbox), chatentry, TRUE, TRUE, 0);
-	gtk_widget_set_usize(chatentry, buddy_chat_size.width, buddy_chat_size.entry_height);
+	gtk_widget_set_usize(chatentry, buddy_chat_size.width, MAX(buddy_chat_size.entry_height, 25));
 	gtk_window_set_focus(GTK_WINDOW(win), chatentry);
 	gtk_widget_show(chatentry);
 
--- a/src/conversation.c	Sun Dec 16 22:54:04 2001 +0000
+++ b/src/conversation.c	Thu Dec 20 09:26:12 2001 +0000
@@ -2391,7 +2391,7 @@
 	gtk_object_set_user_data(GTK_OBJECT(entry), c);
 	gtk_text_set_editable(GTK_TEXT(entry), TRUE);
 	gtk_text_set_word_wrap(GTK_TEXT(entry), TRUE);
-	gtk_widget_set_usize(entry, conv_size.width - 20, conv_size.entry_height);
+	gtk_widget_set_usize(entry, conv_size.width - 20, MAX(conv_size.entry_height, 25));
 
 	gtk_signal_connect(GTK_OBJECT(entry), "activate", GTK_SIGNAL_FUNC(send_callback), c);
 	gtk_signal_connect(GTK_OBJECT(entry), "key_press_event", GTK_SIGNAL_FUNC(keypress_callback), c);