From a8e1868dce077b8a5022c5f10bdab9042c7d3acd Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 25 Feb 2005 15:21:55 +0000 Subject: (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 --- control-center | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.1