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
10 +#include "callbacks.h"
11 +#include "interface.h"
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
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
23 + * DO NOT EDIT THIS FILE - it is generated by Glade.
30 +#include <sys/types.h>
31 +#include <sys/stat.h>
36 +#include <gdk/gdkkeysyms.h>
39 +#include "callbacks.h"
40 +#include "interface.h"
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)
47 +#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
48 + g_object_set_data (G_OBJECT (component), name, widget)
51 +create_GConnectionDialog (void)
53 + GtkWidget *GConnectionDialog;
54 + GtkWidget *dialog_vbox1;
57 + GtkWidget *titleText;
58 + GtkWidget *scrolledwindow1;
63 + GtkWidget *progressBar;
64 + GtkWidget *dialog_action_area1;
65 + GtkWidget *closeButton;
66 + GtkWidget *abortButton;
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);
72 + dialog_vbox1 = GTK_DIALOG (GConnectionDialog)->vbox;
73 + gtk_widget_show (dialog_vbox1);
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);
79 + vbox2 = gtk_vbox_new (FALSE, 0);
80 + gtk_widget_show (vbox2);
81 + gtk_box_pack_start (GTK_BOX (vbox1), vbox2, TRUE, TRUE, 0);
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);
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);
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);
97 + vbox3 = gtk_vbox_new (FALSE, 0);
98 + gtk_widget_show (vbox3);
99 + gtk_box_pack_start (GTK_BOX (vbox1), vbox3, FALSE, TRUE, 0);
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);
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);
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);
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);
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);
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);
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");
148 + return GConnectionDialog;
152 +create_GSimpleBox (void)
154 + GtkWidget *GSimpleBox;
155 + GtkWidget *textLabel;
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);
161 + textLabel = gtk_label_new (_("label4"));
162 + gtk_widget_show (textLabel);
163 + gtk_container_add (GTK_CONTAINER (GSimpleBox), textLabel);
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");
173 +create_GJobView (void)
175 + GtkWidget *GJobView;
177 + GtkWidget *scrolledwindow2;
178 + GtkWidget *jobListView;
179 + GtkWidget *vbuttonbox1;
180 + GtkWidget *dequeueButton;
181 + GtkWidget *alignment2;
185 + GtkWidget *execButton;
186 + GtkWidget *alignment1;
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);
195 + hbox1 = gtk_hbox_new (FALSE, 0);
196 + gtk_widget_show (hbox1);
197 + gtk_container_add (GTK_CONTAINER (GJobView), hbox1);
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);
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);
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);
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);
218 + alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
219 + gtk_widget_show (alignment2);
220 + gtk_container_add (GTK_CONTAINER (dequeueButton), alignment2);
222 + hbox3 = gtk_hbox_new (FALSE, 2);
223 + gtk_widget_show (hbox3);
224 + gtk_container_add (GTK_CONTAINER (alignment2), hbox3);
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);
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);
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);
239 + alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
240 + gtk_widget_show (alignment1);
241 + gtk_container_add (GTK_CONTAINER (execButton), alignment1);
243 + hbox2 = gtk_hbox_new (FALSE, 2);
244 + gtk_widget_show (hbox2);
245 + gtk_container_add (GTK_CONTAINER (alignment1), hbox2);
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);
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);
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");
276 +create_GInputBox (void)
278 + GtkWidget *GInputBox;
279 + GtkWidget *dialog_vbox2;
281 + GtkWidget *textLabel;
284 + GtkWidget *confirmLabel;
285 + GtkWidget *inputEntry;
286 + GtkWidget *confirmEntry;
287 + GtkWidget *dialog_action_area2;
288 + GtkWidget *abortbutton;
289 + GtkWidget *okButton;
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);
296 + dialog_vbox2 = GTK_DIALOG (GInputBox)->vbox;
297 + gtk_widget_show (dialog_vbox2);
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);
303 + textLabel = gtk_label_new (_("label8"));
304 + gtk_widget_show (textLabel);
305 + gtk_box_pack_start (GTK_BOX (vbox5), textLabel, TRUE, TRUE, 0);
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);
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);
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);
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);
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);
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);
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);
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);
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");
367 +create_GMessageBox (void)
369 + GtkWidget *GMessageBox;
370 + GtkWidget *dialog_vbox3;
371 + GtkWidget *textLabel;
372 + GtkWidget *dialog_action_area3;
373 + GtkWidget *button1;
374 + GtkWidget *button2;
375 + GtkWidget *button3;
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);
383 + dialog_vbox3 = GTK_DIALOG (GMessageBox)->vbox;
384 + gtk_widget_show (dialog_vbox3);
386 + textLabel = gtk_label_new (_("label10"));
387 + gtk_widget_show (textLabel);
388 + gtk_box_pack_start (GTK_BOX (dialog_vbox3), textLabel, TRUE, TRUE, 0);
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);
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);
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);
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);
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");
416 + return GMessageBox;
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
423 + * DO NOT EDIT THIS FILE - it is generated by Glade.
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
435 + * DO NOT EDIT THIS FILE - it is generated by Glade.
438 +#ifdef HAVE_CONFIG_H
439 +# include <config.h>
442 +#include <sys/types.h>
443 +#include <sys/stat.h>
448 +#include <gtk/gtk.h>
450 +#include "support.h"
453 +lookup_widget (GtkWidget *widget,
454 + const gchar *widget_name)
456 + GtkWidget *parent, *found_widget;
460 + if (GTK_IS_MENU (widget))
461 + parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
463 + parent = widget->parent;
465 + parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
466 + if (parent == NULL)
471 + found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
474 + g_warning ("Widget not found: %s", widget_name);
475 + return found_widget;
478 +static GList *pixmaps_directories = NULL;
480 +/* Use this function to set the directory containing installed pixmaps. */
482 +add_pixmap_directory (const gchar *directory)
484 + pixmaps_directories = g_list_prepend (pixmaps_directories,
485 + g_strdup (directory));
488 +/* This is an internally used function to find pixmap files. */
490 +find_pixmap_file (const gchar *filename)
494 + /* We step through each of the pixmaps directory to find it. */
495 + elem = pixmaps_directories;
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))
508 +/* This is an internally used function to create pixmaps. */
510 +create_pixmap (GtkWidget *widget,
511 + const gchar *filename)
513 + gchar *pathname = NULL;
516 + if (!filename || !filename[0])
517 + return gtk_image_new ();
519 + pathname = find_pixmap_file (filename);
523 + g_warning (_("Couldn't find pixmap file: %s"), filename);
524 + return gtk_image_new ();
527 + pixmap = gtk_image_new_from_file (pathname);
532 +/* This is an internally used function to create pixmaps. */
534 +create_pixbuf (const gchar *filename)
536 + gchar *pathname = NULL;
538 + GError *error = NULL;
540 + if (!filename || !filename[0])
543 + pathname = find_pixmap_file (filename);
547 + g_warning (_("Couldn't find pixmap file: %s"), filename);
551 + pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
554 + fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
555 + pathname, error->message);
556 + g_error_free (error);
562 +/* This is used to set ATK action descriptions. */
564 +glade_set_atk_action_description (AtkAction *action,
565 + const gchar *action_name,
566 + const gchar *description)
570 + n_actions = atk_action_get_n_actions (action);
571 + for (i = 0; i < n_actions; i++)
573 + if (!strcmp (atk_action_get_name (action, i), action_name))
574 + atk_action_set_description (action, i, description);
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
582 + * DO NOT EDIT THIS FILE - it is generated by Glade.
585 +#ifdef HAVE_CONFIG_H
586 +# include <config.h>
589 +#include <gtk/gtk.h>
592 + * Standard gettext macros.
595 +# include <libintl.h>
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)
602 +# define N_(String) (String)
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)
617 + * Public Functions.
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.
626 +GtkWidget* lookup_widget (GtkWidget *widget,
627 + const gchar *widget_name);
630 +/* Use this function to set the directory containing installed pixmaps. */
631 +void add_pixmap_directory (const gchar *directory);
635 + * Private Functions.
638 +/* This is used to create the pixmaps used in the interface. */
639 +GtkWidget* create_pixmap (GtkWidget *widget,
640 + const gchar *filename);
642 +/* This is used to create the pixbufs used in the interface. */
643 +GdkPixbuf* create_pixbuf (const gchar *filename);
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);