From acd7e23c81d68f679b71bd0cb604f17a2c3b7770 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 17 Feb 2008 13:01:34 +0000 Subject: [PATCH] Don't show the keyboard shortcut underscores in the Params panel's value column. git-svn-id: http://svn.voria.com/code@1734 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp b/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp index 802a178..eca2a97 100644 --- a/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp +++ b/synfig-studio/trunk/src/gtkmm/cellrenderer_value.cpp @@ -372,7 +372,13 @@ CellRenderer_ValueBase::render_vfunc( for(iter=enum_list.begin();iter!=enum_list.end();iter++) if(iter->value==data.get(int())) { - property_text()=(Glib::ustring)iter->local_name; + // don't show the key_board s_hortcut under_scores + String local_name = iter->local_name; + String::size_type pos = local_name.find_first_of('_'); + if (pos != String::npos) + property_text() = local_name.substr(0,pos) + local_name.substr(pos+1); + else + property_text() = local_name; break; } } -- 2.7.4