[gimp] app: draw GimpSpinScale's label with style->text, not style->fg
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: draw GimpSpinScale's label with style->text, not style->fg
- Date: Fri, 19 Nov 2010 13:09:11 +0000 (UTC)
commit 6960dda6f2b19013d77b720447a8b6c4a87f556c
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 19 14:08:37 2010 +0100
app: draw GimpSpinScale's label with style->text, not style->fg
app/widgets/gimpspinscale.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index a36b15c..b88b331 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -268,6 +268,9 @@ gimp_spin_scale_expose (GtkWidget *widget,
else
cairo_move_to (cr, 2, 2);
+ gdk_cairo_set_source_color (cr,
+ &style->text[gtk_widget_get_state (widget)]);
+
layout = gtk_widget_create_pango_layout (widget, private->label);
pango_cairo_show_layout (cr, layout);
cairo_destroy (cr);
@@ -294,7 +297,7 @@ gimp_spin_scale_on_number (GtkWidget *widget,
}
return FALSE;
- }
+}
static void
gimp_spin_scale_set_value (GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]