[gimp/gimp-2-8] Remove accelerator markers from tooltips for python-fu dialogs
- From: João Sebastião de Oliveira Bueno Calligaris <jsbueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Remove accelerator markers from tooltips for python-fu dialogs
- Date: Sun, 5 Jan 2014 06:40:25 +0000 (UTC)
commit e3a65f2ff5df4c7dd6b48b6e68989f4776e1a90e
Author: João S. O. Bueno <gwidion gmail com>
Date: Sun Jan 5 04:40:04 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]