changeset 2809:c479d54abc0a

[gaim-migrate @ 2822] gtk2 (1.3.11) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 28 Nov 2001 20:57:31 +0000
parents e79f30457998
children dfcd5010dd13
files ChangeLog src/gtkimhtml.c
diffstat 2 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Nov 28 05:30:13 2001 +0000
+++ b/ChangeLog	Wed Nov 28 20:57:31 2001 +0000
@@ -1,7 +1,7 @@
 Gaim: The Pimpin' Penguin IM Clone thats good for the soul! 
 
 version 0.49:
-	* Can compile against GTK+ 2.0 (version 1.3.10)
+	* Can compile against GTK+ 2.0 (version 1.3.10/1.3.11)
 	* Confirm before removing buddies
 	* Updated Russian translation (thanks Grigory Bakunov)
 	* Updated Korean translation (thanks Ho-seok Lee, also for
--- a/src/gtkimhtml.c	Wed Nov 28 05:30:13 2001 +0000
+++ b/src/gtkimhtml.c	Wed Nov 28 20:57:31 2001 +0000
@@ -841,9 +841,10 @@
 	imhtml->llheight = 0;
 	imhtml->llascent = 0;
 
-	if (GTK_LAYOUT (imhtml)->yoffset < TOP_BORDER)
+	if (GTK_LAYOUT (imhtml)->vadjustment->value < TOP_BORDER)
 		gdk_window_clear_area (GTK_LAYOUT (imhtml)->bin_window, 0, 0,
-				       imhtml->xsize, TOP_BORDER - GTK_LAYOUT (imhtml)->yoffset);
+				       imhtml->xsize,
+				       TOP_BORDER - GTK_LAYOUT (imhtml)->vadjustment->value);
 
 	b = imhtml->bits;
 	while (b) {
@@ -1721,18 +1722,15 @@
 {
 	GtkLayout *layout = GTK_LAYOUT (imhtml);
 
-	layout->xoffset = (gint) layout->hadjustment->value;
-	layout->yoffset = (gint) layout->vadjustment->value;
-
 	if (!GTK_WIDGET_MAPPED (imhtml) || !GTK_WIDGET_REALIZED (imhtml))
 		return;
 
 	if (layout->freeze_count)
 		return;
 
-	if (layout->yoffset < TOP_BORDER)
+	if (layout->vadjustment->value < TOP_BORDER)
 		gdk_window_clear_area (layout->bin_window, 0, 0,
-				       imhtml->xsize, TOP_BORDER - layout->yoffset);
+				       imhtml->xsize, TOP_BORDER - layout->vadjustment->value);
 
 	gtk_imhtml_draw_exposed (imhtml);
 }