diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-02-25 15:21:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-02-25 15:21:55 +0000 |
commit | a8e1868dce077b8a5022c5f10bdab9042c7d3acd (patch) | |
tree | b627a2da1b2275750f608556b5424c3833030e73 | |
parent | 85c8464ba18cdecb155eb1265f39c334eec2b9e1 (diff) | |
download | control-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-x | control-center | 2 |
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 { |