From e82f8ece3a7a58878f272d698f732d018d2c6c33 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 2 May 2005 03:02:17 +0000 Subject: [PATCH] Propagate the event to unanchored children in the text window. (#302494, 2005-05-01 Matthias Clasen * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate the event to unanchored children in the text window. (#302494, Stephen Kennedy) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktextview.c | 6 ++++-- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9cce9c1810..d4e8e5f335 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-01 Matthias Clasen + + * 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 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9cce9c1810..d4e8e5f335 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-05-01 Matthias Clasen + + * 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 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9cce9c1810..d4e8e5f335 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2005-05-01 Matthias Clasen + + * 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 * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index fe73071a21..bbdf558a2c 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -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);