[gtk+] eventbox: 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+] eventbox: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 19:24:13 +0000 (UTC)
commit 3e0b2f7262a28892ce97322857d3e767feb6dfff
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Dec 19 12:24:30 2011 +0000
eventbox: Stop setting state flags on the style context for drawing
gtk/gtkeventbox.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c
index d2d8c6d..90954a2 100644
--- a/gtk/gtkeventbox.c
+++ b/gtk/gtkeventbox.c
@@ -596,12 +596,9 @@ gtk_event_box_draw (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, gtk_widget_get_state_flags (widget));
gtk_render_background (context, cr, 0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
- gtk_style_context_restore (context);
}
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->draw (widget, cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]