<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="tour-application" xml:lang="de">
<info>
<link type="next" xref="tour-summary"/>
<revision version="0.1" date="2013-06-17" status="stub"/>
<credit type="author copyright">
<name>Ekaterina Gerasimova</name>
<email its:translate="no">kittykat3756@gmail.com</email>
<years>2013</years>
</credit>
<credit type="author copyright">
<name>Gordon Hill</name>
<email its:translate="no">caseyweederman@gmail.com</email>
<years>2013</years>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>
<desc>Beenden Sie die Anwendung und führen Sie das Skript aus.</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Mario Blättermann</mal:name>
<mal:email>mario.blaettermann@gmail.com</mal:email>
<mal:years>2009-2012, 2016</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Christian Kirbach</mal:name>
<mal:email>christian.kirbach@gmail.com</mal:email>
<mal:years>2011, 2012, 2015, 2017, 2018</mal:years>
</mal:credit>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Aljosha Papsch</mal:name>
<mal:email>al@rpapsch.de</mal:email>
<mal:years>2012</mal:years>
</mal:credit>
</info>
<title>Ausführen Ihrer Anwendung</title>
<links type="prevnext" style="top"/>
<links type="series" style="floatend">
<title>Erste Schritte mit GNOME</title>
</links>
<example>
<p>Erstellen Sie das neue Objekt <code>app</code> und rufen Sie die Methode <code>run</code> auf, um die Anwendung auszuführen:</p>
<code>
let app = new HelloWorld();
app.application.run(ARGV);
</code>
<p>Speichern Sie das Skript unter <file>helloworld.js</file>, führen Sie <cmd>chmod +x helloworld.js</cmd> aus, um es als ausführbar zu markieren, und führen Sie es mit <cmd>./helloworld.js</cmd> aus.</p>
</example>
<media type="image" src="media/glade-result.png">
<p>Bildschirmfoto eines einfachen Fensters.</p>
</media>
<p>Dieses Fenster wird aus einer <app>Glade</app>-Datei erzeugt und gegen <app>Gtk</app>-Events gelinkt. Sie haben nun eine vollständig funktionierende Gtk-Anwendung!</p>
<links type="prevnext"/>
</page>