gimp r25764 - in trunk: . app/tools



Author: mitch
Date: Thu May 22 18:54:16 2008
New Revision: 25764
URL: http://svn.gnome.org/viewvc/gimp?rev=25764&view=rev

Log:
2008-05-22  Michael Natterer  <mitch gimp org>

	* app/tools/gimppaintoptions-gui.c: revert accidential change of
	all occurences of "hardness" to "pressure" in strings and function
	names.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimppaintoptions-gui.c

Modified: trunk/app/tools/gimppaintoptions-gui.c
==============================================================================
--- trunk/app/tools/gimppaintoptions-gui.c	(original)
+++ trunk/app/tools/gimppaintoptions-gui.c	Thu May 22 18:54:16 2008
@@ -52,7 +52,7 @@
 
 
 static gboolean    tool_has_opacity_dynamics  (GType          tool_type);
-static gboolean    tool_has_pressure_dynamics (GType          tool_type);
+static gboolean    tool_has_hardness_dynamics (GType          tool_type);
 static gboolean    tool_has_rate_dynamics     (GType          tool_type);
 static gboolean    tool_has_size_dynamics     (GType          tool_type);
 static gboolean    tool_has_color_dynamics    (GType          tool_type);
@@ -186,9 +186,9 @@
       n_dynamics++;
     }
 
-  if (tool_has_pressure_dynamics (tool_type))
+  if (tool_has_hardness_dynamics (tool_type))
     {
-      dynamics_labels[n_dynamics] = gtk_label_new (_("Pressure"));
+      dynamics_labels[n_dynamics] = gtk_label_new (_("Hardness"));
       n_dynamics++;
     }
 
@@ -337,7 +337,7 @@
 }
 
 static gboolean
-tool_has_pressure_dynamics (GType tool_type)
+tool_has_hardness_dynamics (GType tool_type)
 {
   return (tool_type == GIMP_TYPE_AIRBRUSH_TOOL          ||
           tool_type == GIMP_TYPE_CLONE_TOOL             ||
@@ -406,7 +406,6 @@
   GtkWidget *button;
   gint       column = 1;
 
-  /*  the opacity toggle  */
   if (tool_has_opacity_dynamics (tool_type))
     {
       button = dynamics_check_button_new (config, "pressure-opacity",
@@ -417,8 +416,7 @@
       column++;
     }
 
-  /*  the pressure toggle  */
-  if (tool_has_pressure_dynamics (tool_type))
+  if (tool_has_hardness_dynamics (tool_type))
     {
       button = dynamics_check_button_new (config, "pressure-hardness",
                                           table, column, row);
@@ -428,7 +426,6 @@
       column++;
     }
 
-  /*  the rate toggle */
   if (tool_has_rate_dynamics (tool_type))
     {
       button = dynamics_check_button_new (config, "pressure-rate",
@@ -439,7 +436,6 @@
       column++;
     }
 
-  /*  the size toggle  */
   if (tool_has_size_dynamics (tool_type))
     {
       if (tool_type != GIMP_TYPE_AIRBRUSH_TOOL)
@@ -455,7 +451,6 @@
       column++;
     }
 
-  /*  the color toggle  */
   if (tool_has_color_dynamics (tool_type))
     {
       button = dynamics_check_button_new (config, "pressure-color",
@@ -477,35 +472,30 @@
   GObject *config = G_OBJECT (paint_options);
   gint     column = 1;
 
-  /*  the opacity toggle  */
   if (tool_has_opacity_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "velocity-opacity",
                                  table, column++, row);
     }
 
-  /*  the pressure toggle  */
-  if (tool_has_pressure_dynamics (tool_type))
+  if (tool_has_hardness_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "velocity-hardness",
                                  table, column++, row);
     }
 
-  /*  the rate toggle */
   if (tool_has_rate_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "velocity-rate",
                                  table, column++, row);
     }
 
-  /*  the size toggle  */
   if (tool_has_size_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "velocity-size",
                                  table, column++, row);
     }
 
-  /*  the color toggle  */
   if (tool_has_color_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "velocity-color",
@@ -523,35 +513,30 @@
   GObject*config = G_OBJECT (paint_options);
   gint    column = 1;
 
-  /*  the opacity toggle  */
   if (tool_has_opacity_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "random-opacity",
                                  table, column++, row);
     }
 
-  /*  the pressure toggle  */
-  if (tool_has_pressure_dynamics (tool_type))
+  if (tool_has_hardness_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "random-hardness",
                                  table, column++, row);
     }
 
-  /*  the rate toggle */
   if (tool_has_rate_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "random-rate",
                                  table, column++, row);
     }
 
-  /*  the size toggle  */
   if (tool_has_size_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "random-size",
                                  table, column++, row);
     }
 
-  /*  the color toggle  */
   if (tool_has_color_dynamics (tool_type))
     {
       dynamics_check_button_new (config, "random-color",



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