[gtk+] Do not set "entry" class in spinbutton buttons.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Do not set "entry" class in spinbutton buttons.
- Date: Fri, 24 Dec 2010 18:50:03 +0000 (UTC)
commit 760d6d1e78dd1d9b0b9e2ac0d38bb0fae27b539c
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Dec 24 19:21:39 2010 +0100
Do not set "entry" class in spinbutton buttons.
Also, fix an unpaired gtk_style_context_save() call.
gtk/gtkspinbutton.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 0f513ba..38dbde0 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -836,6 +836,7 @@ gtk_spin_button_draw (GtkWidget *widget,
gtk_style_context_save (context);
gtk_style_context_set_state (context, state);
+ gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ENTRY);
if (is_rtl)
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_RIGHT);
@@ -852,6 +853,7 @@ gtk_spin_button_draw (GtkWidget *widget,
gtk_spin_button_draw_arrow (spin, context, cr, GTK_ARROW_UP);
gtk_spin_button_draw_arrow (spin, context, cr, GTK_ARROW_DOWN);
+ gtk_style_context_restore (context);
cairo_restore (cr);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]