[gthumb] rotate image: use a crosshair cursor when drawing the alignment



commit 3f4ebc2daf06bd1f64a96af563966ec9ebb34135
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed May 18 14:53:13 2011 +0200

    rotate image: use a crosshair cursor when drawing the alignment

 extensions/file_tools/gth-image-line-tool.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/extensions/file_tools/gth-image-line-tool.c b/extensions/file_tools/gth-image-line-tool.c
index 66442a9..616a74a 100644
--- a/extensions/file_tools/gth-image-line-tool.c
+++ b/extensions/file_tools/gth-image-line-tool.c
@@ -69,6 +69,7 @@ gth_image_line_tool_set_viewer (GthImageViewerTool *base,
 			        GthImageViewer     *viewer)
 {
 	GthImageLineTool *self = GTH_IMAGE_LINE_TOOL (base);
+	GdkCursor        *cursor;
 
 	self->priv->viewer = viewer;
 	self->priv->original_fit_mode = gth_image_viewer_get_fit_mode (GTH_IMAGE_VIEWER (viewer));
@@ -76,6 +77,11 @@ gth_image_line_tool_set_viewer (GthImageViewerTool *base,
 	gth_image_viewer_set_fit_mode (GTH_IMAGE_VIEWER (viewer), GTH_FIT_SIZE_IF_LARGER);
 	gth_image_viewer_set_zoom_enabled (GTH_IMAGE_VIEWER (viewer), FALSE);
 	self->priv->first_point_set = FALSE;
+
+	cursor = gdk_cursor_new (GDK_CROSSHAIR);
+	gth_image_viewer_set_cursor (self->priv->viewer, cursor);
+
+	gdk_cursor_unref (cursor);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]