linuxOS_AP05/debian/test/usr/share/help/fr/zenity/notification.page
2025-09-26 09:40:02 +08:00

84 lines
3.3 KiB
XML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="notification" xml:lang="fr">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Utiliser l'option <cmd>--notification</cmd>.</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Christophe Bliard</mal:name>
<mal:email>cbliard@gmail.com</mal:email>
<mal:years>2005</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Vincent Untz</mal:name>
<mal:email>vuntz@gnome.org</mal:email>
<mal:years>2005</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Claude Paroz</mal:name>
<mal:email>claude@2xlibre.net</mal:email>
<mal:years>2009</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Bruno Brouard</mal:name>
<mal:email>annoa.b@gmail.com</mal:email>
<mal:years>2011</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Mickael Albertus</mal:name>
<mal:email>mickael.albertus@gmail.com</mal:email>
<mal:years>2012</mal:years>
</mal:credit>
</info>
<title>Icône de notification</title>
<p>Utilisez l'option <cmd>--notification</cmd> pour créer une icône de notification.</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>texte</var></title>
<p>Spécifier le texte affiché dans la zone de notification.</p>
</item>
<item>
<title><cmd>--listen</cmd>=icon: « <var>texte</var> », message: « <var>texte</var> », tooltip: « <var>texte</var> », visible: « <var>texte</var> »,</title>
<p>Attend une commande sur l'entrée standard. Au moins une commande doit être précisée. Les commandes sont séparées par des virgules. Une commande doit être suivie d'un double-point et d'une valeur.</p>
<note style="tip">
<p>La commande <cmd>icon</cmd> accepte aussi quatre valeurs spéciales de noms d'icônes qui sont <var>error</var> (erreur), <var>info</var>, <var>question</var> et <var>warning</var>.</p>
</note>
</item>
</terms>
<p>Le script d'exemple suivant montre comment créer une icône de notification :</p>
<code>
#!/bin/sh
zenity --notification\
--window-icon="info" \
--text="Mise à jour du système nécessaire !"
</code>
<figure>
<title>Exemple d'icône de notification</title>
<desc>Exemple d'icône de notification <app>Zenity</app></desc>
<media type="image" mime="image/png" src="figures/zenity-notification-screenshot.png"/>
</figure>
<p>Le script d'exemple suivant montre comment créer une icône de notification avec <cmd>--listen</cmd> :</p>
<code>
#!/bin/sh
cat &lt;&lt;EOH| zenity --notification --listen
message: ceci est le texte du message
EOH
</code>
<figure>
<title>Exemple d'icône de notification avec <cmd>--listen</cmd></title>
<desc>Exemple d'icône de notification <app>Zenity</app> avec <cmd>--listen</cmd></desc>
<media type="image" mime="image/png" src="figures/zenity-notification-listen-screenshot.png"/>
</figure>
</page>