Mercurial > pidgin
changeset 1961:0a3edeba05b6
[gaim-migrate @ 1971]
less flashy
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 04 Jun 2001 23:08:51 +0000 |
parents | db6f447a6d91 |
children | 8798f6a255b2 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Mon Jun 04 22:26:53 2001 +0000 +++ b/src/gtkimhtml.c Mon Jun 04 23:08:51 2001 +0000 @@ -1330,10 +1330,20 @@ gtk_imhtml_adjustment_changed (GtkAdjustment *adjustment, GtkIMHtml *imhtml) { + gint width, height; + GdkWindow *window; + if (!GTK_WIDGET_MAPPED (imhtml)) return; - gdk_window_clear (GTK_LAYOUT (imhtml)->bin_window); + if (GTK_LAYOUT (imhtml)->freeze_count) + return; + + window = GTK_LAYOUT (imhtml)->bin_window; + gdk_window_get_size (window, &width, &height); + gdk_window_clear_area (window, 0, 0, width, BORDER_SIZE + 10); + gdk_window_clear_area (window, 0, height - BORDER_SIZE, width, BORDER_SIZE); + gtk_imhtml_draw_exposed (imhtml); }