[gimp] app: add support for cairo text cursor drawing
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add support for cairo text cursor drawing
- Date: Fri, 24 Sep 2010 18:36:52 +0000 (UTC)
commit 957acb42e844a7e32891478551744497d4c67fc8
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 24 20:35:14 2010 +0200
app: add support for cairo text cursor drawing
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 31844a0..7b27411 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -43,6 +43,7 @@
#include "display/gimpcanvasline.h"
#include "display/gimpcanvaspolygon.h"
#include "display/gimpcanvasrectangle.h"
+#include "display/gimpcanvastextcursor.h"
#include "display/gimpdisplay.h"
#include "display/gimpdisplayshell.h"
#include "display/gimpdisplayshell-transform.h"
@@ -786,6 +787,17 @@ gimp_draw_tool_draw_text_cursor (GimpDrawTool *draw_tool,
g_return_if_fail (GIMP_IS_DRAW_TOOL (draw_tool));
+ if (draw_tool->use_cairo)
+ {
+ GimpCanvasItem *item;
+
+ item = gimp_canvas_text_cursor_new (cursor, overwrite);
+
+ 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]