From 4011326388ee77f3be72ff268ff237f48ab7c823 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 22 Dec 2011 00:12:37 +0000 Subject: [PATCH] toolbar: Stop setting state flags on the style context for drawing --- gtk/gtktoolbar.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 981c1f0e77..cbe8bd6b5a 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -858,16 +858,11 @@ gtk_toolbar_draw (GtkWidget *widget, GtkToolbar *toolbar = GTK_TOOLBAR (widget); GtkToolbarPrivate *priv = toolbar->priv; GtkStyleContext *context; - GtkStateFlags state; GList *list; guint border_width; border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); context = gtk_widget_get_style_context (widget); - state = gtk_widget_get_state_flags (widget); - - gtk_style_context_save (context); - gtk_style_context_set_state (context, state); gtk_render_background (context, cr, border_width, border_width, gtk_widget_get_allocated_width (widget) - 2 * border_width, @@ -887,8 +882,6 @@ gtk_toolbar_draw (GtkWidget *widget, priv->arrow_button, cr); - gtk_style_context_restore (context); - return FALSE; }