[gtk+/wip/unfocused-fixes] toolbar: Stop setting state flags on the style context for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes] toolbar: Stop setting state flags on the style context for drawing
- Date: Thu, 22 Dec 2011 00:14:06 +0000 (UTC)
commit 49bf1f4e4ce2c4945458783eae9c8287296a81a2
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Dec 22 00:12:37 2011 +0000
toolbar: Stop setting state flags on the style context for drawing
gtk/gtktoolbar.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 981c1f0..cbe8bd6 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]