summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2013-09-06 13:58:37 -0700
committerChristian Hergert <christian@hergert.me>2013-09-06 15:57:22 -0700
commit0eb8479256a879164484bec4513e9c1a5329a4d5 (patch)
tree698fca20171a437f9dc771bc588266e696ce87f7 /gtk/gtktextview.c
parent9be26ee99a5d213e403b9a2127c336ea0d3df32b (diff)
downloadgtk+-0eb8479256a879164484bec4513e9c1a5329a4d5.tar.gz
textview: only set invalidate handler for text window.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 8a1bbdd33a..cc93b51e67 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9029,8 +9029,11 @@ text_window_realize (GtkTextWindow *win,
win->window = gdk_window_new (window,
&attributes, attributes_mask);
- gdk_window_set_invalidate_handler (win->window,
- text_window_invalidate_handler);
+ if (win->type == GTK_TEXT_WINDOW_TEXT)
+ {
+ gdk_window_set_invalidate_handler (win->window,
+ text_window_invalidate_handler);
+ }
gdk_window_show (win->window);
gtk_widget_register_window (win->widget, win->window);