Blame platform-overview/sv/tour-glade.page

Packit 1470ea
Packit 1470ea
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="tour-glade" xml:lang="sv">
Packit 1470ea
Packit 1470ea
  <info>
Packit 1470ea
    <link type="next" xref="tour-gjs"/>
Packit 1470ea
    <revision version="0.1" date="2017-09-16" status="stub"/>
Packit 1470ea
Packit 1470ea
    <credit type="author copyright">
Packit 1470ea
      <name>Ekaterina Gerasimova</name>
Packit 1470ea
      <email its:translate="no">kittykat3756@gmail.com</email>
Packit 1470ea
      <years>2013</years>
Packit 1470ea
    </credit>
Packit 1470ea
    <credit type="author copyright">
Packit 1470ea
      <name>Gordon Hill</name>
Packit 1470ea
      <email its:translate="no">caseyweederman@gmail.com</email>
Packit 1470ea
      <years>2013</years>
Packit 1470ea
    </credit>
Packit 1470ea
Packit 1470ea
    <include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>
Packit 1470ea
Packit 1470ea
    <desc>Use Glade to generate a UI file.</desc>
Packit 1470ea
  </info>
Packit 1470ea
Packit 1470ea
  <title>Create a user interface</title>
Packit 1470ea
  <links type="prevnext" style="top"/>
Packit 1470ea
  <links type="series" style="floatend">
Packit 1470ea
    <title>Get started with GNOME</title>
Packit 1470ea
  </links>
Packit 1470ea
Packit 1470ea
  

Use <link href="http://glade.gnome.org/">Glade</link>, the UI editor

Packit 1470ea
  for GNOME to create a user interface. Glade produces XML files that describe
Packit 1470ea
  attributes of an application.

Packit 1470ea
Packit 1470ea
  

When creating a UI file using Glade, the <gui>ID</gui> that you

Packit 1470ea
  specify in Glade is the ID that you will later need to use to get the
Packit 1470ea
  object from the UI file.

Packit 1470ea
Packit 1470ea
  <example>
Packit 1470ea
    

Create a new window, then set <gui>ID</gui> to window1

Packit 1470ea
    and <gui>Title</gui> to Hello World:

Packit 1470ea
    <media type="image" src="media/glade-set-values.png">
Packit 1470ea
      

Screenshot of value attribution in Glade.

Packit 1470ea
    </media>
Packit 1470ea
    

Save the file with <guiseq><gui>File</gui><gui>Save As</gui></guiseq>

Packit 1470ea
    and name it <file>helloworld.glade</file>.

Packit 1470ea
  </example>
Packit 1470ea
  <links type="prevnext"/>
Packit 1470ea
</page>