forked from AuroraMiddleware/gtk
Don't redraw when the area is completely above the visible area.
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktextview.c (changed_handler): Don't redraw when the area is completely above the visible area.
This commit is contained in:
parent
c0f78ae00e
commit
d44ba97ff0
@ -1,3 +1,8 @@
|
||||
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Don't redraw
|
||||
when the area is completely above the visible area.
|
||||
|
||||
Fri May 17 17:27:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Don't redraw
|
||||
when the area is completely above the visible area.
|
||||
|
||||
Fri May 17 17:27:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Don't redraw
|
||||
when the area is completely above the visible area.
|
||||
|
||||
Fri May 17 17:27:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Don't redraw
|
||||
when the area is completely above the visible area.
|
||||
|
||||
Fri May 17 17:27:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Don't redraw
|
||||
when the area is completely above the visible area.
|
||||
|
||||
Fri May 17 17:27:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu May 23 15:44:30 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (changed_handler): Don't redraw
|
||||
when the area is completely above the visible area.
|
||||
|
||||
Fri May 17 17:27:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
|
||||
|
@ -3165,8 +3165,10 @@ changed_handler (GtkTextLayout *layout,
|
||||
|
||||
if (old_height == new_height)
|
||||
redraw_rect.height = old_height;
|
||||
else
|
||||
else if (start_y + old_height > visible_rect.y)
|
||||
redraw_rect.height = MAX (0, visible_rect.y + visible_rect.height - start_y);
|
||||
else
|
||||
redraw_rect.height = 0;
|
||||
|
||||
if (gdk_rectangle_intersect (&redraw_rect, &visible_rect, &redraw_rect))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user