diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | doc/de/autogen/user/weechat_commands.txt | 17 | ||||
-rw-r--r-- | doc/de/autogen/user/weechat_options.txt | 2 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_commands.txt | 3 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_options.txt | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_commands.txt | 3 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_options.txt | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_commands.txt | 17 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_options.txt | 2 | ||||
-rw-r--r-- | po/cs.po | 7 | ||||
-rw-r--r-- | po/de.po | 15 | ||||
-rw-r--r-- | po/es.po | 15 | ||||
-rw-r--r-- | po/fr.po | 21 | ||||
-rw-r--r-- | po/hu.po | 7 | ||||
-rw-r--r-- | po/it.po | 15 | ||||
-rw-r--r-- | po/pl.po | 14 | ||||
-rw-r--r-- | po/pt_BR.po | 8 | ||||
-rw-r--r-- | po/ru.po | 7 | ||||
-rw-r--r-- | po/weechat.pot | 7 | ||||
-rw-r--r-- | src/core/wee-command.c | 13 | ||||
-rw-r--r-- | src/core/wee-config.c | 24 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-mouse.c | 2 |
22 files changed, 120 insertions, 87 deletions
@@ -7,8 +7,8 @@ v0.3.7-dev, 2011-12-25 Version 0.3.7 (under dev!) -------------------------- -* core: set option weechat.look.mouse when mouse state is changed with command - /mouse +* core: save current mouse state in option weechat.look.mouse (set option when + mouse state is changed with command /mouse) * core: add type "hashtable" for hdata * core: add signal "buffer_line_added" * core: add default keys "meta2-1;5D" and "meta2-1;5C" (ctrl+left/right) for diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt index ebf7f3c59..2cb21088a 100644 --- a/doc/de/autogen/user/weechat_commands.txt +++ b/doc/de/autogen/user/weechat_commands.txt @@ -398,18 +398,17 @@ Wird der Befehl ohne Argumente aufgerufen wird das gespeicherte Layout dargestel ........................................ /mouse enable|disable|toggle [<delay>] - enable: aktiviert Maus -disable: deaktiviert Maus - toggle: umschalten der Mausunterstützung - delay: Verzögerung (in Sekunden) nach der der ursprüngliche Status wiederhergestellt wird (nützlich um zeitgesteuert die Mausunterstützung zu deaktivieren) + enable: enable mouse +disable: disable mouse + toggle: toggle mouse + delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse) -Um die Mausunterstützung beim Programmstart ein-/auszuschalten: - /set weechat.look.mouse on/off +The mouse state is saved in option "weechat.look.mouse". -Beispiele: - Mausunterstützung aktivieren: +Examples: + enable mouse: /mouse enable - Mausunterstützung für 5 Sekunden umschalten: + toggle mouse for 5 seconds: /mouse toggle 5 ........................................ diff --git a/doc/de/autogen/user/weechat_options.txt b/doc/de/autogen/user/weechat_options.txt index 1da71e58a..7402205f0 100644 --- a/doc/de/autogen/user/weechat_options.txt +++ b/doc/de/autogen/user/weechat_options.txt @@ -559,7 +559,7 @@ ** Werte: on, off (Standardwert: `on`) * [[option_weechat.look.mouse]] *weechat.look.mouse* -** Beschreibung: `Mausunterstützung beim Start aktivieren (um die Funktion direkt zu aktivieren, siehe /help mouse)` +** Beschreibung: `enable mouse support` ** Typ: boolesch ** Werte: on, off (Standardwert: `off`) diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt index a52c83c06..1c223fb79 100644 --- a/doc/en/autogen/user/weechat_commands.txt +++ b/doc/en/autogen/user/weechat_commands.txt @@ -403,8 +403,7 @@ disable: disable mouse toggle: toggle mouse delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse) -To enable/disable mouse at startup, use: - /set weechat.look.mouse on/off +The mouse state is saved in option "weechat.look.mouse". Examples: enable mouse: diff --git a/doc/en/autogen/user/weechat_options.txt b/doc/en/autogen/user/weechat_options.txt index 6ffb2a993..f35a1fa24 100644 --- a/doc/en/autogen/user/weechat_options.txt +++ b/doc/en/autogen/user/weechat_options.txt @@ -559,7 +559,7 @@ ** values: on, off (default value: `on`) * [[option_weechat.look.mouse]] *weechat.look.mouse* -** description: `enable mouse support at startup (to enable it now, see /help mouse)` +** description: `enable mouse support` ** type: boolean ** values: on, off (default value: `off`) diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt index dd745a431..df41b7c6b 100644 --- a/doc/fr/autogen/user/weechat_commands.txt +++ b/doc/fr/autogen/user/weechat_commands.txt @@ -403,8 +403,7 @@ disable: désactiver la souris toggle: activer/désactiver la souris délai: délai (en secondes) après lequel l'état initial de la souris est restauré (pratique pour désactiver temporairement la souris) -Pour activer/désactiver la souris au démarrage, faites : - /set weechat.look.mouse on/off +L'état de la souris est sauvé dans l'option "weechat.look.mouse". Exemples: activer la souris: diff --git a/doc/fr/autogen/user/weechat_options.txt b/doc/fr/autogen/user/weechat_options.txt index e5ac6809f..03b4d813f 100644 --- a/doc/fr/autogen/user/weechat_options.txt +++ b/doc/fr/autogen/user/weechat_options.txt @@ -559,7 +559,7 @@ ** valeurs: on, off (valeur par défaut: `on`) * [[option_weechat.look.mouse]] *weechat.look.mouse* -** description: `activer le support de la souris au démarrage (pour l'activer maintenant, voir /help mouse)` +** description: `activer le support de la souris` ** type: booléen ** valeurs: on, off (valeur par défaut: `off`) diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt index f0afa9b4c..edac20f66 100644 --- a/doc/it/autogen/user/weechat_commands.txt +++ b/doc/it/autogen/user/weechat_commands.txt @@ -398,18 +398,17 @@ Senza argomenti, il comando visualizza il layout salvato. ........................................ /mouse enable|disable|toggle [<ritardo>] - enable: abilita mouse -disable: disabilita mouse - toggle: abilita/disabilita mouse -ritardo: ritardo (in secondi) dopo il quale viene ripristinato lo stato iniziale del mouse (utile per disattivarlo temporaneamente) + enable: enable mouse +disable: disable mouse + toggle: toggle mouse + delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse) -Per abilitare/disabilitare il mouse all'avvio, usare: - /set weechat.look.mouse on/off +The mouse state is saved in option "weechat.look.mouse". -Esempi: - abilita mouse: +Examples: + enable mouse: /mouse enable - abilita/disabilita mouse per 5 secondi: + toggle mouse for 5 seconds: /mouse toggle 5 ........................................ diff --git a/doc/it/autogen/user/weechat_options.txt b/doc/it/autogen/user/weechat_options.txt index 714cecb01..ef0bc7d64 100644 --- a/doc/it/autogen/user/weechat_options.txt +++ b/doc/it/autogen/user/weechat_options.txt @@ -559,7 +559,7 @@ ** valori: on, off (valore predefinito: `on`) * [[option_weechat.look.mouse]] *weechat.look.mouse* -** descrizione: `abilita il supporto del mouse all'avvio (per attivarlo ora, consultare /help mouse)` +** descrizione: `enable mouse support` ** tipo: bool ** valori: on, off (valore predefinito: `off`) @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-11-03 16:57+0100\n" "Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1560,8 +1560,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2491,7 +2490,7 @@ msgstr "" "skočit na posledně navštívený buffer při zavírání bufferu (pokud je vypnuto " "skočí na číslo bufferu - 1)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" msgid "" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-25 21:30+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-12-18 14:57+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1661,6 +1661,7 @@ msgstr "Maussteuerung" msgid "enable|disable|toggle [<delay>]" msgstr "enable|disable|toggle [<delay>]" +#, fuzzy msgid "" " enable: enable mouse\n" "disable: disable mouse\n" @@ -1668,8 +1669,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2716,10 +2716,8 @@ msgstr "" "wird (wenn diese Funktion deaktiviert ist wird zum Buffer gewechselt der die " "Position -1 einnimmt)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" -"Mausunterstützung beim Start aktivieren (um die Funktion direkt zu " -"aktivieren, siehe /help mouse)" msgid "" "delay (in milliseconds) to grab a mouse event: WeeChat will wait this delay " @@ -8662,6 +8660,11 @@ msgstr "Variablen" msgid "Lists" msgstr "Listen" +#~ msgid "enable mouse support at startup (to enable it now, see /help mouse)" +#~ msgstr "" +#~ "Mausunterstützung beim Start aktivieren (um die Funktion direkt zu " +#~ "aktivieren, siehe /help mouse)" + #~ msgid "" #~ "standard plugins extension in filename (for example \".so\" under Linux " #~ "or \".dll\" under Microsoft Windows)" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-11-03 16:57+0100\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1621,6 +1621,7 @@ msgstr "control del ratón" msgid "enable|disable|toggle [<delay>]" msgstr "enable|disable|toggle [<retraso>]" +#, fuzzy msgid "" " enable: enable mouse\n" "disable: disable mouse\n" @@ -1628,8 +1629,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2630,10 +2630,8 @@ msgstr "" "salta al buffer visitado anteriormente al cerrar un buffer (si es " "desactivado, entonces salta al buffer de número menor)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" -"activar el soporte para ratón al inicio del programa (para activarlo ahora, " -"ver /help mouse)" msgid "" "delay (in milliseconds) to grab a mouse event: WeeChat will wait this delay " @@ -8416,6 +8414,11 @@ msgstr "Variables" msgid "Lists" msgstr "Listas" +#~ msgid "enable mouse support at startup (to enable it now, see /help mouse)" +#~ msgstr "" +#~ "activar el soporte para ratón al inicio del programa (para activarlo " +#~ "ahora, ver /help mouse)" + #~ msgid "" #~ "standard plugins extension in filename (for example \".so\" under Linux " #~ "or \".dll\" under Microsoft Windows)" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" -"PO-Revision-Date: 2011-12-17 18:40+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" +"PO-Revision-Date: 2011-12-25 21:38+0100\n" "Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: French\n" @@ -1628,8 +1628,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -1643,8 +1642,7 @@ msgstr "" " délai: délai (en secondes) après lequel l'état initial de la souris est " "restauré (pratique pour désactiver temporairement la souris)\n" "\n" -"Pour activer/désactiver la souris au démarrage, faites :\n" -" /set weechat.look.mouse on/off\n" +"L'état de la souris est sauvé dans l'option \"weechat.look.mouse\".\n" "\n" "Exemples:\n" " activer la souris:\n" @@ -2636,10 +2634,8 @@ msgstr "" "sauter au tampon précédemment visité lors de la fermeture d'un tampon (si " "désactivé, alors le saut se fait vers le numéro de tampon - 1)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" -msgstr "" -"activer le support de la souris au démarrage (pour l'activer maintenant, " -"voir /help mouse)" +msgid "enable mouse support" +msgstr "activer le support de la souris" msgid "" "delay (in milliseconds) to grab a mouse event: WeeChat will wait this delay " @@ -8488,6 +8484,11 @@ msgstr "Variables" msgid "Lists" msgstr "Listes" +#~ msgid "enable mouse support at startup (to enable it now, see /help mouse)" +#~ msgstr "" +#~ "activer le support de la souris au démarrage (pour l'activer maintenant, " +#~ "voir /help mouse)" + #~ msgid "" #~ "compression level (0 = no compression - faster, 9 = best compression - " #~ "slower)" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-10-22 12:21+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1369,8 +1369,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2132,7 +2131,7 @@ msgid "" "jump to buffer number - 1)" msgstr "" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" msgid "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-11-15 19:37+0100\n" "Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1609,6 +1609,7 @@ msgstr "controllo mouse" msgid "enable|disable|toggle [<delay>]" msgstr "enable|disable|toggle [<ritardo>]" +#, fuzzy msgid "" " enable: enable mouse\n" "disable: disable mouse\n" @@ -1616,8 +1617,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2618,10 +2618,8 @@ msgstr "" "passa al buffer visitato in precedenza alla chiusura di un buffer (se " "disabilitato, allora passa al buffer numero -1)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" -"abilita il supporto del mouse all'avvio (per attivarlo ora, consultare /help " -"mouse)" msgid "" "delay (in milliseconds) to grab a mouse event: WeeChat will wait this delay " @@ -8399,6 +8397,11 @@ msgstr "Variabili" msgid "Lists" msgstr "Liste" +#~ msgid "enable mouse support at startup (to enable it now, see /help mouse)" +#~ msgstr "" +#~ "abilita il supporto del mouse all'avvio (per attivarlo ora, consultare /" +#~ "help mouse)" + #~ msgid "" #~ "standard plugins extension in filename (for example \".so\" under Linux " #~ "or \".dll\" under Microsoft Windows)" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-11-03 16:57+0100\n" "Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1626,6 +1626,7 @@ msgstr "kontrola myszy" msgid "enable|disable|toggle [<delay>]" msgstr "enable|disable|toggle [<opóźnienie>]" +#, fuzzy msgid "" " enable: enable mouse\n" "disable: disable mouse\n" @@ -1633,8 +1634,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2629,9 +2629,8 @@ msgstr "" "skocz do poprzedniego buforu, po zamknięciu obecnego (jeśli wyłączona, wtedy " "skocz do buforu numer -1)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" -"włącza wsparcie dla myszy po starcie (aby włączyć teraz, zobacz /help mouse)" msgid "" "delay (in milliseconds) to grab a mouse event: WeeChat will wait this delay " @@ -8323,6 +8322,11 @@ msgstr "Zmienne" msgid "Lists" msgstr "Listy" +#~ msgid "enable mouse support at startup (to enable it now, see /help mouse)" +#~ msgstr "" +#~ "włącza wsparcie dla myszy po starcie (aby włączyć teraz, zobacz /help " +#~ "mouse)" + #~ msgid "" #~ "standard plugins extension in filename (for example \".so\" under Linux " #~ "or \".dll\" under Microsoft Windows)" diff --git a/po/pt_BR.po b/po/pt_BR.po index 61bc9b85d..58e0122dd 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-11-03 16:58+0100\n" "Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1634,6 +1634,7 @@ msgstr "controle do mouse" msgid "enable|disable|toggle [<delay>]" msgstr "enable|disable|toggle [<atraso>]" +#, fuzzy msgid "" " enable: enable mouse\n" "disable: disable mouse\n" @@ -1641,8 +1642,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2585,7 +2585,7 @@ msgstr "" "pula para o buffer previamente visitado quando estiver fechando um buffer " "(se desabilitado, então pula para o buffer número -1)" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" msgid "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: 2011-10-22 12:21+0200\n" "Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1378,8 +1378,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -2149,7 +2148,7 @@ msgid "" "jump to buffer number - 1)" msgstr "" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" msgid "" diff --git a/po/weechat.pot b/po/weechat.pot index 8e3e82b53..781ca5030 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-12-17 18:39+0100\n" +"POT-Creation-Date: 2011-12-25 21:44+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -1213,8 +1213,7 @@ msgid "" " delay: delay (in seconds) after which initial mouse state is restored " "(useful to temporarily disable mouse)\n" "\n" -"To enable/disable mouse at startup, use:\n" -" /set weechat.look.mouse on/off\n" +"The mouse state is saved in option \"weechat.look.mouse\".\n" "\n" "Examples:\n" " enable mouse:\n" @@ -1881,7 +1880,7 @@ msgid "" "jump to buffer number - 1)" msgstr "" -msgid "enable mouse support at startup (to enable it now, see /help mouse)" +msgid "enable mouse support" msgstr "" msgid "" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 162f8d9fc..6c29e4d22 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -3126,9 +3126,15 @@ command_mouse_timer_cb (void *data, int remaining_calls) (void) remaining_calls; if (gui_mouse_enabled) + { gui_mouse_disable (); + config_file_option_set (config_look_mouse, "0", 1); + } else + { gui_mouse_enable (); + config_file_option_set (config_look_mouse, "1", 1); + } return WEECHAT_RC_OK; } @@ -3172,6 +3178,7 @@ COMMAND_CALLBACK(mouse) if (string_strcasecmp (argv[1], "enable") == 0) { gui_mouse_enable (); + config_file_option_set (config_look_mouse, "1", 1); gui_chat_printf (NULL, _("Mouse enabled")); if (argc > 2) command_mouse_timer (argv[2]); @@ -3182,6 +3189,7 @@ COMMAND_CALLBACK(mouse) if (string_strcasecmp (argv[1], "disable") == 0) { gui_mouse_disable (); + config_file_option_set (config_look_mouse, "0", 1); gui_chat_printf (NULL, _("Mouse disabled")); if (argc > 2) command_mouse_timer (argv[2]); @@ -3194,11 +3202,13 @@ COMMAND_CALLBACK(mouse) if (gui_mouse_enabled) { gui_mouse_disable (); + config_file_option_set (config_look_mouse, "0", 1); gui_chat_printf (NULL, _("Mouse disabled")); } else { gui_mouse_enable (); + config_file_option_set (config_look_mouse, "1", 1); gui_chat_printf (NULL, _("Mouse enabled")); } if (argc > 2) @@ -5865,8 +5875,7 @@ command_init () " toggle: toggle mouse\n" " delay: delay (in seconds) after which initial mouse " "state is restored (useful to temporarily disable mouse)\n\n" - "To enable/disable mouse at startup, use:\n" - " /set weechat.look.mouse on/off\n\n" + "The mouse state is saved in option \"weechat.look.mouse\".\n\n" "Examples:\n" " enable mouse:\n" " /mouse enable\n" diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 2a5a8f866..de3d32e3d 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -312,6 +312,26 @@ config_change_buffer_content (void *data, struct t_config_option *option) } /* + * config_change_mouse: called when mouse state is changed + */ + +void +config_change_mouse (void *data, struct t_config_option *option) +{ + /* make C compiler happy */ + (void) data; + (void) option; + + if (gui_ok) + { + if (CONFIG_BOOLEAN(config_look_mouse)) + gui_mouse_enable (); + else + gui_mouse_disable (); + } +} + +/* * config_change_buffer_notify_default: called when buffer default notify changes */ @@ -1915,8 +1935,8 @@ config_weechat_init_options () config_look_mouse = config_file_new_option ( weechat_config_file, ptr_section, "mouse", "boolean", - N_("enable mouse support at startup (to enable it now, see /help mouse)"), - NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + N_("enable mouse support"), + NULL, 0, 0, "off", NULL, 0, NULL, NULL, &config_change_mouse, NULL, NULL, NULL); config_look_mouse_timer_delay = config_file_new_option ( weechat_config_file, ptr_section, "mouse_timer_delay", "integer", diff --git a/src/gui/curses/gui-curses-mouse.c b/src/gui/curses/gui-curses-mouse.c index 6ca1cff9e..d37cef5ad 100644 --- a/src/gui/curses/gui-curses-mouse.c +++ b/src/gui/curses/gui-curses-mouse.c @@ -90,7 +90,6 @@ gui_mouse_enable () { gui_mouse_enabled = 1; fprintf (stderr, "\033[?1005h\033[?1000h\033[?1002h"); - config_file_option_set (config_look_mouse, "1", 1); } /* @@ -102,7 +101,6 @@ gui_mouse_disable () { gui_mouse_enabled = 0; fprintf (stderr, "\033[?1002l\033[?1000l\033[?1005l"); - config_file_option_set (config_look_mouse, "0", 1); } /* |