Add in config for auto-tearoff of menus

Specifically the send and hosts menus - thanks to James Chernikov for the idea
This commit is contained in:
Duncan Ferguson 2009-08-11 18:01:06 +01:00
parent 753caf30be
commit d7f995a51d
2 changed files with 20 additions and 0 deletions

View file

@ -4,6 +4,8 @@
- thanks for Stanislas Rouvelin for the idea
* Fix bug where unresolvable host stopped program running
- thanks to Sami Kerola
* Add in config for auto-tearoff of send and host menus
- thanks to James Chernikov for the idea
2009-06-02 Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.26-1

View file

@ -268,6 +268,8 @@ sub load_config_defaults() {
$config{max_host_menu_items} = 30;
$config{max_addhost_menu_cluster_items} = 6;
$config{menu_send_autotearoff} = 0;
$config{menu_host_autotearoff} = 0;
}
# load in config file settings
@ -1160,6 +1162,15 @@ sub show_console() {
# Sleep for a moment to give WM time to bring console back
select( undef, undef, undef, 0.5 );
if ( $config{menu_send_autotearoff} ) {
$menus{send}->menu->tearOffMenu()->raise;
}
if ( $config{menu_host_autotearoff} ) {
$menus{hosts}->menu->tearOffMenu()->raise;
}
$windows{main_window}->deiconify;
$windows{main_window}->raise;
$windows{main_window}->focus( -force );
@ -2537,6 +2548,13 @@ scrollbars are used
Maximum number of hosts to put into the host menu before starting a new column
=item menu_host_autotearoff = 0
=item menu_send_autotearoff = 0
When set to non-0 will automatically tear-off the host or send menu at
program start
=item mouse_paste = Button-2 (middle mouse button)
Default key sequence to paste text into the console window using the mouse.