[gimp] app: use the highlight color for "dashed" lines, oh well...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use the highlight color for "dashed" lines, oh well...
- Date: Thu, 23 Sep 2010 17:29:36 +0000 (UTC)
commit db1a85148e4fd60341ae5d9d5595c96eb4be51d1
Author: Michael Natterer <mitch gimp org>
Date: Thu Sep 23 19:26:02 2010 +0200
app: use the highlight color for "dashed" lines, oh well...
app/tools/gimpdrawtool.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index a128e52..2e98546 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -512,6 +512,18 @@ gimp_draw_tool_draw_dashed_line (GimpDrawTool *draw_tool,
g_return_if_fail (GIMP_IS_DRAW_TOOL (draw_tool));
+ if (draw_tool->use_cairo)
+ {
+ GimpCanvasItem *item;
+
+ item = gimp_canvas_line_new (x1, y1, x2, y2);
+ gimp_canvas_item_set_highlight (item, TRUE);
+
+ draw_tool->items = g_list_append (draw_tool->items, item);
+
+ return;
+ }
+
shell = gimp_display_get_shell (draw_tool->display);
gimp_display_shell_transform_xy_f (shell,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]