<?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" lang="sl">

  <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>

    <license xmlns="http://projectmallard.org/1.0/" href="http://creativecommons.org/licenses/by-sa/3.0/us/">
<p>This work is licensed under a
<link href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons
Attribution-Share Alike 3.0 United States License</link>.</p>
<p>As a special exception, the copyright holders give you permission to copy,
modify, and distribute the example code contained in this document under the
terms of your choosing, without restriction.</p>
</license>

    <desc>Finish the application and run the script.</desc>
  </info>

  <title>Run your application</title>
  <links type="prevnext" style="top"/>
  <links type="series" style="floatend">
    <title>Get started with GNOME</title>
  </links>

  <example>
    <p>Make the new object <code>app</code> and call the method <code>run</code>
    to run the application:</p>
    <code>
let app = new HelloWorld();
app.application.run(ARGV);
</code>

    <p>Save the script as <file>helloworld.js</file>, run
    <cmd>chmod +x helloworld.js</cmd> to mark it executable, and run it with
    <cmd>./helloworld.js</cmd>.</p>
  </example>

  <media type="image" src="media/glade-result.png">
    <p>Screenshot of a basic window.</p>
  </media>
  <p>This window is generated from the <app>Glade</app> file and linked to
  <app>Gtk</app> events. You now have a fully functional Gtk application!</p>

  <links type="prevnext"/>
</page>
