gimp r25847 - in trunk: . app/tools



Author: martinn
Date: Thu May 29 04:27:19 2008
New Revision: 25847
URL: http://svn.gnome.org/viewvc/gimp?rev=25847&view=rev

Log:
2008-05-29  Martin Nordholts  <martinn svn gnome org>

	* app/tools/gimprectangletool.c (gimp_rectangle_tool_motion): Also
	show the plain aspect ratio in the status bar along with the
	rectangle size information.


Modified:
   trunk/ChangeLog
   trunk/app/tools/gimprectangletool.c

Modified: trunk/app/tools/gimprectangletool.c
==============================================================================
--- trunk/app/tools/gimprectangletool.c	(original)
+++ trunk/app/tools/gimprectangletool.c	Thu May 29 04:27:19 2008
@@ -1074,8 +1074,17 @@
       h = pub_y2 - pub_y1;
 
       if (w > 0.0 && h > 0.0)
-        gimp_tool_push_status_coords (tool, display,
-                                      _("Rectangle: "), w, " Ã ", h, NULL);
+        {
+          gchar *aspect_text;
+
+          aspect_text = g_strdup_printf ("  %.2f",
+                                         w / (gdouble) h);
+
+          gimp_tool_push_status_coords (tool, display,
+                                        _("Rectangle: "), w, " Ã ", h, aspect_text);
+
+          g_free (aspect_text);
+        }
     }
 
   if (private->function == GIMP_RECTANGLE_TOOL_CREATING)



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