gimp r25806 - trunk/app/widgets
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25806 - trunk/app/widgets
- Date: Mon, 26 May 2008 15:33:25 +0000 (UTC)
Author: neo
Date: Mon May 26 15:33:25 2008
New Revision: 25806
URL: http://svn.gnome.org/viewvc/gimp?rev=25806&view=rev
Log:
fixed drawing routine of the new GimpScaleButton widget
Modified:
trunk/app/widgets/gimpscalebutton.c
Modified: trunk/app/widgets/gimpscalebutton.c
==============================================================================
--- trunk/app/widgets/gimpscalebutton.c (original)
+++ trunk/app/widgets/gimpscalebutton.c Mon May 26 15:33:25 2008
@@ -65,10 +65,10 @@
gint steps;
gint i;
- adj = gtk_scale_button_get_adjustment (GTK_SCALE_BUTTON (button));
-
steps = MIN (widget->allocation.width, widget->allocation.height) / 2;
+ adj = gtk_scale_button_get_adjustment (GTK_SCALE_BUTTON (button));
+
if (steps < 1)
return TRUE;
@@ -80,10 +80,12 @@
gdk_cairo_rectangle (cr, &event->area);
cairo_clip (cr);
- cairo_set_line_width (cr, 1.0);
+ cairo_set_line_width (cr, 0.5);
- cairo_translate (cr, widget->allocation.x + 0.5, widget->allocation.y + 0.5);
- cairo_scale (cr, 1.0, -2.0);
+ cairo_translate (cr,
+ widget->allocation.x + 0.5,
+ widget->allocation.y + widget->allocation.height + 0.5);
+ cairo_scale (cr, 2.0, -2.0);
for (i = 0; i < value; i++)
{
@@ -100,7 +102,7 @@
cairo_line_to (cr, i, i);
}
- gdk_cairo_set_source_color (cr, &widget->style->light[widget->state]);
+ gdk_cairo_set_source_color (cr, &widget->style->fg[GTK_STATE_INSENSITIVE]);
cairo_stroke (cr);
cairo_destroy (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]