summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-08-26 21:16:27 +0200
committerAlexander Larsson <alexl@redhat.com>2013-08-26 21:17:45 +0200
commitde1f551271cf4c747efeb5f884df1b424f8c5553 (patch)
tree51bb2ff99c67e8bd4e405875974a3057af493c0d /gtk/gtktextview.c
parent2d0bdee075edbbdcec9bc945db9c681ff927b002 (diff)
downloadgtk+-de1f551271cf4c747efeb5f884df1b424f8c5553.tar.gz
GtkTextView: Use *some* extra size for horizontal scrolling
Horizontal scrolling is unusual, but specifying some extra offscreen space for it in free in the normal case where the viewport is the same width as the canvas anyway, so lets do it.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 8a96a56427..092e322d25 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -3701,7 +3701,7 @@ gtk_text_view_size_allocate (GtkWidget *widget,
DV(g_print(G_STRLOC"\n"));
- _gtk_pixel_cache_set_extra_size (priv->pixel_cache, 0,
+ _gtk_pixel_cache_set_extra_size (priv->pixel_cache, 64,
allocation->height / 2);
gtk_widget_get_allocation (widget, &widget_allocation);