summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-07 16:37:27 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:38 +0200
commit01a1e16dcfbbbd8a2b350891268a5570d478b197 (patch)
treee99c752a69aa3b4cd520b43572cc9bdacfdb5329 /gtk/gtkviewport.c
parentf383e1f1837054f69c2b7478915aee659d16667d (diff)
downloadgtk+-01a1e16dcfbbbd8a2b350891268a5570d478b197.tar.gz
viewport: Don't paint stuff in realize handler
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 863d17fb54..8a971ae9dc 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -750,13 +750,6 @@ gtk_viewport_realize (GtkWidget *widget)
gtk_style_set_background (style, window, GTK_STATE_NORMAL);
gtk_style_set_background (style, priv->bin_window, GTK_STATE_NORMAL);
- /* Call paint here to allow a theme to set the background without flashing
- */
- gtk_paint_flat_box(style, priv->bin_window, GTK_STATE_NORMAL,
- GTK_SHADOW_NONE,
- NULL, widget, "viewportbin",
- 0, 0, -1, -1);
-
gdk_window_show (priv->bin_window);
gdk_window_show (priv->view_window);
}