1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-13 17:06:43 +01:00
bygfoot/b-u/bu_interface.c
2004-12-23 12:58:39 +00:00

577 lines
23 KiB
C

/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "bu_callbacks.h"
#include "bu_interface.h"
#include "bu_support.h"
#define GLADE_HOOKUP_OBJECT(component,widget,name) \
g_object_set_data_full (G_OBJECT (component), name, \
gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
g_object_set_data (G_OBJECT (component), name, widget)
GtkWidget*
create_update_window (void)
{
GtkWidget *update_window;
GtkWidget *vbox1;
GtkWidget *scrolledwindow1;
GtkWidget *textview;
GtkWidget *hseparator1;
GtkWidget *vbox2;
GtkWidget *hbox15;
GtkWidget *radiobutton_src;
GSList *radiobutton_src_group = NULL;
GtkWidget *checkbutton_recompile;
GtkWidget *hseparator4;
GtkWidget *hbox12;
GtkWidget *radiobutton_country;
GtkWidget *hseparator5;
GtkWidget *hbox16;
GtkWidget *radiobutton_download;
GtkWidget *button_version;
GtkWidget *alignment9;
GtkWidget *hbox17;
GtkWidget *image9;
GtkWidget *label14;
GtkWidget *vbox3;
GtkWidget *label12;
GtkWidget *optionmenu_type;
GtkWidget *menu1;
GtkWidget *stable1;
GtkWidget *unstable1;
GtkWidget *vbox4;
GtkWidget *label13;
GtkWidget *optionmenu_format;
GtkWidget *menu2;
GtkWidget *rpm1;
GtkWidget *binary1;
GtkWidget *source1;
GtkWidget *deb1;
GtkWidget *srpm1;
GtkWidget *hseparator3;
GtkWidget *label1;
GtkWidget *hbox2;
GtkWidget *entry_packdir;
GtkWidget *button_packdir_fs;
GtkWidget *alignment1;
GtkWidget *hbox5;
GtkWidget *image1;
GtkWidget *label3;
GtkWidget *label2;
GtkWidget *hbox3;
GtkWidget *entry_tmpdir;
GtkWidget *button_tempdir_fs;
GtkWidget *alignment3;
GtkWidget *hbox7;
GtkWidget *image3;
GtkWidget *label5;
GtkWidget *label11;
GtkWidget *hbox13;
GtkWidget *entry_countrydir;
GtkWidget *button_countrydir_fs;
GtkWidget *alignment8;
GtkWidget *hbox14;
GtkWidget *image8;
GtkWidget *label10;
GtkWidget *hseparator2;
GtkWidget *hbox4;
GtkWidget *button_ok;
GtkWidget *alignment4;
GtkWidget *hbox8;
GtkWidget *image4;
GtkWidget *label6;
GtkWidget *button_quit;
GtkWidget *alignment7;
GtkWidget *hbox11;
GtkWidget *image7;
GtkWidget *label9;
GtkAccelGroup *accel_group;
GtkTooltips *tooltips;
tooltips = gtk_tooltips_new ();
accel_group = gtk_accel_group_new ();
update_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_set_border_width (GTK_CONTAINER (update_window), 5);
gtk_window_set_title (GTK_WINDOW (update_window), _("Bygfoot Online Update Frontend"));
gtk_window_set_position (GTK_WINDOW (update_window), GTK_WIN_POS_CENTER);
gtk_window_set_default_size (GTK_WINDOW (update_window), 400, 550);
vbox1 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox1);
gtk_container_add (GTK_CONTAINER (update_window), vbox1);
scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show (scrolledwindow1);
gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0);
textview = gtk_text_view_new ();
gtk_widget_show (textview);
gtk_container_add (GTK_CONTAINER (scrolledwindow1), textview);
gtk_container_set_border_width (GTK_CONTAINER (textview), 2);
gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE);
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textview), GTK_WRAP_WORD);
hseparator1 = gtk_hseparator_new ();
gtk_widget_show (hseparator1);
gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, TRUE, 0);
gtk_widget_set_size_request (hseparator1, 1, 10);
vbox2 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox2);
gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, TRUE, 0);
hbox15 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox15);
gtk_box_pack_start (GTK_BOX (vbox2), hbox15, TRUE, TRUE, 0);
radiobutton_src = gtk_radio_button_new_with_mnemonic (NULL, _("Update source package"));
gtk_widget_show (radiobutton_src);
gtk_box_pack_start (GTK_BOX (hbox15), radiobutton_src, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, radiobutton_src, _("Update your Bygfoot source package using patches"), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_src), radiobutton_src_group);
radiobutton_src_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_src));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton_src), TRUE);
checkbutton_recompile = gtk_check_button_new_with_mnemonic (_("Run './configure && make' after updating"));
gtk_widget_show (checkbutton_recompile);
gtk_box_pack_start (GTK_BOX (hbox15), checkbutton_recompile, FALSE, FALSE, 0);
hseparator4 = gtk_hseparator_new ();
gtk_widget_show (hseparator4);
gtk_box_pack_start (GTK_BOX (vbox2), hseparator4, FALSE, TRUE, 0);
gtk_widget_set_size_request (hseparator4, 1, 10);
hbox12 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox12);
gtk_box_pack_start (GTK_BOX (vbox2), hbox12, TRUE, TRUE, 0);
radiobutton_country = gtk_radio_button_new_with_mnemonic (NULL, _("Download team names"));
gtk_widget_show (radiobutton_country);
gtk_box_pack_start (GTK_BOX (hbox12), radiobutton_country, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, radiobutton_country, _("Download official team names (Real Madrid instead of R. Madrid etc.)"), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_country), radiobutton_src_group);
radiobutton_src_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_country));
hseparator5 = gtk_hseparator_new ();
gtk_widget_show (hseparator5);
gtk_box_pack_start (GTK_BOX (vbox2), hseparator5, FALSE, TRUE, 0);
gtk_widget_set_size_request (hseparator5, 1, 10);
hbox16 = gtk_hbox_new (FALSE, 4);
gtk_widget_show (hbox16);
gtk_box_pack_start (GTK_BOX (vbox2), hbox16, TRUE, TRUE, 0);
radiobutton_download = gtk_radio_button_new_with_mnemonic (NULL, _("DL complete package"));
gtk_widget_show (radiobutton_download);
gtk_box_pack_start (GTK_BOX (hbox16), radiobutton_download, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, radiobutton_download, _("Download a complete Bygfoot package from the website. The file will be stored in the temporary directory."), NULL);
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_download), radiobutton_src_group);
radiobutton_src_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_download));
button_version = gtk_button_new ();
gtk_widget_show (button_version);
gtk_box_pack_start (GTK_BOX (hbox16), button_version, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, button_version, _("Fetch the version number of the package on the server. You won't want to download the package you already have, after all."), NULL);
alignment9 = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_widget_show (alignment9);
gtk_container_add (GTK_CONTAINER (button_version), alignment9);
hbox17 = gtk_hbox_new (FALSE, 2);
gtk_widget_show (hbox17);
gtk_container_add (GTK_CONTAINER (alignment9), hbox17);
image9 = gtk_image_new_from_stock ("gtk-dialog-question", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image9);
gtk_box_pack_start (GTK_BOX (hbox17), image9, FALSE, FALSE, 0);
label14 = gtk_label_new_with_mnemonic (_("Version"));
gtk_widget_show (label14);
gtk_box_pack_start (GTK_BOX (hbox17), label14, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label14), GTK_JUSTIFY_LEFT);
vbox3 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox3);
gtk_box_pack_start (GTK_BOX (hbox16), vbox3, TRUE, TRUE, 0);
label12 = gtk_label_new (_("Type"));
gtk_widget_show (label12);
gtk_box_pack_start (GTK_BOX (vbox3), label12, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label12), GTK_JUSTIFY_LEFT);
optionmenu_type = gtk_option_menu_new ();
gtk_widget_show (optionmenu_type);
gtk_box_pack_start (GTK_BOX (vbox3), optionmenu_type, FALSE, FALSE, 0);
menu1 = gtk_menu_new ();
stable1 = gtk_menu_item_new_with_mnemonic (_("Stable"));
gtk_widget_show (stable1);
gtk_container_add (GTK_CONTAINER (menu1), stable1);
unstable1 = gtk_menu_item_new_with_mnemonic (_("Unstable"));
gtk_widget_show (unstable1);
gtk_container_add (GTK_CONTAINER (menu1), unstable1);
gtk_option_menu_set_menu (GTK_OPTION_MENU (optionmenu_type), menu1);
vbox4 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox4);
gtk_box_pack_start (GTK_BOX (hbox16), vbox4, TRUE, TRUE, 0);
label13 = gtk_label_new (_("Format"));
gtk_widget_show (label13);
gtk_box_pack_start (GTK_BOX (vbox4), label13, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label13), GTK_JUSTIFY_LEFT);
optionmenu_format = gtk_option_menu_new ();
gtk_widget_show (optionmenu_format);
gtk_box_pack_start (GTK_BOX (vbox4), optionmenu_format, FALSE, FALSE, 0);
menu2 = gtk_menu_new ();
rpm1 = gtk_menu_item_new_with_mnemonic (_("Rpm"));
gtk_widget_show (rpm1);
gtk_container_add (GTK_CONTAINER (menu2), rpm1);
binary1 = gtk_menu_item_new_with_mnemonic (_("Binary"));
gtk_widget_show (binary1);
gtk_container_add (GTK_CONTAINER (menu2), binary1);
source1 = gtk_menu_item_new_with_mnemonic (_("Source"));
gtk_widget_show (source1);
gtk_container_add (GTK_CONTAINER (menu2), source1);
deb1 = gtk_menu_item_new_with_mnemonic (_("Deb"));
gtk_widget_show (deb1);
gtk_container_add (GTK_CONTAINER (menu2), deb1);
srpm1 = gtk_menu_item_new_with_mnemonic (_("Srpm"));
gtk_widget_show (srpm1);
gtk_container_add (GTK_CONTAINER (menu2), srpm1);
gtk_option_menu_set_menu (GTK_OPTION_MENU (optionmenu_format), menu2);
hseparator3 = gtk_hseparator_new ();
gtk_widget_show (hseparator3);
gtk_box_pack_start (GTK_BOX (vbox1), hseparator3, FALSE, TRUE, 0);
gtk_widget_set_size_request (hseparator3, 1, 10);
label1 = gtk_label_new (_("Your Bygfoot source package directory"));
gtk_widget_show (label1);
gtk_box_pack_start (GTK_BOX (vbox1), label1, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);
gtk_misc_set_padding (GTK_MISC (label1), 0, 5);
hbox2 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox2);
gtk_box_pack_start (GTK_BOX (vbox1), hbox2, FALSE, FALSE, 0);
entry_packdir = gtk_entry_new ();
gtk_widget_show (entry_packdir);
gtk_box_pack_start (GTK_BOX (hbox2), entry_packdir, TRUE, TRUE, 0);
button_packdir_fs = gtk_button_new ();
gtk_widget_show (button_packdir_fs);
gtk_box_pack_start (GTK_BOX (hbox2), button_packdir_fs, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, button_packdir_fs, _("Select a directory"), NULL);
alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_widget_show (alignment1);
gtk_container_add (GTK_CONTAINER (button_packdir_fs), alignment1);
hbox5 = gtk_hbox_new (FALSE, 2);
gtk_widget_show (hbox5);
gtk_container_add (GTK_CONTAINER (alignment1), hbox5);
image1 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image1);
gtk_box_pack_start (GTK_BOX (hbox5), image1, FALSE, FALSE, 0);
label3 = gtk_label_new_with_mnemonic (_("..."));
gtk_widget_show (label3);
gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label3), GTK_JUSTIFY_LEFT);
label2 = gtk_label_new (_("A temporary directory I can use (read/write)"));
gtk_widget_show (label2);
gtk_box_pack_start (GTK_BOX (vbox1), label2, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
gtk_misc_set_padding (GTK_MISC (label2), 0, 5);
hbox3 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox3);
gtk_box_pack_start (GTK_BOX (vbox1), hbox3, FALSE, FALSE, 0);
entry_tmpdir = gtk_entry_new ();
gtk_widget_show (entry_tmpdir);
gtk_box_pack_start (GTK_BOX (hbox3), entry_tmpdir, TRUE, TRUE, 0);
button_tempdir_fs = gtk_button_new ();
gtk_widget_show (button_tempdir_fs);
gtk_box_pack_start (GTK_BOX (hbox3), button_tempdir_fs, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, button_tempdir_fs, _("Select a directory"), NULL);
alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_widget_show (alignment3);
gtk_container_add (GTK_CONTAINER (button_tempdir_fs), alignment3);
hbox7 = gtk_hbox_new (FALSE, 2);
gtk_widget_show (hbox7);
gtk_container_add (GTK_CONTAINER (alignment3), hbox7);
image3 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image3);
gtk_box_pack_start (GTK_BOX (hbox7), image3, FALSE, FALSE, 0);
label5 = gtk_label_new_with_mnemonic (_("..."));
gtk_widget_show (label5);
gtk_box_pack_start (GTK_BOX (hbox7), label5, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label5), GTK_JUSTIFY_LEFT);
label11 = gtk_label_new (_("Team names destination directory (default recommended)"));
gtk_widget_show (label11);
gtk_box_pack_start (GTK_BOX (vbox1), label11, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label11), GTK_JUSTIFY_LEFT);
gtk_misc_set_padding (GTK_MISC (label11), 0, 5);
hbox13 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox13);
gtk_box_pack_start (GTK_BOX (vbox1), hbox13, FALSE, TRUE, 0);
entry_countrydir = gtk_entry_new ();
gtk_widget_show (entry_countrydir);
gtk_box_pack_start (GTK_BOX (hbox13), entry_countrydir, TRUE, TRUE, 0);
button_countrydir_fs = gtk_button_new ();
gtk_widget_show (button_countrydir_fs);
gtk_box_pack_start (GTK_BOX (hbox13), button_countrydir_fs, FALSE, FALSE, 0);
gtk_tooltips_set_tip (tooltips, button_countrydir_fs, _("Select a directory"), NULL);
alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_widget_show (alignment8);
gtk_container_add (GTK_CONTAINER (button_countrydir_fs), alignment8);
hbox14 = gtk_hbox_new (FALSE, 2);
gtk_widget_show (hbox14);
gtk_container_add (GTK_CONTAINER (alignment8), hbox14);
image8 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image8);
gtk_box_pack_start (GTK_BOX (hbox14), image8, FALSE, FALSE, 0);
label10 = gtk_label_new_with_mnemonic (_("..."));
gtk_widget_show (label10);
gtk_box_pack_start (GTK_BOX (hbox14), label10, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label10), GTK_JUSTIFY_LEFT);
hseparator2 = gtk_hseparator_new ();
gtk_widget_show (hseparator2);
gtk_box_pack_start (GTK_BOX (vbox1), hseparator2, FALSE, TRUE, 0);
gtk_widget_set_size_request (hseparator2, 1, 10);
hbox4 = gtk_hbox_new (FALSE, 5);
gtk_widget_show (hbox4);
gtk_box_pack_start (GTK_BOX (vbox1), hbox4, FALSE, FALSE, 0);
button_ok = gtk_button_new ();
gtk_widget_show (button_ok);
gtk_box_pack_start (GTK_BOX (hbox4), button_ok, TRUE, TRUE, 0);
alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_widget_show (alignment4);
gtk_container_add (GTK_CONTAINER (button_ok), alignment4);
hbox8 = gtk_hbox_new (FALSE, 2);
gtk_widget_show (hbox8);
gtk_container_add (GTK_CONTAINER (alignment4), hbox8);
image4 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image4);
gtk_box_pack_start (GTK_BOX (hbox8), image4, FALSE, FALSE, 0);
label6 = gtk_label_new_with_mnemonic (_("OK"));
gtk_widget_show (label6);
gtk_box_pack_start (GTK_BOX (hbox8), label6, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label6), GTK_JUSTIFY_LEFT);
button_quit = gtk_button_new ();
gtk_widget_show (button_quit);
gtk_box_pack_start (GTK_BOX (hbox4), button_quit, TRUE, TRUE, 0);
gtk_widget_add_accelerator (button_quit, "clicked", accel_group,
GDK_Escape, 0,
GTK_ACCEL_VISIBLE);
alignment7 = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_widget_show (alignment7);
gtk_container_add (GTK_CONTAINER (button_quit), alignment7);
hbox11 = gtk_hbox_new (FALSE, 2);
gtk_widget_show (hbox11);
gtk_container_add (GTK_CONTAINER (alignment7), hbox11);
image7 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image7);
gtk_box_pack_start (GTK_BOX (hbox11), image7, FALSE, FALSE, 0);
label9 = gtk_label_new_with_mnemonic (_("Quit"));
gtk_widget_show (label9);
gtk_box_pack_start (GTK_BOX (hbox11), label9, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label9), GTK_JUSTIFY_LEFT);
g_signal_connect ((gpointer) update_window, "delete_event",
G_CALLBACK (on_button_quit_clicked),
NULL);
g_signal_connect ((gpointer) button_version, "clicked",
G_CALLBACK (on_button_version_clicked),
NULL);
g_signal_connect ((gpointer) button_packdir_fs, "clicked",
G_CALLBACK (on_button_packdir_fs_clicked),
NULL);
g_signal_connect ((gpointer) button_tempdir_fs, "clicked",
G_CALLBACK (on_button_tempdir_fs_clicked),
NULL);
g_signal_connect ((gpointer) button_countrydir_fs, "clicked",
G_CALLBACK (on_button_countrydir_fs_clicked),
NULL);
g_signal_connect ((gpointer) button_ok, "clicked",
G_CALLBACK (on_button_ok_clicked),
NULL);
g_signal_connect ((gpointer) button_quit, "clicked",
G_CALLBACK (on_button_quit_clicked),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (update_window, update_window, "update_window");
GLADE_HOOKUP_OBJECT (update_window, vbox1, "vbox1");
GLADE_HOOKUP_OBJECT (update_window, scrolledwindow1, "scrolledwindow1");
GLADE_HOOKUP_OBJECT (update_window, textview, "textview");
GLADE_HOOKUP_OBJECT (update_window, hseparator1, "hseparator1");
GLADE_HOOKUP_OBJECT (update_window, vbox2, "vbox2");
GLADE_HOOKUP_OBJECT (update_window, hbox15, "hbox15");
GLADE_HOOKUP_OBJECT (update_window, radiobutton_src, "radiobutton_src");
GLADE_HOOKUP_OBJECT (update_window, checkbutton_recompile, "checkbutton_recompile");
GLADE_HOOKUP_OBJECT (update_window, hseparator4, "hseparator4");
GLADE_HOOKUP_OBJECT (update_window, hbox12, "hbox12");
GLADE_HOOKUP_OBJECT (update_window, radiobutton_country, "radiobutton_country");
GLADE_HOOKUP_OBJECT (update_window, hseparator5, "hseparator5");
GLADE_HOOKUP_OBJECT (update_window, hbox16, "hbox16");
GLADE_HOOKUP_OBJECT (update_window, radiobutton_download, "radiobutton_download");
GLADE_HOOKUP_OBJECT (update_window, button_version, "button_version");
GLADE_HOOKUP_OBJECT (update_window, alignment9, "alignment9");
GLADE_HOOKUP_OBJECT (update_window, hbox17, "hbox17");
GLADE_HOOKUP_OBJECT (update_window, image9, "image9");
GLADE_HOOKUP_OBJECT (update_window, label14, "label14");
GLADE_HOOKUP_OBJECT (update_window, vbox3, "vbox3");
GLADE_HOOKUP_OBJECT (update_window, label12, "label12");
GLADE_HOOKUP_OBJECT (update_window, optionmenu_type, "optionmenu_type");
GLADE_HOOKUP_OBJECT (update_window, menu1, "menu1");
GLADE_HOOKUP_OBJECT (update_window, stable1, "stable1");
GLADE_HOOKUP_OBJECT (update_window, unstable1, "unstable1");
GLADE_HOOKUP_OBJECT (update_window, vbox4, "vbox4");
GLADE_HOOKUP_OBJECT (update_window, label13, "label13");
GLADE_HOOKUP_OBJECT (update_window, optionmenu_format, "optionmenu_format");
GLADE_HOOKUP_OBJECT (update_window, menu2, "menu2");
GLADE_HOOKUP_OBJECT (update_window, rpm1, "rpm1");
GLADE_HOOKUP_OBJECT (update_window, binary1, "binary1");
GLADE_HOOKUP_OBJECT (update_window, source1, "source1");
GLADE_HOOKUP_OBJECT (update_window, deb1, "deb1");
GLADE_HOOKUP_OBJECT (update_window, srpm1, "srpm1");
GLADE_HOOKUP_OBJECT (update_window, hseparator3, "hseparator3");
GLADE_HOOKUP_OBJECT (update_window, label1, "label1");
GLADE_HOOKUP_OBJECT (update_window, hbox2, "hbox2");
GLADE_HOOKUP_OBJECT (update_window, entry_packdir, "entry_packdir");
GLADE_HOOKUP_OBJECT (update_window, button_packdir_fs, "button_packdir_fs");
GLADE_HOOKUP_OBJECT (update_window, alignment1, "alignment1");
GLADE_HOOKUP_OBJECT (update_window, hbox5, "hbox5");
GLADE_HOOKUP_OBJECT (update_window, image1, "image1");
GLADE_HOOKUP_OBJECT (update_window, label3, "label3");
GLADE_HOOKUP_OBJECT (update_window, label2, "label2");
GLADE_HOOKUP_OBJECT (update_window, hbox3, "hbox3");
GLADE_HOOKUP_OBJECT (update_window, entry_tmpdir, "entry_tmpdir");
GLADE_HOOKUP_OBJECT (update_window, button_tempdir_fs, "button_tempdir_fs");
GLADE_HOOKUP_OBJECT (update_window, alignment3, "alignment3");
GLADE_HOOKUP_OBJECT (update_window, hbox7, "hbox7");
GLADE_HOOKUP_OBJECT (update_window, image3, "image3");
GLADE_HOOKUP_OBJECT (update_window, label5, "label5");
GLADE_HOOKUP_OBJECT (update_window, label11, "label11");
GLADE_HOOKUP_OBJECT (update_window, hbox13, "hbox13");
GLADE_HOOKUP_OBJECT (update_window, entry_countrydir, "entry_countrydir");
GLADE_HOOKUP_OBJECT (update_window, button_countrydir_fs, "button_countrydir_fs");
GLADE_HOOKUP_OBJECT (update_window, alignment8, "alignment8");
GLADE_HOOKUP_OBJECT (update_window, hbox14, "hbox14");
GLADE_HOOKUP_OBJECT (update_window, image8, "image8");
GLADE_HOOKUP_OBJECT (update_window, label10, "label10");
GLADE_HOOKUP_OBJECT (update_window, hseparator2, "hseparator2");
GLADE_HOOKUP_OBJECT (update_window, hbox4, "hbox4");
GLADE_HOOKUP_OBJECT (update_window, button_ok, "button_ok");
GLADE_HOOKUP_OBJECT (update_window, alignment4, "alignment4");
GLADE_HOOKUP_OBJECT (update_window, hbox8, "hbox8");
GLADE_HOOKUP_OBJECT (update_window, image4, "image4");
GLADE_HOOKUP_OBJECT (update_window, label6, "label6");
GLADE_HOOKUP_OBJECT (update_window, button_quit, "button_quit");
GLADE_HOOKUP_OBJECT (update_window, alignment7, "alignment7");
GLADE_HOOKUP_OBJECT (update_window, hbox11, "hbox11");
GLADE_HOOKUP_OBJECT (update_window, image7, "image7");
GLADE_HOOKUP_OBJECT (update_window, label9, "label9");
GLADE_HOOKUP_OBJECT_NO_REF (update_window, tooltips, "tooltips");
gtk_window_add_accel_group (GTK_WINDOW (update_window), accel_group);
return update_window;
}
GtkWidget*
create_fileselection (void)
{
GtkWidget *fileselection;
GtkWidget *button_fs_ok;
GtkWidget *button_fs_cancel;
fileselection = gtk_file_selection_new (_("Datei auswählen"));
gtk_container_set_border_width (GTK_CONTAINER (fileselection), 10);
gtk_window_set_position (GTK_WINDOW (fileselection), GTK_WIN_POS_CENTER);
button_fs_ok = GTK_FILE_SELECTION (fileselection)->ok_button;
gtk_widget_show (button_fs_ok);
GTK_WIDGET_SET_FLAGS (button_fs_ok, GTK_CAN_DEFAULT);
button_fs_cancel = GTK_FILE_SELECTION (fileselection)->cancel_button;
gtk_widget_show (button_fs_cancel);
GTK_WIDGET_SET_FLAGS (button_fs_cancel, GTK_CAN_DEFAULT);
g_signal_connect ((gpointer) button_fs_ok, "clicked",
G_CALLBACK (on_button_fs_ok_clicked),
NULL);
g_signal_connect ((gpointer) button_fs_cancel, "clicked",
G_CALLBACK (on_button_fs_cancel_clicked),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (fileselection, fileselection, "fileselection");
GLADE_HOOKUP_OBJECT_NO_REF (fileselection, button_fs_ok, "button_fs_ok");
GLADE_HOOKUP_OBJECT_NO_REF (fileselection, button_fs_cancel, "button_fs_cancel");
return fileselection;
}