3 # Test of Glade 2 support.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles empty.glade"
9 cat <<EOF > empty.glade
14 tmpfiles
="$tmpfiles xg-gl-3.pot"
15 : ${XGETTEXT=xgettext}
16 ${XGETTEXT} -o xg-gl-3.pot empty.glade
2>/dev
/null
17 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 77; }
19 tmpfiles
="$tmpfiles asciitable.glade2"
20 cat <<EOF > asciitable.glade2
21 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
22 <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd" >
25 <widget class="GtkDialog" id="dialog">
26 <property name="visible">no</property>
27 <property name="title" translatable="yes">gedit: ASCII table</property>
28 <property name="type">GTK_WINDOW_TOPLEVEL</property>
29 <property name="modal">no</property>
30 <property name="allow_shrink">yes</property>
31 <property name="allow_grow">yes</property>
32 <property name="window-position">GTK_WIN_POS_NONE</property>
34 <child internal-child="vbox">
35 <widget class="GtkVBox" id="dialog-vbox1">
36 <property name="homogeneous">no</property>
37 <property name="spacing">8</property>
38 <property name="visible">yes</property>
40 <child internal-child="action_area">
41 <widget class="GtkHButtonBox" id="dialog-action_area1">
42 <property name="layout_style">GTK_BUTTONBOX_END</property>
43 <property name="spacing">8</property>
44 <property name="visible">yes</property>
47 <widget class="GtkButton" id="insert_char_button">
48 <property name="can_default">yes</property>
49 <property name="can_focus">yes</property>
50 <property name="label" translatable="yes">Insert char</property>
51 <property name="visible">yes</property>
56 <widget class="GtkButton" id="close_button">
57 <property name="can_default">yes</property>
58 <property name="can_focus">yes</property>
59 <property name="visible">yes</property>
60 <property name="label">gtk-close</property>
61 <property name="use_stock">yes</property>
62 <property name="use_underline">yes</property>
67 <widget class="GtkButton" id="help_button">
68 <property name="can_default">yes</property>
69 <property name="can_focus">yes</property>
70 <property name="visible">yes</property>
71 <property name="label">gtk-help</property>
72 <property name="use_stock">yes</property>
73 <property name="use_underline">yes</property>
78 <property name="padding">0</property>
79 <property name="expand">no</property>
80 <property name="fill">yes</property>
81 <property name="pack_type">GTK_PACK_END</property>
86 <widget class="GtkVBox" id="asciitable_dialog_content">
87 <property name="border_width">6</property>
88 <property name="homogeneous">no</property>
89 <property name="spacing">8</property>
90 <property name="visible">yes</property>
93 <widget class="GtkLabel" id="label1">
94 <property name="label" translatable="yes">If you wish to insert any of the characters in to the active
95 document, select the character and click the "Insert Char"
96 button or double click the character in the table.</property>
97 <property name="justify">GTK_JUSTIFY_LEFT</property>
98 <property name="wrap">no</property>
99 <property name="xalign">0.0</property>
100 <property name="yalign">0.5</property>
101 <property name="xpad">0</property>
102 <property name="ypad">0</property>
103 <property name="visible">yes</property>
106 <property name="padding">0</property>
107 <property name="expand">no</property>
108 <property name="fill">no</property>
113 <widget class="GtkScrolledWindow" id="scrolledwindow1">
114 <property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
115 <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
116 <property name="shadow_type">GTK_SHADOW_IN</property>
117 <property name="height-request">350</property>
118 <property name="visible">yes</property>
121 <widget class="GtkTreeView" id="ascii_table">
122 <property name="can_focus">yes</property>
123 <property name="headers-visible">yes</property>
124 <property name="visible">yes</property>
128 <child internal-child="hscrollbar">
129 <widget class="GtkHScrollbar" id="convertwidget1">
130 <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
131 <property name="visible">yes</property>
135 <child internal-child="vscrollbar">
136 <widget class="GtkVScrollbar" id="convertwidget2">
137 <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
138 <property name="visible">yes</property>
143 <property name="padding">0</property>
144 <property name="expand">yes</property>
145 <property name="fill">yes</property>
150 <property name="padding">0</property>
151 <property name="expand">yes</property>
152 <property name="fill">yes</property>
157 <property name="padding">4</property>
158 <property name="expand">yes</property>
159 <property name="fill">yes</property>
166 tmpfiles
="$tmpfiles xg-gl-3.tmp xg-gl-3.pot"
167 : ${XGETTEXT=xgettext}
168 ${XGETTEXT} -o xg-gl-3.tmp asciitable.glade2
169 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
170 grep -v 'POT-Creation-Date' < xg-gl-3.tmp
> xg-gl-3.pot
172 tmpfiles
="$tmpfiles xg-gl-3.ok"
173 cat <<\EOF
> xg-gl-3.ok
174 # SOME DESCRIPTIVE TITLE.
175 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
176 # This file is distributed under the same license as the PACKAGE package.
177 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
182 "Project-Id-Version: PACKAGE VERSION\n"
183 "Report-Msgid-Bugs-To: \n"
184 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
185 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
186 "Language-Team: LANGUAGE <LL@li.org>\n"
187 "MIME-Version: 1.0\n"
188 "Content-Type: text/plain; charset=CHARSET\n"
189 "Content-Transfer-Encoding: 8bit\n"
191 #: asciitable.glade2:7
192 msgid
"gedit: ASCII table"
195 #: asciitable.glade2:30
199 #: asciitable.glade2:74
201 "If you wish to insert any of the characters in to the active \n"
202 "document, select the character and click the \"Insert Char\" \n"
203 "button or double click the character in the table."
208 ${DIFF} xg-gl-3.ok xg-gl-3.pot