gimp r27608 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27608 - in trunk: . app/display
- Date: Mon, 10 Nov 2008 22:18:33 +0000 (UTC)
Author: martinn
Date: Mon Nov 10 22:18:33 2008
New Revision: 27608
URL: http://svn.gnome.org/viewvc/gimp?rev=27608&view=rev
Log:
* app/display/gimpcursorview.c ()
(gimp_cursor_view_update_cursor): Show selection info from the
image under the cursor.
(gimp_cursor_view_clear_cursor): Start showing selection info from
the active image again.
Modified:
trunk/ChangeLog
trunk/app/display/gimpcursorview.c
trunk/app/display/gimpcursorview.h
Modified: trunk/app/display/gimpcursorview.c
==============================================================================
--- trunk/app/display/gimpcursorview.c (original)
+++ trunk/app/display/gimpcursorview.c Mon Nov 10 22:18:33 2008
@@ -719,10 +719,11 @@
void
gimp_cursor_view_update_cursor (GimpCursorView *view,
GimpImage *image,
- GimpUnit unit,
+ GimpUnit shell_unit,
gdouble x,
gdouble y)
{
+ GimpUnit unit = shell_unit;
gboolean in_image;
gchar buf[32];
GimpImageType sample_type;
@@ -775,6 +776,9 @@
gimp_color_frame_set_invalid (GIMP_COLOR_FRAME (view->color_frame_1));
gimp_color_frame_set_invalid (GIMP_COLOR_FRAME (view->color_frame_2));
}
+
+ /* Show the selection info from the image under the cursor if any */
+ gimp_cursor_view_update_selection_info (view, image, shell_unit);
}
void
@@ -789,4 +793,7 @@
gimp_color_frame_set_invalid (GIMP_COLOR_FRAME (view->color_frame_1));
gimp_color_frame_set_invalid (GIMP_COLOR_FRAME (view->color_frame_2));
+
+ /* Start showing selection info from the active image again */
+ gimp_cursor_view_update_selection_info (view, view->image, view->unit);
}
Modified: trunk/app/display/gimpcursorview.h
==============================================================================
--- trunk/app/display/gimpcursorview.h (original)
+++ trunk/app/display/gimpcursorview.h Mon Nov 10 22:18:33 2008
@@ -44,7 +44,7 @@
void gimp_cursor_view_update_cursor (GimpCursorView *view,
GimpImage *image,
- GimpUnit unit,
+ GimpUnit shell_unit,
gdouble x,
gdouble y);
void gimp_cursor_view_clear_cursor (GimpCursorView *view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]