[gimp] libgimpwidgets: fix GimpColorScale arrows to be as small as before
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: fix GimpColorScale arrows to be as small as before
- Date: Sat, 11 Sep 2010 20:06:25 +0000 (UTC)
commit 251177f18df9c8619b7595b36a2ccd42a7e3b607
Author: Michael Natterer <mitch gimp org>
Date: Sat Sep 11 22:06:00 2010 +0200
libgimpwidgets: fix GimpColorScale arrows to be as small as before
libgimpwidgets/gimpcolorscale.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/libgimpwidgets/gimpcolorscale.c b/libgimpwidgets/gimpcolorscale.c
index 5ea9fa3..e5ef0c9 100644
--- a/libgimpwidgets/gimpcolorscale.c
+++ b/libgimpwidgets/gimpcolorscale.c
@@ -391,13 +391,17 @@ gimp_color_scale_expose (GtkWidget *widget,
case GTK_ORIENTATION_HORIZONTAL:
cairo_move_to (cr, area.x, area.y);
cairo_line_to (cr, area.x + area.width, area.y);
- cairo_line_to (cr, area.x + area.width / 2 + 0.5, area.y + area.height / 2 - 1);
+ cairo_line_to (cr,
+ area.x + area.width / 2 + 0.5,
+ area.y + area.width / 2);
break;
case GTK_ORIENTATION_VERTICAL:
cairo_move_to (cr, area.x, area.y);
cairo_line_to (cr, area.x, area.y + area.height);
- cairo_line_to (cr, area.x + area.width / 2 - 1, area.y + area.height / 2 + 0.5);
+ cairo_line_to (cr,
+ area.x + area.height / 2,
+ area.y + area.height / 2 + 0.5);
break;
}
@@ -414,13 +418,17 @@ gimp_color_scale_expose (GtkWidget *widget,
case GTK_ORIENTATION_HORIZONTAL:
cairo_move_to (cr, area.x, area.y + area.height);
cairo_line_to (cr, area.x + area.width, area.y + area.height);
- cairo_line_to (cr, area.x + area.width / 2 + 0.5, area.y + area.height / 2 + 1);
+ cairo_line_to (cr,
+ area.x + area.width / 2 + 0.5,
+ area.y + area.height - area.width / 2);
break;
case GTK_ORIENTATION_VERTICAL:
cairo_move_to (cr, area.x + area.width, area.y);
cairo_line_to (cr, area.x + area.width, area.y + area.height);
- cairo_line_to (cr, area.x + area.width / 2 + 1, area.y + area.height / 2 + 1);
+ cairo_line_to (cr,
+ area.x + area.width - area.height / 2,
+ area.y + area.height / 2 + 0.5);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]