[gtk+/gtk-2-24] gtk: draw the frame around the spinbutton's buttons conditionally
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] gtk: draw the frame around the spinbutton's buttons conditionally
- Date: Fri, 19 Nov 2010 13:55:17 +0000 (UTC)
commit 7f6b9ce7f512025d169e8bd0eabf2781fc5f1186
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 19 14:52:55 2010 +0100
gtk: draw the frame around the spinbutton's buttons conditionally
(depending on GtkEntry::has-frame)
gtk/gtkspinbutton.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index c51a3cc..792f554 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -755,10 +755,11 @@ gtk_spin_button_expose (GtkWidget *widget,
width = gdk_window_get_width (spin->panel);
height = gdk_window_get_height (spin->panel);
- gtk_paint_box (widget->style, spin->panel,
- state, shadow_type,
- &event->area, widget, "spinbutton",
- 0, 0, width, height);
+ if (gtk_entry_get_has_frame (GTK_ENTRY (spin)))
+ gtk_paint_box (widget->style, spin->panel,
+ state, shadow_type,
+ &event->area, widget, "spinbutton",
+ 0, 0, width, height);
}
gtk_spin_button_draw_arrow (spin, &event->area, GTK_ARROW_UP);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]