gimp r25489 - in trunk: . plug-ins/pygimp



Author: neo
Date: Mon Apr 14 19:07:37 2008
New Revision: 25489
URL: http://svn.gnome.org/viewvc/gimp?rev=25489&view=rev

Log:
2008-04-14  Sven Neumann  <sven gimp org>

	* plug-ins/pygimp/gimpfu.py (_query.make_params): strip 
mnemonics
	from parameter names before passing them to 
gimp.install_procedure().



Modified:
   trunk/ChangeLog
   trunk/plug-ins/pygimp/gimpfu.py

Modified: trunk/plug-ins/pygimp/gimpfu.py
==============================================================================
--- trunk/plug-ins/pygimp/gimpfu.py	(original)
+++ trunk/plug-ins/pygimp/gimpfu.py	Mon Apr 14 19:07:37 2008
@@ -289,7 +289,9 @@
          on_query, on_run) = _registered_plugins_[plugin]
 
         def make_params(params):
-            return [(_type_mapping[x[0]], x[1], x[2]) for x in params]
+            return [(_type_mapping[x[0]],
+                     x[1],
+                     _string.replace(x[2], "_", "")) for x in params]
 
         params = make_params(params)
         # add the run mode argument ...



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