1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <requires lib=
"gtk+" version=
"2.16"/>
4 <!-- interface-naming-policy toplevel-contextual -->
5 <object class=
"GtkWindow" id=
"window1">
7 <object class=
"GtkTable" id=
"button_panel">
8 <property name=
"visible">True
</property>
9 <property name=
"n_rows">4</property>
10 <property name=
"n_columns">6</property>
11 <property name=
"homogeneous">True
</property>
13 <object class=
"GtkButton" id=
"calc_4_button">
14 <property name=
"label">4</property>
15 <property name=
"visible">True
</property>
16 <property name=
"can_focus">True
</property>
17 <property name=
"receives_default">False
</property>
18 <property name=
"use_underline">True
</property>
19 <property name=
"focus_on_click">False
</property>
20 <signal name=
"clicked" handler=
"digit_cb"/>
23 <property name=
"top_attach">1</property>
24 <property name=
"bottom_attach">2</property>
25 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
26 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
30 <object class=
"GtkButton" id=
"calc_7_button">
31 <property name=
"label">7</property>
32 <property name=
"visible">True
</property>
33 <property name=
"can_focus">True
</property>
34 <property name=
"receives_default">False
</property>
35 <property name=
"use_underline">True
</property>
36 <property name=
"focus_on_click">False
</property>
37 <signal name=
"clicked" handler=
"digit_cb"/>
40 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
41 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
45 <object class=
"GtkButton" id=
"calc_8_button">
46 <property name=
"label">8</property>
47 <property name=
"visible">True
</property>
48 <property name=
"can_focus">True
</property>
49 <property name=
"receives_default">False
</property>
50 <property name=
"use_underline">True
</property>
51 <property name=
"focus_on_click">False
</property>
52 <signal name=
"clicked" handler=
"digit_cb"/>
55 <property name=
"left_attach">1</property>
56 <property name=
"right_attach">2</property>
57 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
58 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
62 <object class=
"GtkButton" id=
"calc_9_button">
63 <property name=
"label">9</property>
64 <property name=
"visible">True
</property>
65 <property name=
"can_focus">True
</property>
66 <property name=
"receives_default">False
</property>
67 <property name=
"use_underline">True
</property>
68 <property name=
"focus_on_click">False
</property>
69 <signal name=
"clicked" handler=
"digit_cb"/>
72 <property name=
"left_attach">2</property>
73 <property name=
"right_attach">3</property>
74 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
75 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
79 <object class=
"GtkButton" id=
"calc_5_button">
80 <property name=
"label">5</property>
81 <property name=
"visible">True
</property>
82 <property name=
"can_focus">True
</property>
83 <property name=
"receives_default">False
</property>
84 <property name=
"use_underline">True
</property>
85 <property name=
"focus_on_click">False
</property>
86 <signal name=
"clicked" handler=
"digit_cb"/>
89 <property name=
"left_attach">1</property>
90 <property name=
"right_attach">2</property>
91 <property name=
"top_attach">1</property>
92 <property name=
"bottom_attach">2</property>
93 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
94 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
98 <object class=
"GtkButton" id=
"calc_6_button">
99 <property name=
"label">6</property>
100 <property name=
"visible">True
</property>
101 <property name=
"can_focus">True
</property>
102 <property name=
"receives_default">False
</property>
103 <property name=
"use_underline">True
</property>
104 <property name=
"focus_on_click">False
</property>
105 <signal name=
"clicked" handler=
"digit_cb"/>
108 <property name=
"left_attach">2</property>
109 <property name=
"right_attach">3</property>
110 <property name=
"top_attach">1</property>
111 <property name=
"bottom_attach">2</property>
112 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
113 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
117 <object class=
"GtkButton" id=
"calc_divide_button">
118 <property name=
"label">÷
</property>
119 <property name=
"visible">True
</property>
120 <property name=
"can_focus">True
</property>
121 <property name=
"receives_default">False
</property>
122 <property name=
"use_underline">True
</property>
123 <property name=
"focus_on_click">False
</property>
124 <signal name=
"clicked" handler=
"button_cb"/>
127 <property name=
"left_attach">3</property>
128 <property name=
"right_attach">4</property>
129 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
130 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
134 <object class=
"GtkButton" id=
"calc_1_button">
135 <property name=
"label">1</property>
136 <property name=
"visible">True
</property>
137 <property name=
"can_focus">True
</property>
138 <property name=
"receives_default">False
</property>
139 <property name=
"use_underline">True
</property>
140 <property name=
"focus_on_click">False
</property>
141 <signal name=
"clicked" handler=
"digit_cb"/>
144 <property name=
"top_attach">2</property>
145 <property name=
"bottom_attach">3</property>
146 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
147 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
151 <object class=
"GtkButton" id=
"calc_2_button">
152 <property name=
"label">2</property>
153 <property name=
"visible">True
</property>
154 <property name=
"can_focus">True
</property>
155 <property name=
"receives_default">False
</property>
156 <property name=
"use_underline">True
</property>
157 <property name=
"focus_on_click">False
</property>
158 <signal name=
"clicked" handler=
"digit_cb"/>
161 <property name=
"left_attach">1</property>
162 <property name=
"right_attach">2</property>
163 <property name=
"top_attach">2</property>
164 <property name=
"bottom_attach">3</property>
165 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
166 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
170 <object class=
"GtkButton" id=
"calc_0_button">
171 <property name=
"label">0</property>
172 <property name=
"width_request">50</property>
173 <property name=
"visible">True
</property>
174 <property name=
"can_focus">True
</property>
175 <property name=
"receives_default">False
</property>
176 <property name=
"use_underline">True
</property>
177 <property name=
"focus_on_click">False
</property>
178 <signal name=
"clicked" handler=
"digit_cb"/>
181 <property name=
"top_attach">3</property>
182 <property name=
"bottom_attach">4</property>
183 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
184 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
188 <object class=
"GtkButton" id=
"calc_numeric_point_button">
189 <property name=
"label" comments=
"Label is set in gtk.c to comply with LC flags">.
</property>
190 <property name=
"visible">True
</property>
191 <property name=
"can_focus">True
</property>
192 <property name=
"receives_default">False
</property>
193 <property name=
"use_underline">True
</property>
194 <property name=
"focus_on_click">False
</property>
195 <signal name=
"clicked" handler=
"numeric_point_cb"/>
198 <property name=
"left_attach">1</property>
199 <property name=
"right_attach">2</property>
200 <property name=
"top_attach">3</property>
201 <property name=
"bottom_attach">4</property>
202 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
203 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
207 <object class=
"GtkButton" id=
"calc_percentage_button">
208 <property name=
"label">%
</property>
209 <property name=
"visible">True
</property>
210 <property name=
"can_focus">True
</property>
211 <property name=
"receives_default">True
</property>
212 <property name=
"use_underline">True
</property>
213 <property name=
"focus_on_click">False
</property>
214 <signal name=
"clicked" handler=
"button_cb"/>
217 <property name=
"left_attach">2</property>
218 <property name=
"right_attach">3</property>
219 <property name=
"top_attach">3</property>
220 <property name=
"bottom_attach">4</property>
221 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
222 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
226 <object class=
"GtkButton" id=
"calc_3_button">
227 <property name=
"label">3</property>
228 <property name=
"visible">True
</property>
229 <property name=
"can_focus">True
</property>
230 <property name=
"receives_default">False
</property>
231 <property name=
"use_underline">True
</property>
232 <property name=
"focus_on_click">False
</property>
233 <signal name=
"clicked" handler=
"digit_cb"/>
236 <property name=
"left_attach">2</property>
237 <property name=
"right_attach">3</property>
238 <property name=
"top_attach">2</property>
239 <property name=
"bottom_attach">3</property>
240 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
241 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
245 <object class=
"GtkButton" id=
"calc_multiply_button">
246 <property name=
"label">×
</property>
247 <property name=
"visible">True
</property>
248 <property name=
"can_focus">True
</property>
249 <property name=
"receives_default">False
</property>
250 <property name=
"use_underline">True
</property>
251 <property name=
"focus_on_click">False
</property>
252 <signal name=
"clicked" handler=
"button_cb"/>
255 <property name=
"left_attach">3</property>
256 <property name=
"right_attach">4</property>
257 <property name=
"top_attach">1</property>
258 <property name=
"bottom_attach">2</property>
259 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
260 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
264 <object class=
"GtkButton" id=
"calc_subtract_button">
265 <property name=
"label">−
</property>
266 <property name=
"visible">True
</property>
267 <property name=
"can_focus">True
</property>
268 <property name=
"receives_default">False
</property>
269 <property name=
"use_underline">True
</property>
270 <property name=
"focus_on_click">False
</property>
271 <signal name=
"clicked" handler=
"subtract_cb"/>
274 <property name=
"left_attach">3</property>
275 <property name=
"right_attach">4</property>
276 <property name=
"top_attach">2</property>
277 <property name=
"bottom_attach">3</property>
278 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
279 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
283 <object class=
"GtkButton" id=
"calc_add_button">
284 <property name=
"label">+
</property>
285 <property name=
"visible">True
</property>
286 <property name=
"can_focus">True
</property>
287 <property name=
"receives_default">False
</property>
288 <property name=
"use_underline">True
</property>
289 <property name=
"focus_on_click">False
</property>
290 <signal name=
"clicked" handler=
"button_cb"/>
293 <property name=
"left_attach">3</property>
294 <property name=
"right_attach">4</property>
295 <property name=
"top_attach">3</property>
296 <property name=
"bottom_attach">4</property>
297 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
298 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
302 <object class=
"GtkButton" id=
"calc_result_button">
303 <property name=
"label" translatable=
"yes" comments=
"Label on the solve button (clicking this solves the displayed calculation)">=
</property>
304 <property name=
"visible">True
</property>
305 <property name=
"can_focus">True
</property>
306 <property name=
"receives_default">False
</property>
307 <property name=
"use_underline">True
</property>
308 <property name=
"focus_on_click">False
</property>
309 <signal name=
"clicked" handler=
"solve_cb"/>
312 <property name=
"left_attach">4</property>
313 <property name=
"right_attach">6</property>
314 <property name=
"top_attach">3</property>
315 <property name=
"bottom_attach">4</property>
316 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
317 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
321 <object class=
"GtkButton" id=
"calc_start_group_button">
322 <property name=
"label">(
</property>
323 <property name=
"visible">True
</property>
324 <property name=
"can_focus">True
</property>
325 <property name=
"receives_default">True
</property>
326 <property name=
"use_underline">True
</property>
327 <property name=
"focus_on_click">False
</property>
328 <signal name=
"clicked" handler=
"button_cb"/>
331 <property name=
"left_attach">4</property>
332 <property name=
"right_attach">5</property>
333 <property name=
"top_attach">1</property>
334 <property name=
"bottom_attach">2</property>
335 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
336 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
340 <object class=
"GtkButton" id=
"calc_end_group_button">
341 <property name=
"label">)
</property>
342 <property name=
"visible">True
</property>
343 <property name=
"can_focus">True
</property>
344 <property name=
"receives_default">True
</property>
345 <property name=
"use_underline">True
</property>
346 <property name=
"focus_on_click">False
</property>
347 <signal name=
"clicked" handler=
"button_cb"/>
350 <property name=
"left_attach">5</property>
351 <property name=
"right_attach">6</property>
352 <property name=
"top_attach">1</property>
353 <property name=
"bottom_attach">2</property>
354 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
355 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
359 <object class=
"GtkButton" id=
"calc_clear_button">
360 <property name=
"visible">True
</property>
361 <property name=
"can_focus">True
</property>
362 <property name=
"receives_default">True
</property>
363 <property name=
"use_underline">True
</property>
364 <property name=
"focus_on_click">False
</property>
365 <signal name=
"clicked" handler=
"clear_cb"/>
367 <object class=
"GtkImage" id=
"image2">
368 <property name=
"visible">True
</property>
369 <property name=
"stock">gtk-clear
</property>
374 <property name=
"left_attach">5</property>
375 <property name=
"right_attach">6</property>
376 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
377 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
381 <object class=
"GtkButton" id=
"calc_square_root_button">
382 <property name=
"label">√
</property>
383 <property name=
"visible">True
</property>
384 <property name=
"can_focus">True
</property>
385 <property name=
"receives_default">True
</property>
386 <property name=
"use_underline">True
</property>
387 <property name=
"focus_on_click">False
</property>
388 <signal name=
"clicked" handler=
"button_cb"/>
391 <property name=
"left_attach">5</property>
392 <property name=
"right_attach">6</property>
393 <property name=
"top_attach">2</property>
394 <property name=
"bottom_attach">3</property>
395 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
396 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
400 <object class=
"GtkButton" id=
"calc_x_squared_button">
401 <property name=
"visible">True
</property>
402 <property name=
"can_focus">True
</property>
403 <property name=
"receives_default">True
</property>
404 <property name=
"focus_on_click">False
</property>
405 <child internal-child=
"accessible">
406 <object class=
"AtkObject" id=
"calc_x_squared_button-atkobject">
407 <property name=
"AtkObject::accessible-name" translatable=
"yes" comments=
"Accessible name for the exponentiation (x to the power of y) button">Exponent
</property>
410 <signal name=
"clicked" handler=
"button_cb"/>
412 <object class=
"GtkLabel" id=
"x_squared_label">
413 <property name=
"visible">True
</property>
414 <property name=
"label"><i
>x
</i
><sup
><i
>2</i
></sup
></property>
415 <property name=
"use_markup">True
</property>
420 <property name=
"left_attach">4</property>
421 <property name=
"right_attach">5</property>
422 <property name=
"top_attach">2</property>
423 <property name=
"bottom_attach">3</property>
424 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
425 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
429 <object class=
"GtkButton" id=
"calc_undo_button">
430 <property name=
"visible">True
</property>
431 <property name=
"can_focus">True
</property>
432 <property name=
"receives_default">True
</property>
433 <property name=
"use_underline">True
</property>
434 <property name=
"focus_on_click">False
</property>
435 <signal name=
"clicked" handler=
"undo_cb"/>
437 <object class=
"GtkImage" id=
"image1">
438 <property name=
"visible">True
</property>
439 <property name=
"stock">gtk-undo
</property>
444 <property name=
"left_attach">4</property>
445 <property name=
"right_attach">5</property>
446 <property name=
"x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>
447 <property name=
"y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL
</property>