[gtk+] viewport: Remove wrong save/restore
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] viewport: Remove wrong save/restore
- Date: Mon, 13 Oct 2014 02:41:15 +0000 (UTC)
commit b09fbadddf644c238c51eadf47a3c2e96124b552
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 13 04:00:44 2014 +0200
viewport: Remove wrong save/restore
gtk/gtkviewport.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index f17eea9..ef1933f 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]