[gtk+] gtk: render GtkEventBox' background in the right state
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk: render GtkEventBox' background in the right state
- Date: Fri, 14 Jan 2011 15:56:58 +0000 (UTC)
commit 6f4adebcef6d47cc00fac17839724959921f7289
Author: Michael Natterer <mitch gimp org>
Date: Fri Jan 14 16:55:46 2011 +0100
gtk: render GtkEventBox' background in the right state
gtk/gtkeventbox.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c
index b8492c1..d2d8c6d 100644
--- a/gtk/gtkeventbox.c
+++ b/gtk/gtkeventbox.c
@@ -595,9 +595,13 @@ gtk_event_box_draw (GtkWidget *widget,
GtkStyleContext *context;
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]