summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--doc/de/autogen/user/weechat_commands.txt72
-rw-r--r--doc/en/autogen/user/weechat_commands.txt4
-rw-r--r--doc/fr/autogen/user/weechat_commands.txt4
-rw-r--r--doc/it/autogen/user/weechat_commands.txt84
-rw-r--r--po/cs.po11
-rw-r--r--po/de.po13
-rw-r--r--po/es.po11
-rw-r--r--po/fr.po22
-rw-r--r--po/hu.po11
-rw-r--r--po/it.po13
-rw-r--r--po/pl.po11
-rw-r--r--po/pt_BR.po11
-rw-r--r--po/ru.po11
-rw-r--r--po/weechat.pot11
-rw-r--r--src/core/wee-command.c26
-rw-r--r--src/gui/gui-bar.h3
17 files changed, 177 insertions, 142 deletions
diff --git a/ChangeLog b/ChangeLog
index f81e3558a..77314b4f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ v0.3.5-dev, 2011-03-18
Version 0.3.5 (under dev!)
--------------------------
+* core: add optional bar name in command /bar default
* core: create default bars only if no bar is defined in configuration file
* core: add new option weechat.look.highlight_tags (force highlight on tags)
* core: fix bug with repeat of last completion ("%*"), which failed when many
diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt
index 4cd4d0de5..8501520ad 100644
--- a/doc/de/autogen/user/weechat_commands.txt
+++ b/doc/de/autogen/user/weechat_commands.txt
@@ -10,50 +10,50 @@ message: Abwesenheitsnachricht (ohne eine Nachricht wird der Abwesenheitszustand
........................................
/bar list|listfull|listitems
add <name> <type>[,<cond1>[,<cond2>...]] <position> <size> <separator> <item1>[,<item2>...]
- default
+ default [input|title|status|nicklist]
del <name>|-all
set <name> <option> <value>
hide|show|toggle <name>
scroll <name> <buffer> <scroll_value>
- list: listet alle Infobars auf
- listfull: listet alle Infobars detailliert auf (Standardaufruf)
- listitems: listet alle Items auf, die in den Infobars genutzt werden
- add: füge eine neue Infobar hinzu
- name: Name der Infobar (muss einmalig sein)
- type: root: außerhalb des Fensters,
- window: innerhalb des Fensters, mit optionalen Merkmalen (siehe unten)
- cond1,...: Merkmal(e) für eine Infobar (nur nutzbar mit der Type-Option "window"):
- active: in einem aktiven Fenster
- inactive: in einem inaktiven Fenster
- nicklist: in Fenstern mit einer Nickliste
- werden keine Merkmale angegeben, ist die Infobar immer sichtbar
- position: bottom (unten), top (oben), left (links) oder right (rechts)
- size: Größe der Infobar (in Zeichen)
- separator: 1 um eine Trennlinien zu zeichnen, bei 0 oder ohne eine Angabe wird keine Trennlinien gezeichnet
- item1,...: Items die in der Infobar genutzt werden sollen (Items können durch Kommata oder Leerzeichen getrennt werden ("+" (verbindet Items))
- default: erstellt standardisierte Infobars
- del: entfernt eine Infobar (alle Infobars können mit der Option "-all" entfernt werden).
- set: setzt einen Wert für Infobar
- option: Optionen die geändert werden (für eine List der möglichen Optionen, bitte folgenden Befehl nutzen: /set weechat.bar.<barname>.*)
- value: neuer Wert für Option
- hide: Infobar wird ausgeblendet
- show: zeigt eine ausgeblendete Infobar an
- toggle: zeigt/versteckt eine Infobar
- scroll: scrollt Infobar hoch/runter
- buffer: Name des Buffer der gescrollt werden soll ('*' für aktuellen Buffer, man sollte '*' für root-Infobars nutzen)
- scroll_value: Werte für Scroll-Funktion: 'x' oder 'y', gefolgt von '+', '-', 'b' (Beginn) oder 'e' (Ende), Wert (für +/-), und Optional %% (zum scrollen für %% der Breite/Höhe, ansonsten wird der Wert als Anzahl der Zeichen interpretiert um die gescrollt werden soll)
-
-Beispiele:
- erstellt eine Infobar mit den Items: time, buffer number + name, und Vervollständigung:
+ list: list all bars
+ listfull: list all bars (verbose)
+ listitems: list all bar items
+ add: add a new bar
+ name: name of bar (must be unique)
+ type: root: outside windows,
+ window: inside windows, with optional conditions (see below)
+ cond1,...: condition(s) for displaying bar (only for type "window"):
+ active: on active window
+ inactive: on inactive windows
+ nicklist: on windows with nicklist
+ without condition, bar is always displayed
+ position: bottom, top, left or right
+ size: size of bar (in chars)
+ separator: 1 for using separator (line), 0 or nothing means no separator
+ item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items))
+ default: create a default bar (all default bars if no bar name is given)
+ del: delete a bar (or all bars with -all)
+ set: set a value for a bar property
+ option: option to change (for options list, look at /set weechat.bar.<barname>.*)
+ value: new value for option
+ hide: hide a bar
+ show: show an hidden bar
+ toggle: hide/show a bar
+ scroll: scroll bar
+ buffer: name of buffer to scroll ('*' means current buffer, you should use '*' for root bars)
+ scroll_value: value for scroll: 'x' or 'y', followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional %% (to scroll by %% of width/height, otherwise value is number of chars)
+
+Examples:
+ create a bar with time, buffer number + name, and completion:
/bar add mybar root bottom 1 0 [time],buffer_number+:+buffer_name,completion
- versteckt die Infobar (meinebar):
- /bar hide meinebar
- scrollt die Nickliste im aktuellen Buffer um 10 Zeilen nach unten:
+ hide a bar:
+ /bar hide mybar
+ scroll nicklist 10 lines down on current buffer:
/bar scroll nicklist * y+10
- scrollt die Nickliste im Buffer #weechat eine ganze Seite nach oben:
+ scroll nicklist one page up on #weechat buffer:
/bar scroll nicklist #weechat y-100%
- scrollt zum Ende der Nicklist im aktuellen Buffer:
+ scroll to end of nicklist on current buffer:
/bar scroll nicklist * ye
........................................
diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt
index d329ec8b5..4545869f1 100644
--- a/doc/en/autogen/user/weechat_commands.txt
+++ b/doc/en/autogen/user/weechat_commands.txt
@@ -10,7 +10,7 @@ message: message for away (if no message is given, away status is removed)
........................................
/bar list|listfull|listitems
add <name> <type>[,<cond1>[,<cond2>...]] <position> <size> <separator> <item1>[,<item2>...]
- default
+ default [input|title|status|nicklist]
del <name>|-all
set <name> <option> <value>
hide|show|toggle <name>
@@ -32,7 +32,7 @@ message: message for away (if no message is given, away status is removed)
size: size of bar (in chars)
separator: 1 for using separator (line), 0 or nothing means no separator
item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items))
- default: create default bars
+ default: create a default bar (all default bars if no bar name is given)
del: delete a bar (or all bars with -all)
set: set a value for a bar property
option: option to change (for options list, look at /set weechat.bar.<barname>.*)
diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt
index e2896ac10..3b75160f5 100644
--- a/doc/fr/autogen/user/weechat_commands.txt
+++ b/doc/fr/autogen/user/weechat_commands.txt
@@ -10,7 +10,7 @@ message: message pour l'absence (si pas de message donné, le statut d'absence e
........................................
/bar list|listfull|listitems
add <nom> <type>[,<cond1>[,<cond2>...]] <position> <taille> <séparateur> <objet1>[,<objet2>...]
- default
+ default [input|title|status|nicklist]
del <nom>|-all
set <nom> <option> <valeur>
hide|show|toggle <nom>
@@ -32,7 +32,7 @@ message: message pour l'absence (si pas de message donné, le statut d'absence e
taille: taille de la barre (en caractères)
séparateur: 1 pour utiliser un séparateur (ligne), 0 ou rien signifie sans séparateur
objet1,...: objets pour cette barre (les objets peuvent être séparés par une virgule (espace entre les objets) ou "+" (objets collés))
- default: créer les barres par défaut
+ default: créer une barre par défaut (toutes les barres par défaut si aucun nom de barre n'est donné)
del: supprimer une barre (ou toutes les barres avec -all)
set: changer la valeur d'une propriété de la barre
option: option à modifier (pour la liste des options, voir /set weechat.bar.<nombarre>.*
diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt
index a10e7ab27..5ee345864 100644
--- a/doc/it/autogen/user/weechat_commands.txt
+++ b/doc/it/autogen/user/weechat_commands.txt
@@ -9,51 +9,51 @@ messaggio: messaggio di assenza (se non specificato, lo stato di assenza viene r
[command]*`bar`* gestione barre::
........................................
/bar list|listfull|listitems
- add <nome> <tipo>[,<cond1>[,<cond2>...]] <posizione> <dimensione> <separatore> <item1>[,<item2>...]
- default
- del <nome>|-all
- set <nome> <opzione> <valore>
- hide|show|toggle <nome>
- scroll <nome> <buffer> <scroll_value>
-
- list: elenca tutte le barre
- listfull: elenca tutte le barre (dettagliato)
- listitems: elenca tutti gli elementi della barra
- add: aggiunge una nuova barra
- nome: nome della barra (deve essere unico)
- tipo: root: al di fuori delle finestre,
- window: all'interno delle finestre, con opzioni condizionali (a seguire)
- cond1,...: condizione(i) per visualizzare la barra (solo per il tipo "window"):
- active: sulla finestra attiva
- inactive: sulle finestre inattive
- nicklist: sulle finestre con la lista nick
- senza condizione, viene sempre mostrata
- posizione: bottom (basso), top (alto), left (sinistra) o right (destra)
- dimensione: dimensione della barra (in caratteri)
- separatore: 1 per utilizzarlo (riga), 0 o nulla equivale a nessun separatore
- item1,...: elementi per questa barra (possono essere separati da virgole (spazio tra gli elementi) o "+" (elementi incollati))
- default: crea barre predefinite
- del: elimina una barra (o tutte le barre con -all)
- set: imposta un valore per la proprietà di una barra
- opzione: opzione da cambiare (per una lista di opzioni, consultare /set weechat.bar.<barname>.*)
- valore: nuovo valore per l'opzione
- hide: nasconde una barra
- show: mostra una barra nascosta
- toggle: nascone/mostra una barra
- scroll: scorre una barra
- buffer: nome del buffer da scorrere ('*' indica il buffer corrente, si dovrebbe utilizzare '*' per le barre root)
- scroll_value: valore per lo scorrimento: 'x' o 'y', seguite da '+', '-', 'b' (inizio) or 'e' (fine), valore (per +/-), e %% opzionale (per scorrere di %% di larghezza/altezza, altrimenti il valore è il numero di caratteri)
+ add <name> <type>[,<cond1>[,<cond2>...]] <position> <size> <separator> <item1>[,<item2>...]
+ default [input|title|status|nicklist]
+ del <name>|-all
+ set <name> <option> <value>
+ hide|show|toggle <name>
+ scroll <name> <buffer> <scroll_value>
+
+ list: list all bars
+ listfull: list all bars (verbose)
+ listitems: list all bar items
+ add: add a new bar
+ name: name of bar (must be unique)
+ type: root: outside windows,
+ window: inside windows, with optional conditions (see below)
+ cond1,...: condition(s) for displaying bar (only for type "window"):
+ active: on active window
+ inactive: on inactive windows
+ nicklist: on windows with nicklist
+ without condition, bar is always displayed
+ position: bottom, top, left or right
+ size: size of bar (in chars)
+ separator: 1 for using separator (line), 0 or nothing means no separator
+ item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items))
+ default: create a default bar (all default bars if no bar name is given)
+ del: delete a bar (or all bars with -all)
+ set: set a value for a bar property
+ option: option to change (for options list, look at /set weechat.bar.<barname>.*)
+ value: new value for option
+ hide: hide a bar
+ show: show an hidden bar
+ toggle: hide/show a bar
+ scroll: scroll bar
+ buffer: name of buffer to scroll ('*' means current buffer, you should use '*' for root bars)
+ scroll_value: value for scroll: 'x' or 'y', followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional %% (to scroll by %% of width/height, otherwise value is number of chars)
-Esempi:
- crea una barra con l'ora, numero del buffer + nome, e completamento:
- /bar add miabarra root bottom 1 0 [time],buffer_number+:+buffer_name,completion
- nasconde una barra:
- /bar hide miabarra
- scorre la lista nick di 10 righe in basso sul buffer corrente:
+Examples:
+ create a bar with time, buffer number + name, and completion:
+ /bar add mybar root bottom 1 0 [time],buffer_number+:+buffer_name,completion
+ hide a bar:
+ /bar hide mybar
+ scroll nicklist 10 lines down on current buffer:
/bar scroll nicklist * y+10
- scorre la lista nick di una pagina in alto sul buffer #weechat:
+ scroll nicklist one page up on #weechat buffer:
/bar scroll nicklist #weechat y-100%
- scorre fino alla fine della lista nick sul buffer corrente:
+ scroll to end of nicklist on current buffer:
/bar scroll nicklist * ye
........................................
diff --git a/po/cs.po b/po/cs.po
index cd91ca7fc..0fb310f29 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -796,9 +796,9 @@ msgstr "řídit pole"
#, fuzzy
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"[add jméno_pole typ[,cond1,cond2,...] pozice velikost dělič položka1,"
"položka2,...] | [default] | [del jméno_pole|-all] | [set jméno_pole "
@@ -825,7 +825,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/de.po b/po/de.po
index dded24a27..98b5404c8 100644
--- a/po/de.po
+++ b/po/de.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-03-12 10:15+0100\n"
"Last-Translator: Nils G.\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -807,17 +807,19 @@ msgstr ""
msgid "manage bars"
msgstr "Infobars verwalten"
+#, fuzzy
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
"<name> <buffer> <scroll_value>"
+#, fuzzy
msgid ""
" list: list all bars\n"
" listfull: list all bars (verbose)\n"
@@ -837,7 +839,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/es.po b/po/es.po
index e4c2f6621..d5199065d 100644
--- a/po/es.po
+++ b/po/es.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -793,9 +793,9 @@ msgstr "gestionar las barras"
#, fuzzy
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"[add nombre_barra tipo[,cond1,cond2,...] posición tamaño separador elemento1,"
"elemento2,...] | [default] | [del nombre_barra|-all] | [set nombre_barra "
@@ -822,7 +822,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/fr.po b/po/fr.po
index 2fe6f3804..d56ff4e78 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
-"PO-Revision-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
+"PO-Revision-Date: 2011-03-18 15:30+0100\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@@ -797,14 +797,14 @@ msgstr "gestion des barres"
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"list|listfull|listitems || add <nom> <type>[,<cond1>[,<cond2>...]] "
-"<position> <taille> <séparateur> <objet1>[,<objet2>...] || default || del "
-"<nom>|-all || set <nom> <option> <valeur> || hide|show|toggle <nom> || "
-"scroll <nom> <tampon> <valeur_scroll>"
+"<position> <taille> <séparateur> <objet1>[,<objet2>...] || default [input|"
+"title|status|nicklist] || del <nom>|-all || set <nom> <option> <valeur> || "
+"hide|show|toggle <nom> || scroll <nom> <tampon> <valeur_scroll>"
msgid ""
" list: list all bars\n"
@@ -825,7 +825,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
@@ -874,7 +875,8 @@ msgstr ""
"sans séparateur\n"
" objet1,...: objets pour cette barre (les objets peuvent être séparés par "
"une virgule (espace entre les objets) ou \"+\" (objets collés))\n"
-" default: créer les barres par défaut\n"
+" default: créer une barre par défaut (toutes les barres par défaut si "
+"aucun nom de barre n'est donné)\n"
" del: supprimer une barre (ou toutes les barres avec -all)\n"
" set: changer la valeur d'une propriété de la barre\n"
" option: option à modifier (pour la liste des options, voir /set "
diff --git a/po/hu.po b/po/hu.po
index 81c06b17a..6fc3c8cbf 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -841,9 +841,9 @@ msgstr "pufferek kezelése"
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
msgid ""
@@ -865,7 +865,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/it.po b/po/it.po
index 25bc19a41..312ca8727 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-03-09 09:29+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -786,17 +786,19 @@ msgstr ""
msgid "manage bars"
msgstr "gestione barre"
+#, fuzzy
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"list|listfull|listitems || add <nome> <tipo>[,<cond1>[,<cond2>...]] "
"<posizione> <dimensione> <separatore> <item1>[,<item2>...] || default || del "
"<nome>|-all || set <nome> <opzione> <valore> || hide|show|toggle <nome> || "
"scroll <nome> <buffer> <scroll_value>"
+#, fuzzy
msgid ""
" list: list all bars\n"
" listfull: list all bars (verbose)\n"
@@ -816,7 +818,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/pl.po b/po/pl.po
index f2387f828..de3a7c2ba 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-02-07 17:29+0100\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -805,9 +805,9 @@ msgstr "zarządzaj paskami"
#, fuzzy
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"[add nazwa typ[,warunek1,warunek2,...] pozycja rozmiar separator element1,"
"element2,...] | [default] | [del nazwa|-all] | [set nazwa opcja wartość] | "
@@ -834,7 +834,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/pt_BR.po b/po/pt_BR.po
index f5e707919..bfce4e65b 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-02-07 17:30+0100\n"
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -802,9 +802,9 @@ msgstr "gerenciar barras"
#, fuzzy
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
"[add barname type[,cond1,cond2,...] position size separator item1,item2,...] "
"| [default] | [del barname|-all] | [set barname option value] | [hide|show|"
@@ -832,7 +832,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/ru.po b/po/ru.po
index 217ee1836..37459a528 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.5-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+0100\n"
"PO-Revision-Date: 2011-02-07 17:30+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -848,9 +848,9 @@ msgstr "управление буферами"
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
msgid ""
@@ -872,7 +872,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/po/weechat.pot b/po/weechat.pot
index b8fdb9ec4..224313474 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-03-18 12:15+0100\n"
+"POT-Creation-Date: 2011-03-18 15:29+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"
@@ -737,9 +737,9 @@ msgstr ""
msgid ""
"list|listfull|listitems || add <name> <type>[,<cond1>[,<cond2>...]] "
-"<position> <size> <separator> <item1>[,<item2>...] || default || del <name>|-"
-"all || set <name> <option> <value> || hide|show|toggle <name> || scroll "
-"<name> <buffer> <scroll_value>"
+"<position> <size> <separator> <item1>[,<item2>...] || default [input|title|"
+"status|nicklist] || del <name>|-all || set <name> <option> <value> || hide|"
+"show|toggle <name> || scroll <name> <buffer> <scroll_value>"
msgstr ""
msgid ""
@@ -761,7 +761,8 @@ msgid ""
"separator\n"
" item1,...: items for this bar (items can be separated by comma (space "
"between items) or \"+\" (glued items))\n"
-" default: create default bars\n"
+" default: create a default bar (all default bars if no bar name is "
+"given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look at /set weechat.bar."
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index a8121a3b3..ef159092e 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -152,7 +152,7 @@ command_bar_list (int full)
COMMAND_CALLBACK(bar)
{
- int type, position;
+ int i, type, position;
char *error, *str_type, *pos_condition;
struct t_gui_bar *ptr_bar;
struct t_gui_bar_item *ptr_item;
@@ -283,7 +283,22 @@ COMMAND_CALLBACK(bar)
/* create default bars */
if (string_strcasecmp (argv[1], "default") == 0)
{
- gui_bar_create_default ();
+ if (argc > 2)
+ {
+ for (i = 2; i < argc; i++)
+ {
+ if (string_strcasecmp (argv[i], "input") == 0)
+ gui_bar_create_default_input ();
+ else if (string_strcasecmp (argv[i], "title") == 0)
+ gui_bar_create_default_title ();
+ else if (string_strcasecmp (argv[i], "status") == 0)
+ gui_bar_create_default_status ();
+ else if (string_strcasecmp (argv[i], "nicklist") == 0)
+ gui_bar_create_default_nicklist ();
+ }
+ }
+ else
+ gui_bar_create_default ();
return WEECHAT_RC_OK;
}
@@ -4568,7 +4583,7 @@ command_init ()
N_("list|listfull|listitems"
" || add <name> <type>[,<cond1>[,<cond2>...]] <position> "
"<size> <separator> <item1>[,<item2>...]"
- " || default"
+ " || default [input|title|status|nicklist]"
" || del <name>|-all"
" || set <name> <option> <value>"
" || hide|show|toggle <name>"
@@ -4593,7 +4608,8 @@ command_init ()
"means no separator\n"
" item1,...: items for this bar (items can be separated "
"by comma (space between items) or \"+\" (glued items))\n"
- " default: create default bars\n"
+ " default: create a default bar (all default bars "
+ "if no bar name is given)\n"
" del: delete a bar (or all bars with -all)\n"
" set: set a value for a bar property\n"
" option: option to change (for options list, look "
@@ -4624,7 +4640,7 @@ command_init ()
" || listfull"
" || listitems"
" || add %(bars_names) root|window bottom|top|left|right"
- " || default"
+ " || default input|title|status|nicklist|%*"
" || del %(bars_names)|-all"
" || set %(bars_names) %(bars_options)"
" || hide %(bars_names)"
diff --git a/src/gui/gui-bar.h b/src/gui/gui-bar.h
index 2467508bc..ff375b932 100644
--- a/src/gui/gui-bar.h
+++ b/src/gui/gui-bar.h
@@ -142,6 +142,9 @@ extern struct t_gui_bar *gui_bar_new (const char *name,
const char *items);
extern void gui_bar_use_temp_bars ();
extern void gui_bar_create_default_input ();
+extern void gui_bar_create_default_title ();
+extern void gui_bar_create_default_status ();
+extern void gui_bar_create_default_nicklist ();
extern void gui_bar_create_default ();
extern void gui_bar_update (const char *name);
extern int gui_bar_scroll (struct t_gui_bar *bar, struct t_gui_buffer *buffer,