gimp r26490 - in trunk: . app/tools



Author: neo
Date: Mon Aug 11 09:41:12 2008
New Revision: 26490
URL: http://svn.gnome.org/viewvc/gimp?rev=26490&view=rev

Log:
2008-08-11  Sven Neumann  <sven gimp org>

	* app/tools/gimptexttool.c: minor coding style cleanups.



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

Modified: trunk/app/tools/gimptexttool.c
==============================================================================
--- trunk/app/tools/gimptexttool.c	(original)
+++ trunk/app/tools/gimptexttool.c	Mon Aug 11 09:41:12 2008
@@ -430,6 +430,7 @@
         g_object_set (text_tool->proxy,
                       "box-mode", GIMP_TEXT_BOX_DYNAMIC,
                       NULL);
+
       text_tool->handle_rectangle_change_complete = FALSE;
     }
   else
@@ -621,9 +622,9 @@
 
   /* we need to redraw the rectangle if it is visible and the shape of
      the layer has changed, because of an undo for example. */
-  if ((0 == strcmp (pspec->name, "box-width"))
-      || (0 == strcmp (pspec->name, "box-height"))
-      || (text->box_mode == GIMP_TEXT_BOX_DYNAMIC))
+  if (strcmp (pspec->name, "box-width" == 0)  ||
+      strcmp (pspec->name, "box-height" == 0) ||
+      text->box_mode == GIMP_TEXT_BOX_DYNAMIC)
     {
       GimpRectangleTool *rect_tool = GIMP_RECTANGLE_TOOL (text_tool);
 
@@ -893,8 +894,8 @@
 
   if (text_tool->text_box_fixed)
     {
-      GimpRectangleTool *rect_tool       = GIMP_RECTANGLE_TOOL (text_tool);
-      GimpItem          *item            = GIMP_ITEM (layer);
+      GimpRectangleTool *rect_tool = GIMP_RECTANGLE_TOOL (text_tool);
+      GimpItem          *item      = GIMP_ITEM (layer);
       gint               x1, y1, x2, y2;
 
       g_object_get (rect_tool,
@@ -904,8 +905,8 @@
                     "y2", &y2,
                     NULL);
       g_object_set (text_tool->proxy,
-                    "box-mode", GIMP_TEXT_BOX_FIXED,
-                    "box-width", (gdouble) (x2 - x1),
+                    "box-mode",   GIMP_TEXT_BOX_FIXED,
+                    "box-width",  (gdouble) (x2 - x1),
                     "box-height", (gdouble) (y2 - y1),
                     NULL);
       gimp_item_translate (item,



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