offset the current invalid region, fixes redraw bug while scrolling the

2001-01-12  Havoc Pennington  <hp@redhat.com>

	* gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
	current invalid region, fixes redraw bug while scrolling the
	text widget

	* gtk/gtktextview.c, gtk/gtktextview.h:
	Rearrange the scrolling/validation/etc. code in a major way,
	so it seems to make sense to me. Probably isn't genuinely that
	much better, but...

	* gtk/gtktexttag.c (set_fg_color): fix name of property used for
	notifies

	* gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
This commit is contained in:
Havoc Pennington
2001-01-12 23:23:40 +00:00
committed by Havoc Pennington
parent 8e1a69c28b
commit f4b31ff5e6
13 changed files with 686 additions and 255 deletions

View File

@ -142,7 +142,11 @@ gdk_window_scroll (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
/* Move the current invalid region */
if (obj->update_area)
gdk_region_offset (obj->update_area, dx, dy);
/* We can guffaw scroll if we are a child window, and the parent
* does not extend beyond our edges.
*/