Commit 7381f806 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent adebf257
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> Fri Mar 24 14:53:20 2006 Tim Janik <timj@imendio.com>
* gtk/gtktreemodel.h: * gtk/gtktreemodel.h:
......
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> Fri Mar 24 14:53:20 2006 Tim Janik <timj@imendio.com>
* gtk/gtktreemodel.h: * gtk/gtktreemodel.h:
......
...@@ -6634,7 +6634,8 @@ gtk_text_view_value_changed (GtkAdjustment *adj, ...@@ -6634,7 +6634,8 @@ gtk_text_view_value_changed (GtkAdjustment *adj,
*/ */
if (text_view->width_changed) 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; text_view->width_changed = FALSE;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment