summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-09 20:19:17 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-09 20:20:55 +0200
commit0afdd84a2a35bfd742f82b0b4372e1726169998a (patch)
treeeea635cea0170c10bf08ac3c8e35a5c4f36882b5 /gtk/gtktextview.c
parent78a9b5d1edfb6da871cb73cf493f871de3fb6769 (diff)
downloadgtk+-0afdd84a2a35bfd742f82b0b4372e1726169998a.tar.gz
css: Clipping changes don't need a queue_allocate() anymore
Now that queue_draw() isn't restricted to clip anymore, we don't need to care about clip in the CSS engine either. We do keep GTK_CSS_AFFECTS_CLIP around though because GtkWindow does care for the window's size.
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 101214dce0..b0d53652be 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8897,7 +8897,7 @@ node_style_changed_cb (GtkCssNode *node,
GtkCssStyleChange *change,
GtkWidget *widget)
{
- if (gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_SIZE | GTK_CSS_AFFECTS_CLIP))
+ if (gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_SIZE))
gtk_widget_queue_resize (widget);
else
gtk_widget_queue_draw (widget);