forked from AuroraMiddleware/gtk
Fix bug where redraw wasn't being done properly when height of dirty
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com> * gtk/gtktextview.c (changed_handler): Fix bug where redraw wasn't being done properly when height of dirty region changed. * demos/Makefile.am: Remove various references to -lgmodule * Makefile.am (test_gdk_pixbuf_LDADD): Remove -lgmodule
This commit is contained in:
parent
e6be8f3f6a
commit
6a2c2edf05
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -1,3 +1,12 @@
|
||||
Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Fix bug where
|
||||
redraw wasn't being done properly when height of
|
||||
dirty region changed.
|
||||
|
||||
* demos/Makefile.am: Remove various references to
|
||||
-lgmodule
|
||||
|
||||
Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
|
||||
|
@ -43,11 +43,11 @@ testpixbuf_scale_DEPENDENCIES = $(DEPS)
|
||||
testanimation_DEPENDENCIES = $(DEPS)
|
||||
pixbuf_demo_DEPENDENCIES = $(DEPS)
|
||||
|
||||
testpixbuf_LDADD = $(LDADDS) -lgmodule
|
||||
testpixbuf_LDADD = $(LDADDS)
|
||||
testpixbuf_drawable_LDADD = $(LDADDS)
|
||||
testpixbuf_scale_LDADD = $(LDADDS)
|
||||
testanimation_LDADD = $(LDADDS) -lgmodule
|
||||
pixbuf_demo_LDADD = $(LDADDS) -lgmodule
|
||||
testanimation_LDADD = $(LDADDS)
|
||||
pixbuf_demo_LDADD = $(LDADDS)
|
||||
|
||||
testpixbuf_SOURCES = testpixbuf.c pixbuf-init.c
|
||||
testpixbuf_drawable_SOURCES = testpixbuf-drawable.c pixbuf-init.c
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jul 22 10:57:22 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* Makefile.am (test_gdk_pixbuf_LDADD): Remove -lgmodule
|
||||
|
||||
Tue Jul 11 11:26:42 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk-pixbuf.c: Add <string.h> include.
|
||||
|
@ -136,7 +136,7 @@ AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(loaderdir)\""
|
||||
|
||||
LDADDS = libgdk_pixbuf-1.3.la $(GLIB_LIBS) $(STATIC_LIB_DEPS)
|
||||
|
||||
test_gdk_pixbuf_LDADD = $(LDADDS) -lgmodule
|
||||
test_gdk_pixbuf_LDADD = $(LDADDS)
|
||||
|
||||
GDK_PIXBUF_LIBS = $(GLIB_LIBS)
|
||||
|
||||
|
@ -1209,11 +1209,15 @@ changed_handler (GtkTextLayout *layout,
|
||||
if (GTK_WIDGET_REALIZED (text_view))
|
||||
{
|
||||
gtk_text_view_get_visible_rect (text_view, &visible_rect);
|
||||
|
||||
|
||||
redraw_rect.x = visible_rect.x;
|
||||
redraw_rect.width = visible_rect.width;
|
||||
redraw_rect.y = start_y;
|
||||
redraw_rect.height = MAX (old_height, new_height);
|
||||
|
||||
if (old_height == new_height)
|
||||
redraw_rect.height = old_height;
|
||||
else
|
||||
redraw_rect.height = MAX (0, visible_rect.y + visible_rect.height - start_y);
|
||||
|
||||
if (gdk_rectangle_intersect (&redraw_rect, &visible_rect, &redraw_rect))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user