]> git.llucax.com Git - personal/documentos.git/blob - curso_gtk/clase2/ejemplo.glade
Agregar material del curso de GTK+ nunca dado
[personal/documentos.git] / curso_gtk / clase2 / ejemplo.glade
1 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
2 <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
3
4 <glade-interface>
5
6 <widget class="GtkWindow" id="ventana">
7   <property name="visible">True</property>
8   <property name="title" translatable="yes">Ejemplo de Glade</property>
9   <property name="type">GTK_WINDOW_TOPLEVEL</property>
10   <property name="window_position">GTK_WIN_POS_NONE</property>
11   <property name="modal">False</property>
12   <property name="resizable">True</property>
13   <property name="destroy_with_parent">False</property>
14   <property name="decorated">True</property>
15   <property name="skip_taskbar_hint">False</property>
16   <property name="skip_pager_hint">False</property>
17   <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
18   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
19   <signal name="destroy" handler="on_ventana_destroy"/>
20
21   <child>
22     <widget class="GtkHBox" id="hbox">
23       <property name="border_width">5</property>
24       <property name="visible">True</property>
25       <property name="homogeneous">False</property>
26       <property name="spacing">5</property>
27
28       <child>
29         <widget class="GtkEntry" id="entrada">
30           <property name="visible">True</property>
31           <property name="can_focus">True</property>
32           <property name="editable">True</property>
33           <property name="visibility">True</property>
34           <property name="max_length">0</property>
35           <property name="text" translatable="yes"></property>
36           <property name="has_frame">True</property>
37           <property name="invisible_char">*</property>
38           <property name="activates_default">False</property>
39         </widget>
40         <packing>
41           <property name="padding">0</property>
42           <property name="expand">True</property>
43           <property name="fill">True</property>
44         </packing>
45       </child>
46
47       <child>
48         <widget class="GtkButton" id="boton">
49           <property name="visible">True</property>
50           <property name="can_default">True</property>
51           <property name="has_default">True</property>
52           <property name="can_focus">True</property>
53           <property name="label">gtk-ok</property>
54           <property name="use_stock">True</property>
55           <property name="relief">GTK_RELIEF_NORMAL</property>
56           <property name="focus_on_click">True</property>
57           <signal name="clicked" handler="on_boton_clicked"/>
58         </widget>
59         <packing>
60           <property name="padding">0</property>
61           <property name="expand">False</property>
62           <property name="fill">False</property>
63         </packing>
64       </child>
65     </widget>
66   </child>
67 </widget>
68
69 </glade-interface>