[gimp/soc-2010-cage-2] app: draw GimpSpinScale's label with style->text, not style->fg



commit fe41e326ffc4396d17356c095cd211103490785b
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]