Don't call gdk_window_invalidate_rect() on unrealized widgets. (#335717,

2006-03-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
	gdk_window_invalidate_rect() on unrealized widgets.  (#335717,
	Nicolas Setton)
This commit is contained in:
Matthias Clasen 2006-03-24 15:06:11 +00:00 committed by Matthias Clasen
parent adebf25717
commit 7381f806dc
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-03-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
gdk_window_invalidate_rect() on unrealized widgets. (#335717,
Nicolas Setton)
Fri Mar 24 14:53:20 2006 Tim Janik <timj@imendio.com>
* gtk/gtktreemodel.h:

View File

@ -1,3 +1,9 @@
2006-03-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
gdk_window_invalidate_rect() on unrealized widgets. (#335717,
Nicolas Setton)
Fri Mar 24 14:53:20 2006 Tim Janik <timj@imendio.com>
* gtk/gtktreemodel.h:

View File

@ -6634,7 +6634,8 @@ gtk_text_view_value_changed (GtkAdjustment *adj,
*/
if (text_view->width_changed)
{
gdk_window_invalidate_rect (text_view->text_window->bin_window, NULL, FALSE);
if (GTK_WIDGET_REALIZED (text_view))
gdk_window_invalidate_rect (text_view->text_window->bin_window, NULL, FALSE);
text_view->width_changed = FALSE;
}