summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-02-25 15:21:55 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-02-25 15:21:55 +0000
commita8e1868dce077b8a5022c5f10bdab9042c7d3acd (patch)
treeb627a2da1b2275750f608556b5424c3833030e73
parent85c8464ba18cdecb155eb1265f39c334eec2b9e1 (diff)
downloadcontrol-center-a8e1868dce077b8a5022c5f10bdab9042c7d3acd.tar
control-center-a8e1868dce077b8a5022c5f10bdab9042c7d3acd.tar.gz
control-center-a8e1868dce077b8a5022c5f10bdab9042c7d3acd.tar.bz2
control-center-a8e1868dce077b8a5022c5f10bdab9042c7d3acd.tar.xz
control-center-a8e1868dce077b8a5022c5f10bdab9042c7d3acd.zip
(get_path) strip all "_" characters since gtk+ do the same internally
Rationale: It's a special character for gtk+ that means "the next letter is a key accelerator. Thus only one "_" can appears in menu paths. this will prevent further bugs such as #13540
-rwxr-xr-xcontrol-center2
1 files changed, 1 insertions, 1 deletions
diff --git a/control-center b/control-center
index 261a4a02..bebd0d11 100755
--- a/control-center
+++ b/control-center
@@ -1121,7 +1121,7 @@ my @menu_items = (
my ($menu, $factory) = create_factory_menu($window_global, @menu_items);
# to retrieve a path, one must prevent "accelerators completion":
-sub get_path { join('', map { my $i = $_; $i =~ s/_//; $i } @_) }
+sub get_path { join('', map { my $i = $_; $i =~ s/_//g; $i } @_) }
# menus do not like "_" from profiles (whereas netprofile does not like spaces in profile names...)
sub profile2menu {