[gimp] Remove accelerator markers from tooltips for python-fu dialogs



commit 16766f3b410e6bd715486582240b2d60d9320771
Author: João S. O. Bueno <gwidion gmail com>
Date:   Sun Jan 5 04:35:45 2014 -0200

    Remove accelerator markers from tooltips for python-fu dialogs

 plug-ins/pygimp/gimpfu.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py
index ba833c2..5c7304d 100644
--- a/plug-ins/pygimp/gimpfu.py
+++ b/plug-ins/pygimp/gimpfu.py
@@ -728,11 +728,13 @@ def _interact(proc_name, start_params):
 
         table.attach(wid, 2,3, i,i+1, yoptions=0)
 
+        # Remove accelerator markers from tooltips
+        tooltip_text = desc.replace("_", "")
         if pf_type != PF_TEXT:
-            wid.set_tooltip_text(desc)
+            wid.set_tooltip_text(tooltip_text)
         else:
             # Attach tip to TextView, not to ScrolledWindow
-            wid.view.set_tooltip_text(desc)
+            wid.view.set_tooltip_text(tooltip_text)
         wid.show()
 
         wid.desc = desc


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