]> git.pld-linux.org Git - packages/aqbanking.git/blob - aqbanking-glade.patch
- outdated
[packages/aqbanking.git] / aqbanking-glade.patch
1 --- aqbanking-1.6.2/src/frontends/g2banking/callbacks.c.orig    1970-01-01 01:00:00.000000000 +0100
2 +++ aqbanking-1.6.2/src/frontends/g2banking/callbacks.c 2006-01-15 17:27:07.000000000 +0100
3 @@ -0,0 +1,10 @@
4 +#ifdef HAVE_CONFIG_H
5 +#  include <config.h>
6 +#endif
7 +
8 +#include <gtk/gtk.h>
9 +
10 +#include "callbacks.h"
11 +#include "interface.h"
12 +#include "support.h"
13 +
14 --- aqbanking-1.6.2/src/frontends/g2banking/callbacks.h.orig    1970-01-01 01:00:00.000000000 +0100
15 +++ aqbanking-1.6.2/src/frontends/g2banking/callbacks.h 2006-01-15 17:27:07.000000000 +0100
16 @@ -0,0 +1,2 @@
17 +#include <gtk/gtk.h>
18 +
19 --- aqbanking-1.6.2/src/frontends/g2banking/interface.c.orig    1970-01-01 01:00:00.000000000 +0100
20 +++ aqbanking-1.6.2/src/frontends/g2banking/interface.c 2006-01-15 17:27:07.000000000 +0100
21 @@ -0,0 +1,397 @@
22 +/*
23 + * DO NOT EDIT THIS FILE - it is generated by Glade.
24 + */
25 +
26 +#ifdef HAVE_CONFIG_H
27 +#  include <config.h>
28 +#endif
29 +
30 +#include <sys/types.h>
31 +#include <sys/stat.h>
32 +#include <unistd.h>
33 +#include <string.h>
34 +#include <stdio.h>
35 +
36 +#include <gdk/gdkkeysyms.h>
37 +#include <gtk/gtk.h>
38 +
39 +#include "callbacks.h"
40 +#include "interface.h"
41 +#include "support.h"
42 +
43 +#define GLADE_HOOKUP_OBJECT(component,widget,name) \
44 +  g_object_set_data_full (G_OBJECT (component), name, \
45 +    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
46 +
47 +#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
48 +  g_object_set_data (G_OBJECT (component), name, widget)
49 +
50 +GtkWidget*
51 +create_GConnectionDialog (void)
52 +{
53 +  GtkWidget *GConnectionDialog;
54 +  GtkWidget *dialog_vbox1;
55 +  GtkWidget *vbox1;
56 +  GtkWidget *vbox2;
57 +  GtkWidget *titleText;
58 +  GtkWidget *scrolledwindow1;
59 +  GtkWidget *logText;
60 +  GtkWidget *vbox3;
61 +  GtkWidget *table1;
62 +  GtkWidget *label3;
63 +  GtkWidget *progressBar;
64 +  GtkWidget *dialog_action_area1;
65 +  GtkWidget *closeButton;
66 +  GtkWidget *abortButton;
67 +
68 +  GConnectionDialog = gtk_dialog_new ();
69 +  gtk_window_set_title (GTK_WINDOW (GConnectionDialog), _("dialog1"));
70 +  gtk_window_set_type_hint (GTK_WINDOW (GConnectionDialog), GDK_WINDOW_TYPE_HINT_DIALOG);
71 +
72 +  dialog_vbox1 = GTK_DIALOG (GConnectionDialog)->vbox;
73 +  gtk_widget_show (dialog_vbox1);
74 +
75 +  vbox1 = gtk_vbox_new (FALSE, 0);
76 +  gtk_widget_show (vbox1);
77 +  gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
78 +
79 +  vbox2 = gtk_vbox_new (FALSE, 0);
80 +  gtk_widget_show (vbox2);
81 +  gtk_box_pack_start (GTK_BOX (vbox1), vbox2, TRUE, TRUE, 0);
82 +
83 +  titleText = gtk_label_new (_("--Text--"));
84 +  gtk_widget_show (titleText);
85 +  gtk_box_pack_start (GTK_BOX (vbox2), titleText, FALSE, TRUE, 0);
86 +  gtk_label_set_line_wrap (GTK_LABEL (titleText), TRUE);
87 +
88 +  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
89 +  gtk_widget_show (scrolledwindow1);
90 +  gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow1, TRUE, TRUE, 0);
91 +
92 +  logText = gtk_text_view_new ();
93 +  gtk_widget_show (logText);
94 +  gtk_container_add (GTK_CONTAINER (scrolledwindow1), logText);
95 +  gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (logText)), _("test"), -1);
96 +
97 +  vbox3 = gtk_vbox_new (FALSE, 0);
98 +  gtk_widget_show (vbox3);
99 +  gtk_box_pack_start (GTK_BOX (vbox1), vbox3, FALSE, TRUE, 0);
100 +
101 +  table1 = gtk_table_new (1, 2, FALSE);
102 +  gtk_widget_show (table1);
103 +  gtk_box_pack_start (GTK_BOX (vbox3), table1, TRUE, TRUE, 0);
104 +
105 +  label3 = gtk_label_new (_("Progress"));
106 +  gtk_widget_show (label3);
107 +  gtk_table_attach (GTK_TABLE (table1), label3, 0, 1, 0, 1,
108 +                    (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
109 +                    (GtkAttachOptions) (0), 0, 0);
110 +  gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);
111 +
112 +  progressBar = gtk_progress_bar_new ();
113 +  gtk_widget_show (progressBar);
114 +  gtk_table_attach (GTK_TABLE (table1), progressBar, 1, 2, 0, 1,
115 +                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
116 +                    (GtkAttachOptions) (GTK_SHRINK), 0, 0);
117 +
118 +  dialog_action_area1 = GTK_DIALOG (GConnectionDialog)->action_area;
119 +  gtk_widget_show (dialog_action_area1);
120 +  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
121 +
122 +  closeButton = gtk_button_new_from_stock ("gtk-close");
123 +  gtk_widget_show (closeButton);
124 +  gtk_dialog_add_action_widget (GTK_DIALOG (GConnectionDialog), closeButton, GTK_RESPONSE_CLOSE);
125 +  GTK_WIDGET_SET_FLAGS (closeButton, GTK_CAN_DEFAULT);
126 +
127 +  abortButton = gtk_button_new_from_stock ("gtk-cancel");
128 +  gtk_widget_show (abortButton);
129 +  gtk_dialog_add_action_widget (GTK_DIALOG (GConnectionDialog), abortButton, GTK_RESPONSE_CANCEL);
130 +  GTK_WIDGET_SET_FLAGS (abortButton, GTK_CAN_DEFAULT);
131 +
132 +  /* Store pointers to all widgets, for use by lookup_widget(). */
133 +  GLADE_HOOKUP_OBJECT_NO_REF (GConnectionDialog, GConnectionDialog, "GConnectionDialog");
134 +  GLADE_HOOKUP_OBJECT_NO_REF (GConnectionDialog, dialog_vbox1, "dialog_vbox1");
135 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, vbox1, "vbox1");
136 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, vbox2, "vbox2");
137 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, titleText, "titleText");
138 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, scrolledwindow1, "scrolledwindow1");
139 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, logText, "logText");
140 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, vbox3, "vbox3");
141 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, table1, "table1");
142 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, label3, "label3");
143 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, progressBar, "progressBar");
144 +  GLADE_HOOKUP_OBJECT_NO_REF (GConnectionDialog, dialog_action_area1, "dialog_action_area1");
145 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, closeButton, "closeButton");
146 +  GLADE_HOOKUP_OBJECT (GConnectionDialog, abortButton, "abortButton");
147 +
148 +  return GConnectionDialog;
149 +}
150 +
151 +GtkWidget*
152 +create_GSimpleBox (void)
153 +{
154 +  GtkWidget *GSimpleBox;
155 +  GtkWidget *textLabel;
156 +
157 +  GSimpleBox = gtk_window_new (GTK_WINDOW_TOPLEVEL);
158 +  gtk_window_set_title (GTK_WINDOW (GSimpleBox), _("Message"));
159 +  gtk_window_set_position (GTK_WINDOW (GSimpleBox), GTK_WIN_POS_CENTER_ON_PARENT);
160 +
161 +  textLabel = gtk_label_new (_("label4"));
162 +  gtk_widget_show (textLabel);
163 +  gtk_container_add (GTK_CONTAINER (GSimpleBox), textLabel);
164 +
165 +  /* Store pointers to all widgets, for use by lookup_widget(). */
166 +  GLADE_HOOKUP_OBJECT_NO_REF (GSimpleBox, GSimpleBox, "GSimpleBox");
167 +  GLADE_HOOKUP_OBJECT (GSimpleBox, textLabel, "textLabel");
168 +
169 +  return GSimpleBox;
170 +}
171 +
172 +GtkWidget*
173 +create_GJobView (void)
174 +{
175 +  GtkWidget *GJobView;
176 +  GtkWidget *hbox1;
177 +  GtkWidget *scrolledwindow2;
178 +  GtkWidget *jobListView;
179 +  GtkWidget *vbuttonbox1;
180 +  GtkWidget *dequeueButton;
181 +  GtkWidget *alignment2;
182 +  GtkWidget *hbox3;
183 +  GtkWidget *image2;
184 +  GtkWidget *label5;
185 +  GtkWidget *execButton;
186 +  GtkWidget *alignment1;
187 +  GtkWidget *hbox2;
188 +  GtkWidget *image1;
189 +  GtkWidget *label4;
190 +
191 +  GJobView = gtk_window_new (GTK_WINDOW_TOPLEVEL);
192 +  gtk_window_set_title (GTK_WINDOW (GJobView), _("Outbox"));
193 +  gtk_window_set_destroy_with_parent (GTK_WINDOW (GJobView), TRUE);
194 +
195 +  hbox1 = gtk_hbox_new (FALSE, 0);
196 +  gtk_widget_show (hbox1);
197 +  gtk_container_add (GTK_CONTAINER (GJobView), hbox1);
198 +
199 +  scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
200 +  gtk_widget_show (scrolledwindow2);
201 +  gtk_box_pack_start (GTK_BOX (hbox1), scrolledwindow2, TRUE, TRUE, 0);
202 +
203 +  jobListView = gtk_tree_view_new ();
204 +  gtk_widget_show (jobListView);
205 +  gtk_container_add (GTK_CONTAINER (scrolledwindow2), jobListView);
206 +  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (jobListView), TRUE);
207 +
208 +  vbuttonbox1 = gtk_vbutton_box_new ();
209 +  gtk_widget_show (vbuttonbox1);
210 +  gtk_box_pack_start (GTK_BOX (hbox1), vbuttonbox1, FALSE, FALSE, 0);
211 +  gtk_button_box_set_layout (GTK_BUTTON_BOX (vbuttonbox1), GTK_BUTTONBOX_START);
212 +
213 +  dequeueButton = gtk_button_new ();
214 +  gtk_widget_show (dequeueButton);
215 +  gtk_container_add (GTK_CONTAINER (vbuttonbox1), dequeueButton);
216 +  GTK_WIDGET_SET_FLAGS (dequeueButton, GTK_CAN_DEFAULT);
217 +
218 +  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
219 +  gtk_widget_show (alignment2);
220 +  gtk_container_add (GTK_CONTAINER (dequeueButton), alignment2);
221 +
222 +  hbox3 = gtk_hbox_new (FALSE, 2);
223 +  gtk_widget_show (hbox3);
224 +  gtk_container_add (GTK_CONTAINER (alignment2), hbox3);
225 +
226 +  image2 = gtk_image_new_from_stock ("gtk-delete", GTK_ICON_SIZE_BUTTON);
227 +  gtk_widget_show (image2);
228 +  gtk_box_pack_start (GTK_BOX (hbox3), image2, FALSE, FALSE, 0);
229 +
230 +  label5 = gtk_label_new_with_mnemonic (_("Dequeue"));
231 +  gtk_widget_show (label5);
232 +  gtk_box_pack_start (GTK_BOX (hbox3), label5, FALSE, FALSE, 0);
233 +
234 +  execButton = gtk_button_new ();
235 +  gtk_widget_show (execButton);
236 +  gtk_container_add (GTK_CONTAINER (vbuttonbox1), execButton);
237 +  GTK_WIDGET_SET_FLAGS (execButton, GTK_CAN_DEFAULT);
238 +
239 +  alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
240 +  gtk_widget_show (alignment1);
241 +  gtk_container_add (GTK_CONTAINER (execButton), alignment1);
242 +
243 +  hbox2 = gtk_hbox_new (FALSE, 2);
244 +  gtk_widget_show (hbox2);
245 +  gtk_container_add (GTK_CONTAINER (alignment1), hbox2);
246 +
247 +  image1 = gtk_image_new_from_stock ("gtk-execute", GTK_ICON_SIZE_BUTTON);
248 +  gtk_widget_show (image1);
249 +  gtk_box_pack_start (GTK_BOX (hbox2), image1, FALSE, FALSE, 0);
250 +
251 +  label4 = gtk_label_new_with_mnemonic (_("Execute"));
252 +  gtk_widget_show (label4);
253 +  gtk_box_pack_start (GTK_BOX (hbox2), label4, FALSE, FALSE, 0);
254 +
255 +  /* Store pointers to all widgets, for use by lookup_widget(). */
256 +  GLADE_HOOKUP_OBJECT_NO_REF (GJobView, GJobView, "GJobView");
257 +  GLADE_HOOKUP_OBJECT (GJobView, hbox1, "hbox1");
258 +  GLADE_HOOKUP_OBJECT (GJobView, scrolledwindow2, "scrolledwindow2");
259 +  GLADE_HOOKUP_OBJECT (GJobView, jobListView, "jobListView");
260 +  GLADE_HOOKUP_OBJECT (GJobView, vbuttonbox1, "vbuttonbox1");
261 +  GLADE_HOOKUP_OBJECT (GJobView, dequeueButton, "dequeueButton");
262 +  GLADE_HOOKUP_OBJECT (GJobView, alignment2, "alignment2");
263 +  GLADE_HOOKUP_OBJECT (GJobView, hbox3, "hbox3");
264 +  GLADE_HOOKUP_OBJECT (GJobView, image2, "image2");
265 +  GLADE_HOOKUP_OBJECT (GJobView, label5, "label5");
266 +  GLADE_HOOKUP_OBJECT (GJobView, execButton, "execButton");
267 +  GLADE_HOOKUP_OBJECT (GJobView, alignment1, "alignment1");
268 +  GLADE_HOOKUP_OBJECT (GJobView, hbox2, "hbox2");
269 +  GLADE_HOOKUP_OBJECT (GJobView, image1, "image1");
270 +  GLADE_HOOKUP_OBJECT (GJobView, label4, "label4");
271 +
272 +  return GJobView;
273 +}
274 +
275 +GtkWidget*
276 +create_GInputBox (void)
277 +{
278 +  GtkWidget *GInputBox;
279 +  GtkWidget *dialog_vbox2;
280 +  GtkWidget *vbox5;
281 +  GtkWidget *textLabel;
282 +  GtkWidget *table3;
283 +  GtkWidget *label9;
284 +  GtkWidget *confirmLabel;
285 +  GtkWidget *inputEntry;
286 +  GtkWidget *confirmEntry;
287 +  GtkWidget *dialog_action_area2;
288 +  GtkWidget *abortbutton;
289 +  GtkWidget *okButton;
290 +
291 +  GInputBox = gtk_dialog_new ();
292 +  gtk_window_set_title (GTK_WINDOW (GInputBox), _("Input"));
293 +  gtk_window_set_modal (GTK_WINDOW (GInputBox), TRUE);
294 +  gtk_window_set_type_hint (GTK_WINDOW (GInputBox), GDK_WINDOW_TYPE_HINT_DIALOG);
295 +
296 +  dialog_vbox2 = GTK_DIALOG (GInputBox)->vbox;
297 +  gtk_widget_show (dialog_vbox2);
298 +
299 +  vbox5 = gtk_vbox_new (FALSE, 0);
300 +  gtk_widget_show (vbox5);
301 +  gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox5, TRUE, TRUE, 0);
302 +
303 +  textLabel = gtk_label_new (_("label8"));
304 +  gtk_widget_show (textLabel);
305 +  gtk_box_pack_start (GTK_BOX (vbox5), textLabel, TRUE, TRUE, 0);
306 +
307 +  table3 = gtk_table_new (2, 2, FALSE);
308 +  gtk_widget_show (table3);
309 +  gtk_box_pack_start (GTK_BOX (vbox5), table3, FALSE, FALSE, 0);
310 +
311 +  label9 = gtk_label_new (_("Input"));
312 +  gtk_widget_show (label9);
313 +  gtk_table_attach (GTK_TABLE (table3), label9, 0, 1, 0, 1,
314 +                    (GtkAttachOptions) (GTK_FILL),
315 +                    (GtkAttachOptions) (0), 0, 0);
316 +  gtk_misc_set_alignment (GTK_MISC (label9), 0, 0.5);
317 +
318 +  confirmLabel = gtk_label_new (_("Confirm"));
319 +  gtk_table_attach (GTK_TABLE (table3), confirmLabel, 0, 1, 1, 2,
320 +                    (GtkAttachOptions) (GTK_FILL),
321 +                    (GtkAttachOptions) (0), 0, 0);
322 +  gtk_misc_set_alignment (GTK_MISC (confirmLabel), 0, 0.5);
323 +
324 +  inputEntry = gtk_entry_new ();
325 +  gtk_widget_show (inputEntry);
326 +  gtk_table_attach (GTK_TABLE (table3), inputEntry, 1, 2, 0, 1,
327 +                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
328 +                    (GtkAttachOptions) (0), 0, 0);
329 +
330 +  confirmEntry = gtk_entry_new ();
331 +  gtk_table_attach (GTK_TABLE (table3), confirmEntry, 1, 2, 1, 2,
332 +                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
333 +                    (GtkAttachOptions) (0), 0, 0);
334 +
335 +  dialog_action_area2 = GTK_DIALOG (GInputBox)->action_area;
336 +  gtk_widget_show (dialog_action_area2);
337 +  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
338 +
339 +  abortbutton = gtk_button_new_from_stock ("gtk-cancel");
340 +  gtk_widget_show (abortbutton);
341 +  gtk_dialog_add_action_widget (GTK_DIALOG (GInputBox), abortbutton, GTK_RESPONSE_CANCEL);
342 +  GTK_WIDGET_SET_FLAGS (abortbutton, GTK_CAN_DEFAULT);
343 +
344 +  okButton = gtk_button_new_from_stock ("gtk-ok");
345 +  gtk_widget_show (okButton);
346 +  gtk_dialog_add_action_widget (GTK_DIALOG (GInputBox), okButton, GTK_RESPONSE_OK);
347 +  GTK_WIDGET_SET_FLAGS (okButton, GTK_CAN_DEFAULT);
348 +
349 +  /* Store pointers to all widgets, for use by lookup_widget(). */
350 +  GLADE_HOOKUP_OBJECT_NO_REF (GInputBox, GInputBox, "GInputBox");
351 +  GLADE_HOOKUP_OBJECT_NO_REF (GInputBox, dialog_vbox2, "dialog_vbox2");
352 +  GLADE_HOOKUP_OBJECT (GInputBox, vbox5, "vbox5");
353 +  GLADE_HOOKUP_OBJECT (GInputBox, textLabel, "textLabel");
354 +  GLADE_HOOKUP_OBJECT (GInputBox, table3, "table3");
355 +  GLADE_HOOKUP_OBJECT (GInputBox, label9, "label9");
356 +  GLADE_HOOKUP_OBJECT (GInputBox, confirmLabel, "confirmLabel");
357 +  GLADE_HOOKUP_OBJECT (GInputBox, inputEntry, "inputEntry");
358 +  GLADE_HOOKUP_OBJECT (GInputBox, confirmEntry, "confirmEntry");
359 +  GLADE_HOOKUP_OBJECT_NO_REF (GInputBox, dialog_action_area2, "dialog_action_area2");
360 +  GLADE_HOOKUP_OBJECT (GInputBox, abortbutton, "abortbutton");
361 +  GLADE_HOOKUP_OBJECT (GInputBox, okButton, "okButton");
362 +
363 +  return GInputBox;
364 +}
365 +
366 +GtkWidget*
367 +create_GMessageBox (void)
368 +{
369 +  GtkWidget *GMessageBox;
370 +  GtkWidget *dialog_vbox3;
371 +  GtkWidget *textLabel;
372 +  GtkWidget *dialog_action_area3;
373 +  GtkWidget *button1;
374 +  GtkWidget *button2;
375 +  GtkWidget *button3;
376 +
377 +  GMessageBox = gtk_dialog_new ();
378 +  gtk_window_set_title (GTK_WINDOW (GMessageBox), _("Message"));
379 +  gtk_window_set_modal (GTK_WINDOW (GMessageBox), TRUE);
380 +  gtk_window_set_destroy_with_parent (GTK_WINDOW (GMessageBox), TRUE);
381 +  gtk_window_set_type_hint (GTK_WINDOW (GMessageBox), GDK_WINDOW_TYPE_HINT_DIALOG);
382 +
383 +  dialog_vbox3 = GTK_DIALOG (GMessageBox)->vbox;
384 +  gtk_widget_show (dialog_vbox3);
385 +
386 +  textLabel = gtk_label_new (_("label10"));
387 +  gtk_widget_show (textLabel);
388 +  gtk_box_pack_start (GTK_BOX (dialog_vbox3), textLabel, TRUE, TRUE, 0);
389 +
390 +  dialog_action_area3 = GTK_DIALOG (GMessageBox)->action_area;
391 +  gtk_widget_show (dialog_action_area3);
392 +  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END);
393 +
394 +  button1 = gtk_button_new_with_mnemonic (_("button1"));
395 +  gtk_widget_show (button1);
396 +  gtk_dialog_add_action_widget (GTK_DIALOG (GMessageBox), button1, 0);
397 +  GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);
398 +
399 +  button2 = gtk_button_new_with_mnemonic (_("button2"));
400 +  gtk_dialog_add_action_widget (GTK_DIALOG (GMessageBox), button2, 0);
401 +  GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
402 +
403 +  button3 = gtk_button_new_with_mnemonic (_("button3"));
404 +  gtk_dialog_add_action_widget (GTK_DIALOG (GMessageBox), button3, 0);
405 +  GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
406 +
407 +  /* Store pointers to all widgets, for use by lookup_widget(). */
408 +  GLADE_HOOKUP_OBJECT_NO_REF (GMessageBox, GMessageBox, "GMessageBox");
409 +  GLADE_HOOKUP_OBJECT_NO_REF (GMessageBox, dialog_vbox3, "dialog_vbox3");
410 +  GLADE_HOOKUP_OBJECT (GMessageBox, textLabel, "textLabel");
411 +  GLADE_HOOKUP_OBJECT_NO_REF (GMessageBox, dialog_action_area3, "dialog_action_area3");
412 +  GLADE_HOOKUP_OBJECT (GMessageBox, button1, "button1");
413 +  GLADE_HOOKUP_OBJECT (GMessageBox, button2, "button2");
414 +  GLADE_HOOKUP_OBJECT (GMessageBox, button3, "button3");
415 +
416 +  return GMessageBox;
417 +}
418 +
419 --- aqbanking-1.6.2/src/frontends/g2banking/interface.h.orig    1970-01-01 01:00:00.000000000 +0100
420 +++ aqbanking-1.6.2/src/frontends/g2banking/interface.h 2006-01-15 17:27:07.000000000 +0100
421 @@ -0,0 +1,9 @@
422 +/*
423 + * DO NOT EDIT THIS FILE - it is generated by Glade.
424 + */
425 +
426 +GtkWidget* create_GConnectionDialog (void);
427 +GtkWidget* create_GSimpleBox (void);
428 +GtkWidget* create_GJobView (void);
429 +GtkWidget* create_GInputBox (void);
430 +GtkWidget* create_GMessageBox (void);
431 --- aqbanking-1.6.2/src/frontends/g2banking/support.c.orig      1970-01-01 01:00:00.000000000 +0100
432 +++ aqbanking-1.6.2/src/frontends/g2banking/support.c   2006-01-15 17:27:07.000000000 +0100
433 @@ -0,0 +1,144 @@
434 +/*
435 + * DO NOT EDIT THIS FILE - it is generated by Glade.
436 + */
437 +
438 +#ifdef HAVE_CONFIG_H
439 +#  include <config.h>
440 +#endif
441 +
442 +#include <sys/types.h>
443 +#include <sys/stat.h>
444 +#include <unistd.h>
445 +#include <string.h>
446 +#include <stdio.h>
447 +
448 +#include <gtk/gtk.h>
449 +
450 +#include "support.h"
451 +
452 +GtkWidget*
453 +lookup_widget                          (GtkWidget       *widget,
454 +                                        const gchar     *widget_name)
455 +{
456 +  GtkWidget *parent, *found_widget;
457 +
458 +  for (;;)
459 +    {
460 +      if (GTK_IS_MENU (widget))
461 +        parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
462 +      else
463 +        parent = widget->parent;
464 +      if (!parent)
465 +        parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
466 +      if (parent == NULL)
467 +        break;
468 +      widget = parent;
469 +    }
470 +
471 +  found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
472 +                                                 widget_name);
473 +  if (!found_widget)
474 +    g_warning ("Widget not found: %s", widget_name);
475 +  return found_widget;
476 +}
477 +
478 +static GList *pixmaps_directories = NULL;
479 +
480 +/* Use this function to set the directory containing installed pixmaps. */
481 +void
482 +add_pixmap_directory                   (const gchar     *directory)
483 +{
484 +  pixmaps_directories = g_list_prepend (pixmaps_directories,
485 +                                        g_strdup (directory));
486 +}
487 +
488 +/* This is an internally used function to find pixmap files. */
489 +static gchar*
490 +find_pixmap_file                       (const gchar     *filename)
491 +{
492 +  GList *elem;
493 +
494 +  /* We step through each of the pixmaps directory to find it. */
495 +  elem = pixmaps_directories;
496 +  while (elem)
497 +    {
498 +      gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data,
499 +                                         G_DIR_SEPARATOR_S, filename);
500 +      if (g_file_test (pathname, G_FILE_TEST_EXISTS))
501 +        return pathname;
502 +      g_free (pathname);
503 +      elem = elem->next;
504 +    }
505 +  return NULL;
506 +}
507 +
508 +/* This is an internally used function to create pixmaps. */
509 +GtkWidget*
510 +create_pixmap                          (GtkWidget       *widget,
511 +                                        const gchar     *filename)
512 +{
513 +  gchar *pathname = NULL;
514 +  GtkWidget *pixmap;
515 +
516 +  if (!filename || !filename[0])
517 +      return gtk_image_new ();
518 +
519 +  pathname = find_pixmap_file (filename);
520 +
521 +  if (!pathname)
522 +    {
523 +      g_warning (_("Couldn't find pixmap file: %s"), filename);
524 +      return gtk_image_new ();
525 +    }
526 +
527 +  pixmap = gtk_image_new_from_file (pathname);
528 +  g_free (pathname);
529 +  return pixmap;
530 +}
531 +
532 +/* This is an internally used function to create pixmaps. */
533 +GdkPixbuf*
534 +create_pixbuf                          (const gchar     *filename)
535 +{
536 +  gchar *pathname = NULL;
537 +  GdkPixbuf *pixbuf;
538 +  GError *error = NULL;
539 +
540 +  if (!filename || !filename[0])
541 +      return NULL;
542 +
543 +  pathname = find_pixmap_file (filename);
544 +
545 +  if (!pathname)
546 +    {
547 +      g_warning (_("Couldn't find pixmap file: %s"), filename);
548 +      return NULL;
549 +    }
550 +
551 +  pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
552 +  if (!pixbuf)
553 +    {
554 +      fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
555 +               pathname, error->message);
556 +      g_error_free (error);
557 +    }
558 +  g_free (pathname);
559 +  return pixbuf;
560 +}
561 +
562 +/* This is used to set ATK action descriptions. */
563 +void
564 +glade_set_atk_action_description       (AtkAction       *action,
565 +                                        const gchar     *action_name,
566 +                                        const gchar     *description)
567 +{
568 +  gint n_actions, i;
569 +
570 +  n_actions = atk_action_get_n_actions (action);
571 +  for (i = 0; i < n_actions; i++)
572 +    {
573 +      if (!strcmp (atk_action_get_name (action, i), action_name))
574 +        atk_action_set_description (action, i, description);
575 +    }
576 +}
577 +
578 --- aqbanking-1.6.2/src/frontends/g2banking/support.h.orig      1970-01-01 01:00:00.000000000 +0100
579 +++ aqbanking-1.6.2/src/frontends/g2banking/support.h   2006-01-15 17:27:07.000000000 +0100
580 @@ -0,0 +1,69 @@
581 +/*
582 + * DO NOT EDIT THIS FILE - it is generated by Glade.
583 + */
584 +
585 +#ifdef HAVE_CONFIG_H
586 +#  include <config.h>
587 +#endif
588 +
589 +#include <gtk/gtk.h>
590 +
591 +/*
592 + * Standard gettext macros.
593 + */
594 +#ifdef ENABLE_NLS
595 +#  include <libintl.h>
596 +#  undef _
597 +#  define _(String) dgettext (PACKAGE, String)
598 +#  define Q_(String) g_strip_context ((String), gettext (String))
599 +#  ifdef gettext_noop
600 +#    define N_(String) gettext_noop (String)
601 +#  else
602 +#    define N_(String) (String)
603 +#  endif
604 +#else
605 +#  define textdomain(String) (String)
606 +#  define gettext(String) (String)
607 +#  define dgettext(Domain,Message) (Message)
608 +#  define dcgettext(Domain,Message,Type) (Message)
609 +#  define bindtextdomain(Domain,Directory) (Domain)
610 +#  define _(String) (String)
611 +#  define Q_(String) g_strip_context ((String), (String))
612 +#  define N_(String) (String)
613 +#endif
614 +
615 +
616 +/*
617 + * Public Functions.
618 + */
619 +
620 +/*
621 + * This function returns a widget in a component created by Glade.
622 + * Call it with the toplevel widget in the component (i.e. a window/dialog),
623 + * or alternatively any widget in the component, and the name of the widget
624 + * you want returned.
625 + */
626 +GtkWidget*  lookup_widget              (GtkWidget       *widget,
627 +                                        const gchar     *widget_name);
628 +
629 +
630 +/* Use this function to set the directory containing installed pixmaps. */
631 +void        add_pixmap_directory       (const gchar     *directory);
632 +
633 +
634 +/*
635 + * Private Functions.
636 + */
637 +
638 +/* This is used to create the pixmaps used in the interface. */
639 +GtkWidget*  create_pixmap              (GtkWidget       *widget,
640 +                                        const gchar     *filename);
641 +
642 +/* This is used to create the pixbufs used in the interface. */
643 +GdkPixbuf*  create_pixbuf              (const gchar     *filename);
644 +
645 +/* This is used to set ATK action descriptions. */
646 +void        glade_set_atk_action_description (AtkAction       *action,
647 +                                              const gchar     *action_name,
648 +                                              const gchar     *description);
649 +
This page took 0.10465 seconds and 3 git commands to generate.