summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-10-13 04:00:44 +0200
committerBenjamin Otte <otte@redhat.com>2014-10-13 04:39:57 +0200
commitb09fbadddf644c238c51eadf47a3c2e96124b552 (patch)
tree3b55b0cfe5e0d9d67a6743007a43815b1c1c95b0 /gtk/gtkviewport.c
parent291e4e107d7a1d5bc7b846ecae7284121b067a64 (diff)
downloadgtk+-b09fbadddf644c238c51eadf47a3c2e96124b552.tar.gz
viewport: Remove wrong save/restore
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index f17eea9c71..ef1933f93f 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -363,14 +363,10 @@ viewport_get_view_allocation (GtkViewport *viewport,
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
- gtk_style_context_save (context);
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME);
gtk_style_context_get_padding (context, state, &padding);
gtk_style_context_get_border (context, state, &border);
- gtk_style_context_restore (context);
-
if (priv->shadow_type != GTK_SHADOW_NONE)
{
view_allocation->x = border.left;