Propagate the event to unanchored children in the text window. (#302494,

2005-05-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
	the event to unanchored children in the text window.
	(#302494, Stephen Kennedy)
This commit is contained in:
Matthias Clasen 2005-05-02 03:02:17 +00:00 committed by Matthias Clasen
parent 20f9c58edb
commit e82f8ece3a
4 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
the event to unanchored children in the text window.
(#302494, Stephen Kennedy)
2005-04-30 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take

View File

@ -1,3 +1,9 @@
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
the event to unanchored children in the text window.
(#302494, Stephen Kennedy)
2005-04-30 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take

View File

@ -1,3 +1,9 @@
2005-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
the event to unanchored children in the text window.
(#302494, Stephen Kennedy)
2005-04-30 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take

View File

@ -4264,7 +4264,9 @@ gtk_text_view_expose_event (GtkWidget *widget, GdkEventExpose *event)
if (event->window == widget->window)
gtk_text_view_draw_focus (widget);
/* Propagate exposes to all children not in the buffer. */
/* Propagate exposes to all unanchored children.
* Anchored children are handled in gtk_text_view_paint().
*/
tmp_list = GTK_TEXT_VIEW (widget)->children;
while (tmp_list != NULL)
{
@ -4273,7 +4275,7 @@ gtk_text_view_expose_event (GtkWidget *widget, GdkEventExpose *event)
/* propagate_expose checks that event->window matches
* child->window
*/
if (vc->type != GTK_TEXT_WINDOW_TEXT)
if (!vc->anchor)
gtk_container_propagate_expose (GTK_CONTAINER (widget),
vc->widget,
event);