Mercurial > pidgin.yaz
diff src/conversation.c @ 3280:c98c1e0281ff
[gaim-migrate @ 3298]
Perl can play sounds!
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 29 May 2002 01:44:40 +0000 |
parents | 6190cf2c95a9 |
children | c5b4e55024e3 |
line wrap: on
line diff
--- a/src/conversation.c Wed May 29 01:23:38 2002 +0000 +++ b/src/conversation.c Wed May 29 01:44:40 2002 +0000 @@ -2822,7 +2822,12 @@ 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, MAX(conv_size.entry_height, 25)); + /* I hate hackish workarounds. According to Ari Pollak, a gtk bug causes Gaim to loop + * infinitely if the entry is smaller than the text height. This is a hackish workaround */ + gtk_widget_set_usize(entry, conv_size.width - 20, + MAX(conv_size.entry_height, + gdk_char_height(gtk_widget_get_default_style()->font, '0') + + gtk_widget_get_default_style()->font->ascent + 1)); 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);