viewport: Remove wrong save/restore
This commit is contained in:
parent
291e4e107d
commit
b09fbadddf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user