From 659f58c36b307ae10972d50106ce76233bfb658b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 25 Oct 2016 16:20:50 +0200 Subject: fix MenuItem type The first action hides the real one we wanted... Thus the MenuItem is now checkable again (needed for next commit) (previously we got a Gtk3::ImageMenuItem instead of a Gtk3::CheckMenuItem) --- control-center | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'control-center') diff --git a/control-center b/control-center index 0c573d5a..2322f9aa 100755 --- a/control-center +++ b/control-center @@ -625,7 +625,6 @@ my $ui = gtknew('UIManager', actions => [ #-PO: you just have to select the proper letter for your language (eg: english: "Quit" => "Q") N("Q"), undef, \&quit_global ], [ 'OptionsMenu', undef, N("_Options") ], - [ 'show_log', undef, N("Display _Logs") ], [ 'HelpMenu', undef, N("_Help") ], [ 'Help', undef, N("_Help"), N("H"), undef, \&run_help ], [ 'Release_notes', undef, N("_Release notes"), undef, undef, sub { run_browser('Release_Notes') } ], @@ -637,7 +636,7 @@ my $ui = gtknew('UIManager', actions => [ [ 'About', undef, N("_About..."), '', undef, \&about_mga_cc ], ], toggle_actions => [ - [ 'Show_Logs', undef, N("Display _Logs"), undef, undef, sub { + [ 'show_log', undef, N("Display _Logs"), undef, undef, sub { $option_values{show_log} = $check_boxes{show_log}->get_active; if ($option_values{show_log}) { start_logdrake(); -- cgit v1.2.1