Mercurial > pidgin.yaz
comparison pidgin/gtkconv.c @ 22783:6079335eb01c
Slightly change the maximum height of the entry box. This seems to fix
the issue where the window would also resize with the entry box.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 02 May 2008 01:28:43 +0000 |
parents | e1052f4b0254 |
children | 08bb9d490f38 |
comparison
equal
deleted
inserted
replaced
22782:6036f4a57535 | 22783:6079335eb01c |
---|---|
4456 GtkTextIter iter; | 4456 GtkTextIter iter; |
4457 int lines; | 4457 int lines; |
4458 GdkRectangle oneline; | 4458 GdkRectangle oneline; |
4459 int height, diff; | 4459 int height, diff; |
4460 int pad_top, pad_inside, pad_bottom; | 4460 int pad_top, pad_inside, pad_bottom; |
4461 int max_height = gtkconv->tab_cont->allocation.height / 2; | 4461 int max_height = (gtkconv->imhtml->allocation.height + gtkconv->entry->allocation.height) / 2; |
4462 | 4462 |
4463 pad_top = gtk_text_view_get_pixels_above_lines(GTK_TEXT_VIEW(gtkconv->entry)); | 4463 pad_top = gtk_text_view_get_pixels_above_lines(GTK_TEXT_VIEW(gtkconv->entry)); |
4464 pad_bottom = gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(gtkconv->entry)); | 4464 pad_bottom = gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(gtkconv->entry)); |
4465 pad_inside = gtk_text_view_get_pixels_inside_wrap(GTK_TEXT_VIEW(gtkconv->entry)); | 4465 pad_inside = gtk_text_view_get_pixels_inside_wrap(GTK_TEXT_VIEW(gtkconv->entry)); |
4466 | 4466 |