summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-09 13:51:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-09 13:51:58 -0400
commitb22b2298be235722bc68190ba3234a813540cb84 (patch)
tree1e1aefff4325c9967308d7b39877b55b0c6626a6 /gtk/gtkviewport.c
parentee8a3a4192d64dfb8751d75296bcf0f9a25fef3c (diff)
downloadgtk+-b22b2298be235722bc68190ba3234a813540cb84.tar.gz
GtkViewport: Don't do silly things in a setter
Just queue a resize instead of fiddling with the size allocation.
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index edba7aa1ed..f0ac9b0233 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -617,13 +617,7 @@ gtk_viewport_set_shadow_type (GtkViewport *viewport,
{
priv->shadow_type = type;
- if (gtk_widget_is_drawable (widget))
- {
- gtk_widget_get_allocation (widget, &allocation);
- gtk_widget_size_allocate (widget, &allocation);
- gtk_widget_set_allocation (widget, &allocation);
- gtk_widget_queue_draw (widget);
- }
+ gtk_widget_queue_resize (widget);
g_object_notify (G_OBJECT (viewport), "shadow-type");
}