diff options
author | Benjamin Otte <otte@redhat.com> | 2012-04-05 15:48:51 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-04-05 15:48:51 +0200 |
commit | 917ca6a802af574232f413fdf904e1633d706b52 (patch) | |
tree | f4b5a54edd4beeba37126b870f2addbfd8f33d86 /gtk/gtktextview.c | |
parent | d55961adf9a40522893da93e1ca857689f1e67a8 (diff) | |
download | gtk+-917ca6a802af574232f413fdf904e1633d706b52.tar.gz |
gtk: Don't call gdk_window_process_updates() when scrolling
This can cause lagging when scrolling as it causes us to repaint
on every scroll event. This wasn't historically a great problem,
but with smooth scrolling we get a lot more events, so this
now creates visible lagging on slower machines.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 33f2b5ccff..601f939f97 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -7700,26 +7700,6 @@ gtk_text_view_value_changed (GtkAdjustment *adjustment, */ gtk_text_view_validate_onscreen (text_view); - /* process exposes */ - if (gtk_widget_get_realized (GTK_WIDGET (text_view))) - { - DV (g_print ("Processing updates (%s)\n", G_STRLOC)); - - if (priv->left_window) - gdk_window_process_updates (priv->left_window->bin_window, TRUE); - - if (priv->right_window) - gdk_window_process_updates (priv->right_window->bin_window, TRUE); - - if (priv->top_window) - gdk_window_process_updates (priv->top_window->bin_window, TRUE); - - if (priv->bottom_window) - gdk_window_process_updates (priv->bottom_window->bin_window, TRUE); - - gdk_window_process_updates (priv->text_window->bin_window, TRUE); - } - /* If this got installed, get rid of it, it's just a waste of time. */ if (priv->first_validate_idle != 0) { |