/usr/share/help/fr/gnome-devel-demos/beginner.js.page is in gnome-devel-docs 3.8.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | <?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" style="task" id="beginner.js" xml:lang="fr">
<info>
<link type="guide" xref="js#code-samples"/>
<revision version="0.2" date="2012-06-10" status="draft"/>
<credit type="author copyright">
<name>Susanna Huhtanen</name>
<email>ihmis.suski@gmail.com</email>
<years>2012</years>
</credit>
<credit type="editor">
<name>Marta Maria Casetti</name>
<email>mmcasettii@gmail.com</email>
<years>2013</years>
</credit>
<desc>A beginner's guide to writing GNOME applications in JavaScript, including code samples and practice exercises.</desc>
</info>
<title>Tutorial for beginners and code samples</title>
<synopsis>
<p>JavaScript is one of the most popular programming languages on the web. It's not just for the web, though. If you have even a basic understanding of JavaScript, you can write full-fledged applications for GNOME. <link href="https://live.gnome.org/GnomeDocuments">GNOME Documents</link> is written in JavaScript, and so is <link href="https://live.gnome.org/GnomeShell/Tour">GNOME Shell</link>, the most basic part of GNOME.</p>
<note style="tip"><p>GNOME Shell is what you see when you click on "Activities" in the top-left corner of your screen. It also controls the clock and the rest of the top panel. Besides showing how you to write GNOME applications, these tutorials will also show you how to use JavaScript to write GNOME Shell extensions, which give it new features or change the way it does things.</p></note>
</synopsis>
<section id="getting-started">
<title>Getting Started</title>
<p>These tutorials are designed for people who already know how to write in JavaScript, and who have GNOME installed on their computers already, but who are new to developing GNOME applications. If you don't already know JavaScript, or if you need help getting GNOME set up, take a look at these resources first:</p>
<steps>
<item><p><link href="http://eloquentjavascript.net/contents.html">Eloquent JavaScript</link> is a free, Creative Commons-licensed book, which explains the basics of JavaScript programming. Since you won't be writing JavaScript for the web, you only need to read up to chapter 10 or so.</p></item>
<item><p><link href="http://www.gnome.org/getting-gnome/">Download GNOME</link> as part of a distribution, like Fedora, openSUSE, or Ubuntu. Each distribution has its own instructions for how to get GNOME.</p></item>
<item><p><link xref="set-up-gedit.js">Set up gedit</link> for writing applications. GNOME's text editor, gedit, is sometimes just called "text editor".</p></item>
</steps>
</section>
<section id="tutorials">
<title>Tutoriels</title>
</section>
<section id="samples">
<title>Exemples de code</title>
<p>These samples show how to use widgets in your GNOME applications. Each one demonstrates a complete application which showcases the featured widget. At the end of each sample, you will find links to more detailed reference material.</p>
<p>Pour lancer les exemples de code :</p>
<steps>
<item><p>Copiez et collez le code dans <var>nomdufichier</var>.js</p></item>
<item><p>Saisissez dans le terminal :</p>
<screen>gjs <var>nomdufichier</var>.js</screen></item>
</steps>
<section id="windows" style="2column"><title>Fenêtres</title>
</section>
<section id="display-widgets" style="2column"><title>Affichage d'éléments graphiques</title>
</section>
<section id="buttons" style="2column"><title>Boutons et bascules</title>
</section>
<section id="entry" style="2column"><title>Entrée de données numériques et de texte</title>
</section>
<section id="multiline" style="2column"><title>Éditeur de texte multiligne</title>
</section>
<section id="menu-combo-toolbar" style="2column"><title>Menu, boîte combinée et éléments graphiques de barre d'outils</title>
</section>
<section id="treeview" style="2column"><title>Élément graphique arborescent</title>
</section>
<section id="selectors"><title>Sélecteurs</title>
<section id="file-selectors"><title>Sélecteurs de fichiers</title>
</section>
<section id="font-selectors"><title>Sélecteurs de polices</title>
</section>
<section id="color-selectors"><title>Sélecteurs de couleurs</title>
</section>
</section>
<section id="layout" style="2column"><title>Conteneurs d'agencement</title>
</section>
<section id="ornaments" style="2column"><title>Décorations</title>
</section>
<section id="scrolling" style="2column"><title>Barre de défilement</title>
</section>
<section id="miscellaneous" style="2column"><title>Divers</title>
</section>
</section>
<section id="exercises">
<title>Exercices</title>
</section>
</page>
|