/*
 * 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 "callbacks.h"
#include "interface.h"
#include "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_UMarkDlg (void)
{
  GtkWidget *UMarkDlg;
  GdkPixbuf *UMarkDlg_icon_pixbuf;
  GtkWidget *frmMain;
  GtkWidget *hbMainOuter;
  GtkWidget *vbMainOuter;
  GtkWidget *umark_banner;
  GtkWidget *ProgressBatch;
  GtkWidget *tblMainOptions;
  GtkWidget *frmOptBench;
  GtkWidget *tblOptBench;
  GtkObject *spnBots_adj;
  GtkWidget *spnBots;
  GtkWidget *label2;
  GtkWidget *CmbMaps;
  GtkWidget *hbOptBench;
  GtkWidget *label24;
  GtkWidget *chkTimeDemo;
  GtkWidget *label3;
  GtkWidget *vbbMainButtons;
  GtkWidget *btnBenchmark;
  GtkWidget *alignment1;
  GtkWidget *hbox2;
  GtkWidget *image2;
  GtkWidget *label4;
  GtkWidget *btnResults;
  GtkWidget *alignment2;
  GtkWidget *hbox3;
  GtkWidget *image3;
  GtkWidget *label5;
  GtkWidget *btnAbout;
  GtkWidget *alignment14;
  GtkWidget *hbox15;
  GtkWidget *image14;
  GtkWidget *label23;
  GtkWidget *btnQuit;
  GtkWidget *frmOptVersion;
  GtkWidget *vbVersion;
  GtkWidget *CmbVersion;
  GtkWidget *chkFullScr;
  GtkWidget *label6;
  GtkWidget *frmOptRes;
  GtkWidget *vbOptRes;
  GtkWidget *chk640;
  GtkWidget *chk800;
  GtkWidget *chk1024;
  GtkWidget *chk1280;
  GtkWidget *chk1600;
  GtkWidget *label7;
  GtkWidget *frmOptDetail;
  GtkWidget *vbOptDetail;
  GtkWidget *radDtlLow;
  GSList *radDtlLow_group = NULL;
  GtkWidget *radDtlHigh;
  GtkWidget *radDtlCurrent;
  GtkWidget *radDtlCustom;
  GtkWidget *btnUMarkConf;
  GtkWidget *alignment17;
  GtkWidget *hbox17;
  GtkWidget *image17;
  GtkWidget *label29;
  GtkWidget *label8;
  GtkWidget *btnArrow;
  GtkWidget *vbbBatchControls;
  GtkWidget *btnPresets;
  GtkWidget *alignment3;
  GtkWidget *hbox4;
  GtkWidget *image4;
  GtkWidget *label9;
  GtkWidget *btnMoveTop;
  GtkWidget *alignment4;
  GtkWidget *hbox5;
  GtkWidget *image5;
  GtkWidget *label10;
  GtkWidget *btnMoveBottom;
  GtkWidget *alignment5;
  GtkWidget *hbox6;
  GtkWidget *image6;
  GtkWidget *label11;
  GtkWidget *btnAdd;
  GtkWidget *btnRemove;
  GtkWidget *btnClear;
  GtkWidget *alignment6;
  GtkWidget *hbox7;
  GtkWidget *image7;
  GtkWidget *label12;
  GtkWidget *btnLoadList;
  GtkWidget *alignment7;
  GtkWidget *hbox8;
  GtkWidget *image8;
  GtkWidget *label13;
  GtkWidget *btnSaveList;
  GtkWidget *alignment8;
  GtkWidget *hbox9;
  GtkWidget *image9;
  GtkWidget *label14;
  GtkWidget *vbBatchList;
  GtkWidget *label15;
  GtkWidget *swBatchList;
  GtkWidget *tvBatchList;
  GtkWidget *label16;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  UMarkDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (UMarkDlg), "UMark v2.0.0 (Unreal Tournament 200x Benchmark)");
  gtk_window_set_position (GTK_WINDOW (UMarkDlg), GTK_WIN_POS_CENTER);
  gtk_window_set_resizable (GTK_WINDOW (UMarkDlg), FALSE);
  UMarkDlg_icon_pixbuf = create_pixbuf ("umark_icon.png");
  if (UMarkDlg_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (UMarkDlg), UMarkDlg_icon_pixbuf);
      gdk_pixbuf_unref (UMarkDlg_icon_pixbuf);
    }

  frmMain = gtk_frame_new (NULL);
  gtk_widget_show (frmMain);
  gtk_container_add (GTK_CONTAINER (UMarkDlg), frmMain);
  gtk_container_set_border_width (GTK_CONTAINER (frmMain), 5);

  hbMainOuter = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbMainOuter);
  gtk_container_add (GTK_CONTAINER (frmMain), hbMainOuter);
  gtk_container_set_border_width (GTK_CONTAINER (hbMainOuter), 3);

  vbMainOuter = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbMainOuter);
  gtk_box_pack_start (GTK_BOX (hbMainOuter), vbMainOuter, FALSE, FALSE, 0);

  umark_banner = create_pixmap (UMarkDlg, "umark.png");
  gtk_widget_show (umark_banner);
  gtk_box_pack_start (GTK_BOX (vbMainOuter), umark_banner, FALSE, FALSE, 3);
  gtk_misc_set_padding (GTK_MISC (umark_banner), 1, 1);

  ProgressBatch = gtk_progress_bar_new ();
  gtk_widget_show (ProgressBatch);
  gtk_box_pack_start (GTK_BOX (vbMainOuter), ProgressBatch, FALSE, FALSE, 6);

  tblMainOptions = gtk_table_new (2, 3, FALSE);
  gtk_widget_show (tblMainOptions);
  gtk_box_pack_start (GTK_BOX (vbMainOuter), tblMainOptions, TRUE, TRUE, 0);

  frmOptBench = gtk_frame_new (NULL);
  gtk_widget_show (frmOptBench);
  gtk_table_attach (GTK_TABLE (tblMainOptions), frmOptBench, 1, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 2, 2);

  tblOptBench = gtk_table_new (2, 2, FALSE);
  gtk_widget_show (tblOptBench);
  gtk_container_add (GTK_CONTAINER (frmOptBench), tblOptBench);
  gtk_container_set_border_width (GTK_CONTAINER (tblOptBench), 5);

  spnBots_adj = gtk_adjustment_new (12, 0, 16, 1, 10, 10);
  spnBots = gtk_spin_button_new (GTK_ADJUSTMENT (spnBots_adj), 1, 0);
  gtk_widget_show (spnBots);
  gtk_table_attach (GTK_TABLE (tblOptBench), spnBots, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 3, 0);
  gtk_tooltips_set_tip (tooltips, spnBots, "Number of bots (0 for flyby)", NULL);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spnBots), TRUE);
  gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (spnBots), GTK_UPDATE_IF_VALID);

  label2 = gtk_label_new ("Bots:");
  gtk_widget_show (label2);
  gtk_table_attach (GTK_TABLE (tblOptBench), label2, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 3, 0);
  gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5);

  CmbMaps = gtk_combo_box_entry_new_text ();
  gtk_widget_show (CmbMaps);
  gtk_table_attach (GTK_TABLE (tblOptBench), CmbMaps, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);
  gtk_combo_box_append_text (GTK_COMBO_BOX (CmbMaps), "Please select UT200x version first.");

  hbOptBench = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbOptBench);
  gtk_table_attach (GTK_TABLE (tblOptBench), hbOptBench, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  label24 = gtk_label_new ("Choose a Map:");
  gtk_widget_show (label24);
  gtk_box_pack_start (GTK_BOX (hbOptBench), label24, FALSE, FALSE, 0);

  chkTimeDemo = gtk_check_button_new_with_mnemonic ("Timedemo");
  gtk_widget_show (chkTimeDemo);
  gtk_box_pack_end (GTK_BOX (hbOptBench), chkTimeDemo, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, chkTimeDemo, "Benchmark Timedemos", NULL);

  label3 = gtk_label_new ("Botmatch Options");
  gtk_widget_show (label3);
  gtk_frame_set_label_widget (GTK_FRAME (frmOptBench), label3);

  vbbMainButtons = gtk_vbutton_box_new ();
  gtk_widget_show (vbbMainButtons);
  gtk_table_attach (GTK_TABLE (tblMainOptions), vbbMainButtons, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 3, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (vbbMainButtons), GTK_BUTTONBOX_SPREAD);

  btnBenchmark = gtk_button_new ();
  gtk_widget_show (btnBenchmark);
  gtk_container_add (GTK_CONTAINER (vbbMainButtons), btnBenchmark);
  GTK_WIDGET_SET_FLAGS (btnBenchmark, GTK_CAN_DEFAULT);

  alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment1);
  gtk_container_add (GTK_CONTAINER (btnBenchmark), alignment1);

  hbox2 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox2);
  gtk_container_add (GTK_CONTAINER (alignment1), hbox2);

  image2 = gtk_image_new_from_stock ("gtk-execute", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image2);
  gtk_box_pack_start (GTK_BOX (hbox2), image2, FALSE, FALSE, 0);

  label4 = gtk_label_new_with_mnemonic ("_Bench!");
  gtk_widget_show (label4);
  gtk_box_pack_start (GTK_BOX (hbox2), label4, FALSE, FALSE, 0);

  btnResults = gtk_button_new ();
  gtk_widget_show (btnResults);
  gtk_container_add (GTK_CONTAINER (vbbMainButtons), btnResults);
  GTK_WIDGET_SET_FLAGS (btnResults, GTK_CAN_DEFAULT);

  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment2);
  gtk_container_add (GTK_CONTAINER (btnResults), alignment2);

  hbox3 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox3);
  gtk_container_add (GTK_CONTAINER (alignment2), hbox3);

  image3 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image3);
  gtk_box_pack_start (GTK_BOX (hbox3), image3, FALSE, FALSE, 0);

  label5 = gtk_label_new_with_mnemonic ("_Results...");
  gtk_widget_show (label5);
  gtk_box_pack_start (GTK_BOX (hbox3), label5, FALSE, FALSE, 0);

  btnAbout = gtk_button_new ();
  gtk_widget_show (btnAbout);
  gtk_container_add (GTK_CONTAINER (vbbMainButtons), btnAbout);
  GTK_WIDGET_SET_FLAGS (btnAbout, GTK_CAN_DEFAULT);

  alignment14 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment14);
  gtk_container_add (GTK_CONTAINER (btnAbout), alignment14);

  hbox15 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox15);
  gtk_container_add (GTK_CONTAINER (alignment14), hbox15);

  image14 = gtk_image_new_from_stock ("gtk-dialog-question", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image14);
  gtk_box_pack_start (GTK_BOX (hbox15), image14, FALSE, FALSE, 0);

  label23 = gtk_label_new_with_mnemonic ("About...");
  gtk_widget_show (label23);
  gtk_box_pack_start (GTK_BOX (hbox15), label23, FALSE, FALSE, 0);

  btnQuit = gtk_button_new_from_stock ("gtk-quit");
  gtk_widget_show (btnQuit);
  gtk_container_add (GTK_CONTAINER (vbbMainButtons), btnQuit);
  GTK_WIDGET_SET_FLAGS (btnQuit, GTK_CAN_DEFAULT);

  frmOptVersion = gtk_frame_new (NULL);
  gtk_widget_show (frmOptVersion);
  gtk_table_attach (GTK_TABLE (tblMainOptions), frmOptVersion, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 2, 2);

  vbVersion = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbVersion);
  gtk_container_add (GTK_CONTAINER (frmOptVersion), vbVersion);
  gtk_container_set_border_width (GTK_CONTAINER (vbVersion), 5);

  CmbVersion = gtk_combo_box_entry_new_text ();
  gtk_widget_show (CmbVersion);
  gtk_box_pack_start (GTK_BOX (vbVersion), CmbVersion, FALSE, FALSE, 0);
  gtk_widget_set_size_request (CmbVersion, 116, 20);
  gtk_combo_box_append_text (GTK_COMBO_BOX (CmbVersion), "Uninitialized");

  chkFullScr = gtk_check_button_new_with_mnemonic ("Run _Fullscreen");
  gtk_widget_show (chkFullScr);
  gtk_box_pack_start (GTK_BOX (vbVersion), chkFullScr, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, chkFullScr, "Benchmark in fullscreen mode", NULL);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (chkFullScr), TRUE);

  label6 = gtk_label_new ("UT200x Version");
  gtk_widget_show (label6);
  gtk_frame_set_label_widget (GTK_FRAME (frmOptVersion), label6);

  frmOptRes = gtk_frame_new (NULL);
  gtk_widget_show (frmOptRes);
  gtk_table_attach (GTK_TABLE (tblMainOptions), frmOptRes, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 2, 2);

  vbOptRes = gtk_vbox_new (TRUE, 0);
  gtk_widget_show (vbOptRes);
  gtk_container_add (GTK_CONTAINER (frmOptRes), vbOptRes);
  gtk_container_set_border_width (GTK_CONTAINER (vbOptRes), 5);

  chk640 = gtk_check_button_new_with_mnemonic ("640x_480");
  gtk_widget_show (chk640);
  gtk_box_pack_start (GTK_BOX (vbOptRes), chk640, FALSE, FALSE, 0);

  chk800 = gtk_check_button_new_with_mnemonic ("800x_600");
  gtk_widget_show (chk800);
  gtk_box_pack_start (GTK_BOX (vbOptRes), chk800, FALSE, FALSE, 0);

  chk1024 = gtk_check_button_new_with_mnemonic ("1024x_768");
  gtk_widget_show (chk1024);
  gtk_box_pack_start (GTK_BOX (vbOptRes), chk1024, FALSE, FALSE, 0);

  chk1280 = gtk_check_button_new_with_mnemonic ("1280x_1024");
  gtk_widget_show (chk1280);
  gtk_box_pack_start (GTK_BOX (vbOptRes), chk1280, FALSE, FALSE, 0);

  chk1600 = gtk_check_button_new_with_mnemonic ("1600x1_200");
  gtk_widget_show (chk1600);
  gtk_box_pack_start (GTK_BOX (vbOptRes), chk1600, FALSE, FALSE, 0);

  label7 = gtk_label_new ("Resolution");
  gtk_widget_show (label7);
  gtk_frame_set_label_widget (GTK_FRAME (frmOptRes), label7);

  frmOptDetail = gtk_frame_new (NULL);
  gtk_widget_show (frmOptDetail);
  gtk_table_attach (GTK_TABLE (tblMainOptions), frmOptDetail, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 2, 2);

  vbOptDetail = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbOptDetail);
  gtk_container_add (GTK_CONTAINER (frmOptDetail), vbOptDetail);
  gtk_container_set_border_width (GTK_CONTAINER (vbOptDetail), 5);

  radDtlLow = gtk_radio_button_new_with_mnemonic (NULL, "High _Performance");
  gtk_widget_show (radDtlLow);
  gtk_box_pack_start (GTK_BOX (vbOptDetail), radDtlLow, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radDtlLow), radDtlLow_group);
  radDtlLow_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radDtlLow));

  radDtlHigh = gtk_radio_button_new_with_mnemonic (NULL, "High Image _Quality");
  gtk_widget_show (radDtlHigh);
  gtk_box_pack_start (GTK_BOX (vbOptDetail), radDtlHigh, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radDtlHigh), radDtlLow_group);
  radDtlLow_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radDtlHigh));

  radDtlCurrent = gtk_radio_button_new_with_mnemonic (NULL, "_Current Settings");
  gtk_widget_show (radDtlCurrent);
  gtk_box_pack_start (GTK_BOX (vbOptDetail), radDtlCurrent, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radDtlCurrent), radDtlLow_group);
  radDtlLow_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radDtlCurrent));
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radDtlCurrent), TRUE);

  radDtlCustom = gtk_radio_button_new_with_mnemonic (NULL, "Custom ._ini Files:");
  gtk_widget_show (radDtlCustom);
  gtk_box_pack_start (GTK_BOX (vbOptDetail), radDtlCustom, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radDtlCustom), radDtlLow_group);
  radDtlLow_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radDtlCustom));

  btnUMarkConf = gtk_button_new ();
  gtk_widget_show (btnUMarkConf);
  gtk_box_pack_start (GTK_BOX (vbOptDetail), btnUMarkConf, FALSE, FALSE, 0);

  alignment17 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment17);
  gtk_container_add (GTK_CONTAINER (btnUMarkConf), alignment17);

  hbox17 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox17);
  gtk_container_add (GTK_CONTAINER (alignment17), hbox17);

  image17 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image17);
  gtk_box_pack_start (GTK_BOX (hbox17), image17, FALSE, FALSE, 0);

  label29 = gtk_label_new_with_mnemonic (" Configure .ini Files..");
  gtk_widget_show (label29);
  gtk_box_pack_start (GTK_BOX (hbox17), label29, FALSE, FALSE, 0);

  label8 = gtk_label_new ("Detail Level");
  gtk_widget_show (label8);
  gtk_frame_set_label_widget (GTK_FRAME (frmOptDetail), label8);

  btnArrow = gtk_button_new_with_mnemonic (">");
  gtk_widget_show (btnArrow);
  gtk_box_pack_start (GTK_BOX (hbMainOuter), btnArrow, FALSE, FALSE, 3);
  gtk_tooltips_set_tip (tooltips, btnArrow, "Add map to list", NULL);

  vbbBatchControls = gtk_vbutton_box_new ();
  gtk_widget_show (vbbBatchControls);
  gtk_box_pack_start (GTK_BOX (hbMainOuter), vbbBatchControls, FALSE, FALSE, 3);

  btnPresets = gtk_button_new ();
  gtk_widget_show (btnPresets);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnPresets);
  GTK_WIDGET_SET_FLAGS (btnPresets, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, btnPresets, "Preset map lists", NULL);

  alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment3);
  gtk_container_add (GTK_CONTAINER (btnPresets), alignment3);

  hbox4 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox4);
  gtk_container_add (GTK_CONTAINER (alignment3), hbox4);

  image4 = gtk_image_new_from_stock ("gtk-justify-left", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image4);
  gtk_box_pack_start (GTK_BOX (hbox4), image4, FALSE, FALSE, 0);

  label9 = gtk_label_new_with_mnemonic ("Presets");
  gtk_widget_show (label9);
  gtk_box_pack_start (GTK_BOX (hbox4), label9, FALSE, FALSE, 0);

  btnMoveTop = gtk_button_new ();
  gtk_widget_show (btnMoveTop);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnMoveTop);
  GTK_WIDGET_SET_FLAGS (btnMoveTop, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, btnMoveTop, "You may also drag items for sorting", NULL);

  alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment4);
  gtk_container_add (GTK_CONTAINER (btnMoveTop), alignment4);

  hbox5 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox5);
  gtk_container_add (GTK_CONTAINER (alignment4), hbox5);

  image5 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image5);
  gtk_box_pack_start (GTK_BOX (hbox5), image5, FALSE, FALSE, 0);

  label10 = gtk_label_new_with_mnemonic ("Top");
  gtk_widget_show (label10);
  gtk_box_pack_start (GTK_BOX (hbox5), label10, FALSE, FALSE, 0);

  btnMoveBottom = gtk_button_new ();
  gtk_widget_show (btnMoveBottom);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnMoveBottom);
  GTK_WIDGET_SET_FLAGS (btnMoveBottom, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, btnMoveBottom, "You may also drag items for sorting", NULL);

  alignment5 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment5);
  gtk_container_add (GTK_CONTAINER (btnMoveBottom), alignment5);

  hbox6 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox6);
  gtk_container_add (GTK_CONTAINER (alignment5), hbox6);

  image6 = gtk_image_new_from_stock ("gtk-go-down", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image6);
  gtk_box_pack_start (GTK_BOX (hbox6), image6, FALSE, FALSE, 0);

  label11 = gtk_label_new_with_mnemonic ("Bottom");
  gtk_widget_show (label11);
  gtk_box_pack_start (GTK_BOX (hbox6), label11, FALSE, FALSE, 0);

  btnAdd = gtk_button_new_from_stock ("gtk-add");
  gtk_widget_show (btnAdd);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnAdd);
  GTK_WIDGET_SET_FLAGS (btnAdd, GTK_CAN_DEFAULT);

  btnRemove = gtk_button_new_from_stock ("gtk-remove");
  gtk_widget_show (btnRemove);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnRemove);
  GTK_WIDGET_SET_FLAGS (btnRemove, GTK_CAN_DEFAULT);

  btnClear = gtk_button_new ();
  gtk_widget_show (btnClear);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnClear);
  GTK_WIDGET_SET_FLAGS (btnClear, GTK_CAN_DEFAULT);

  alignment6 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment6);
  gtk_container_add (GTK_CONTAINER (btnClear), alignment6);

  hbox7 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox7);
  gtk_container_add (GTK_CONTAINER (alignment6), hbox7);

  image7 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image7);
  gtk_box_pack_start (GTK_BOX (hbox7), image7, FALSE, FALSE, 0);

  label12 = gtk_label_new_with_mnemonic ("Clear");
  gtk_widget_show (label12);
  gtk_box_pack_start (GTK_BOX (hbox7), label12, FALSE, FALSE, 0);

  btnLoadList = gtk_button_new ();
  gtk_widget_show (btnLoadList);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnLoadList);
  GTK_WIDGET_SET_FLAGS (btnLoadList, GTK_CAN_DEFAULT);

  alignment7 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment7);
  gtk_container_add (GTK_CONTAINER (btnLoadList), alignment7);

  hbox8 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox8);
  gtk_container_add (GTK_CONTAINER (alignment7), hbox8);

  image8 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image8);
  gtk_box_pack_start (GTK_BOX (hbox8), image8, FALSE, FALSE, 0);

  label13 = gtk_label_new_with_mnemonic ("_Load...");
  gtk_widget_show (label13);
  gtk_box_pack_start (GTK_BOX (hbox8), label13, FALSE, FALSE, 0);

  btnSaveList = gtk_button_new ();
  gtk_widget_show (btnSaveList);
  gtk_container_add (GTK_CONTAINER (vbbBatchControls), btnSaveList);
  GTK_WIDGET_SET_FLAGS (btnSaveList, GTK_CAN_DEFAULT);

  alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment8);
  gtk_container_add (GTK_CONTAINER (btnSaveList), alignment8);

  hbox9 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox9);
  gtk_container_add (GTK_CONTAINER (alignment8), hbox9);

  image9 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image9);
  gtk_box_pack_start (GTK_BOX (hbox9), image9, FALSE, FALSE, 0);

  label14 = gtk_label_new_with_mnemonic ("_Save...");
  gtk_widget_show (label14);
  gtk_box_pack_start (GTK_BOX (hbox9), label14, FALSE, FALSE, 0);

  vbBatchList = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbBatchList);
  gtk_box_pack_start (GTK_BOX (hbMainOuter), vbBatchList, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbBatchList), 5);

  label15 = gtk_label_new ("Batch Benchmark");
  gtk_widget_show (label15);
  gtk_box_pack_start (GTK_BOX (vbBatchList), label15, FALSE, TRUE, 3);

  swBatchList = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (swBatchList);
  gtk_box_pack_start (GTK_BOX (vbBatchList), swBatchList, TRUE, TRUE, 3);
  gtk_widget_set_size_request (swBatchList, 204, -1);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swBatchList), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swBatchList), GTK_SHADOW_ETCHED_IN);

  tvBatchList = gtk_tree_view_new ();
  gtk_widget_show (tvBatchList);
  gtk_container_add (GTK_CONTAINER (swBatchList), tvBatchList);
  gtk_widget_set_size_request (tvBatchList, 200, -1);
  gtk_tooltips_set_tip (tooltips, tvBatchList, "List of maps to benchmark", NULL);
  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (tvBatchList), TRUE);

  label16 = gtk_label_new ("<b>UMark</b> version 2.0.0 for Linux");
  gtk_widget_show (label16);
  gtk_frame_set_label_widget (GTK_FRAME (frmMain), label16);
  gtk_label_set_use_markup (GTK_LABEL (label16), TRUE);

  g_signal_connect ((gpointer) spnBots, "changed",
                    G_CALLBACK (on_spnbots_changed),
                    NULL);
  g_signal_connect ((gpointer) CmbMaps, "changed",
                    G_CALLBACK (on_maps_changed),
                    NULL);
  g_signal_connect ((gpointer) chkTimeDemo, "clicked",
                    G_CALLBACK (on_chkTimeDemo_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnBenchmark, "clicked",
                    G_CALLBACK (on_btnbenchmark_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnResults, "clicked",
                    G_CALLBACK (on_btnresults_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnAbout, "clicked",
                    G_CALLBACK (on_btnabout_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnQuit, "clicked",
                    G_CALLBACK (on_btnquit_clicked),
                    NULL);
  g_signal_connect ((gpointer) CmbVersion, "changed",
                    G_CALLBACK (on_version_changed),
                    NULL);
  g_signal_connect ((gpointer) chkFullScr, "toggled",
                    G_CALLBACK (on_chkfullscr_toggled),
                    NULL);
  g_signal_connect ((gpointer) chk640, "toggled",
                    G_CALLBACK (on_chkres640_toggled),
                    NULL);
  g_signal_connect ((gpointer) chk800, "toggled",
                    G_CALLBACK (on_chkres800_toggled),
                    NULL);
  g_signal_connect ((gpointer) chk1024, "toggled",
                    G_CALLBACK (on_chkres1024_toggled),
                    NULL);
  g_signal_connect ((gpointer) chk1280, "toggled",
                    G_CALLBACK (on_chkres1280_toggled),
                    NULL);
  g_signal_connect ((gpointer) chk1600, "toggled",
                    G_CALLBACK (on_chkres1600_toggled),
                    NULL);
  g_signal_connect ((gpointer) radDtlLow, "clicked",
                    G_CALLBACK (on_raddtllow_clicked),
                    NULL);
  g_signal_connect ((gpointer) radDtlHigh, "clicked",
                    G_CALLBACK (on_raddtlhigh_clicked),
                    NULL);
  g_signal_connect ((gpointer) radDtlCurrent, "clicked",
                    G_CALLBACK (on_raddtlcurrent_clicked),
                    NULL);
  g_signal_connect ((gpointer) radDtlCustom, "clicked",
                    G_CALLBACK (on_raddtlcustom_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnUMarkConf, "clicked",
                    G_CALLBACK (on_btnUMarkConf_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnArrow, "clicked",
                    G_CALLBACK (on_btnarrow_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnPresets, "clicked",
                    G_CALLBACK (on_btnpreset_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnMoveTop, "clicked",
                    G_CALLBACK (on_btnmoveup_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnMoveBottom, "clicked",
                    G_CALLBACK (on_btnmovedown_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnAdd, "clicked",
                    G_CALLBACK (on_btnadd_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnRemove, "clicked",
                    G_CALLBACK (on_btnremove_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnClear, "clicked",
                    G_CALLBACK (on_btnclear_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnLoadList, "clicked",
                    G_CALLBACK (on_btnloadlist_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnSaveList, "clicked",
                    G_CALLBACK (on_btnsavelist_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (UMarkDlg, UMarkDlg, "UMarkDlg");
  GLADE_HOOKUP_OBJECT (UMarkDlg, frmMain, "frmMain");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbMainOuter, "hbMainOuter");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbMainOuter, "vbMainOuter");
  GLADE_HOOKUP_OBJECT (UMarkDlg, umark_banner, "umark_banner");
  GLADE_HOOKUP_OBJECT (UMarkDlg, ProgressBatch, "ProgressBatch");
  GLADE_HOOKUP_OBJECT (UMarkDlg, tblMainOptions, "tblMainOptions");
  GLADE_HOOKUP_OBJECT (UMarkDlg, frmOptBench, "frmOptBench");
  GLADE_HOOKUP_OBJECT (UMarkDlg, tblOptBench, "tblOptBench");
  GLADE_HOOKUP_OBJECT (UMarkDlg, spnBots, "spnBots");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label2, "label2");
  GLADE_HOOKUP_OBJECT (UMarkDlg, CmbMaps, "CmbMaps");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbOptBench, "hbOptBench");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label24, "label24");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chkTimeDemo, "chkTimeDemo");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label3, "label3");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbbMainButtons, "vbbMainButtons");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnBenchmark, "btnBenchmark");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment1, "alignment1");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox2, "hbox2");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image2, "image2");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label4, "label4");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnResults, "btnResults");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox3, "hbox3");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image3, "image3");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label5, "label5");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnAbout, "btnAbout");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment14, "alignment14");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox15, "hbox15");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image14, "image14");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label23, "label23");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnQuit, "btnQuit");
  GLADE_HOOKUP_OBJECT (UMarkDlg, frmOptVersion, "frmOptVersion");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbVersion, "vbVersion");
  GLADE_HOOKUP_OBJECT (UMarkDlg, CmbVersion, "CmbVersion");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chkFullScr, "chkFullScr");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label6, "label6");
  GLADE_HOOKUP_OBJECT (UMarkDlg, frmOptRes, "frmOptRes");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbOptRes, "vbOptRes");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chk640, "chk640");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chk800, "chk800");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chk1024, "chk1024");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chk1280, "chk1280");
  GLADE_HOOKUP_OBJECT (UMarkDlg, chk1600, "chk1600");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label7, "label7");
  GLADE_HOOKUP_OBJECT (UMarkDlg, frmOptDetail, "frmOptDetail");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbOptDetail, "vbOptDetail");
  GLADE_HOOKUP_OBJECT (UMarkDlg, radDtlLow, "radDtlLow");
  GLADE_HOOKUP_OBJECT (UMarkDlg, radDtlHigh, "radDtlHigh");
  GLADE_HOOKUP_OBJECT (UMarkDlg, radDtlCurrent, "radDtlCurrent");
  GLADE_HOOKUP_OBJECT (UMarkDlg, radDtlCustom, "radDtlCustom");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnUMarkConf, "btnUMarkConf");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment17, "alignment17");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox17, "hbox17");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image17, "image17");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label29, "label29");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label8, "label8");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnArrow, "btnArrow");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbbBatchControls, "vbbBatchControls");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnPresets, "btnPresets");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment3, "alignment3");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox4, "hbox4");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image4, "image4");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label9, "label9");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnMoveTop, "btnMoveTop");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment4, "alignment4");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox5, "hbox5");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image5, "image5");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label10, "label10");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnMoveBottom, "btnMoveBottom");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment5, "alignment5");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox6, "hbox6");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image6, "image6");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label11, "label11");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnAdd, "btnAdd");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnRemove, "btnRemove");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnClear, "btnClear");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment6, "alignment6");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox7, "hbox7");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image7, "image7");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label12, "label12");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnLoadList, "btnLoadList");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment7, "alignment7");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox8, "hbox8");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image8, "image8");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label13, "label13");
  GLADE_HOOKUP_OBJECT (UMarkDlg, btnSaveList, "btnSaveList");
  GLADE_HOOKUP_OBJECT (UMarkDlg, alignment8, "alignment8");
  GLADE_HOOKUP_OBJECT (UMarkDlg, hbox9, "hbox9");
  GLADE_HOOKUP_OBJECT (UMarkDlg, image9, "image9");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label14, "label14");
  GLADE_HOOKUP_OBJECT (UMarkDlg, vbBatchList, "vbBatchList");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label15, "label15");
  GLADE_HOOKUP_OBJECT (UMarkDlg, swBatchList, "swBatchList");
  GLADE_HOOKUP_OBJECT (UMarkDlg, tvBatchList, "tvBatchList");
  GLADE_HOOKUP_OBJECT (UMarkDlg, label16, "label16");
  GLADE_HOOKUP_OBJECT_NO_REF (UMarkDlg, tooltips, "tooltips");

  return UMarkDlg;
}

GtkWidget*
create_ResultsDlg (void)
{
  GtkWidget *ResultsDlg;
  GdkPixbuf *ResultsDlg_icon_pixbuf;
  GtkWidget *frmResults;
  GtkWidget *alignment9;
  GtkWidget *vbResults;
  GtkWidget *swResults;
  GtkWidget *tvResults;
  GtkWidget *hbResults;
  GtkWidget *hbbResultsLeft;
  GtkWidget *btnCompare;
  GtkWidget *btnSubmit;
  GtkWidget *hbbResultsRight;
  GtkWidget *btnLoadLog;
  GtkWidget *alignment10;
  GtkWidget *hbox11;
  GtkWidget *image10;
  GtkWidget *label17;
  GtkWidget *BtnSaveLog;
  GtkWidget *alignment11;
  GtkWidget *hbox12;
  GtkWidget *image11;
  GtkWidget *label18;
  GtkWidget *btnDismissResults;
  GtkWidget *alignment12;
  GtkWidget *hbox13;
  GtkWidget *image12;
  GtkWidget *label19;
  GtkWidget *label20;

  ResultsDlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_size_request (ResultsDlg, 696, 256);
  gtk_window_set_title (GTK_WINDOW (ResultsDlg), "UMark Results");
  gtk_window_set_position (GTK_WINDOW (ResultsDlg), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (ResultsDlg), TRUE);
  ResultsDlg_icon_pixbuf = create_pixbuf ("umark_icon.png");
  if (ResultsDlg_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (ResultsDlg), ResultsDlg_icon_pixbuf);
      gdk_pixbuf_unref (ResultsDlg_icon_pixbuf);
    }

  frmResults = gtk_frame_new (NULL);
  gtk_widget_show (frmResults);
  gtk_container_add (GTK_CONTAINER (ResultsDlg), frmResults);
  gtk_container_set_border_width (GTK_CONTAINER (frmResults), 10);

  alignment9 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment9);
  gtk_container_add (GTK_CONTAINER (frmResults), alignment9);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment9), 0, 0, 12, 0);

  vbResults = gtk_vbox_new (FALSE, 2);
  gtk_widget_show (vbResults);
  gtk_container_add (GTK_CONTAINER (alignment9), vbResults);
  gtk_container_set_border_width (GTK_CONTAINER (vbResults), 5);

  swResults = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (swResults);
  gtk_box_pack_start (GTK_BOX (vbResults), swResults, TRUE, TRUE, 3);

  tvResults = gtk_tree_view_new ();
  gtk_widget_show (tvResults);
  gtk_container_add (GTK_CONTAINER (swResults), tvResults);
  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (tvResults), TRUE);

  hbResults = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbResults);
  gtk_box_pack_start (GTK_BOX (vbResults), hbResults, FALSE, FALSE, 0);

  hbbResultsLeft = gtk_hbutton_box_new ();
  gtk_widget_show (hbbResultsLeft);
  gtk_box_pack_start (GTK_BOX (hbResults), hbbResultsLeft, FALSE, TRUE, 0);

  btnCompare = gtk_button_new_with_mnemonic ("_Compare Selected Maps");
  gtk_widget_show (btnCompare);
  gtk_container_add (GTK_CONTAINER (hbbResultsLeft), btnCompare);
  GTK_WIDGET_SET_FLAGS (btnCompare, GTK_CAN_DEFAULT);

  btnSubmit = gtk_button_new_with_mnemonic ("_View Graphs / Submit");
  gtk_widget_show (btnSubmit);
  gtk_container_add (GTK_CONTAINER (hbbResultsLeft), btnSubmit);
  GTK_WIDGET_SET_FLAGS (btnSubmit, GTK_CAN_DEFAULT);

  hbbResultsRight = gtk_hbutton_box_new ();
  gtk_widget_show (hbbResultsRight);
  gtk_box_pack_end (GTK_BOX (hbResults), hbbResultsRight, FALSE, FALSE, 0);

  btnLoadLog = gtk_button_new ();
  gtk_widget_show (btnLoadLog);
  gtk_container_add (GTK_CONTAINER (hbbResultsRight), btnLoadLog);
  GTK_WIDGET_SET_FLAGS (btnLoadLog, GTK_CAN_DEFAULT);

  alignment10 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment10);
  gtk_container_add (GTK_CONTAINER (btnLoadLog), alignment10);

  hbox11 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox11);
  gtk_container_add (GTK_CONTAINER (alignment10), hbox11);

  image10 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image10);
  gtk_box_pack_start (GTK_BOX (hbox11), image10, FALSE, FALSE, 0);

  label17 = gtk_label_new_with_mnemonic ("_Load...");
  gtk_widget_show (label17);
  gtk_box_pack_start (GTK_BOX (hbox11), label17, FALSE, FALSE, 0);

  BtnSaveLog = gtk_button_new ();
  gtk_widget_show (BtnSaveLog);
  gtk_container_add (GTK_CONTAINER (hbbResultsRight), BtnSaveLog);
  GTK_WIDGET_SET_FLAGS (BtnSaveLog, GTK_CAN_DEFAULT);

  alignment11 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment11);
  gtk_container_add (GTK_CONTAINER (BtnSaveLog), alignment11);

  hbox12 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox12);
  gtk_container_add (GTK_CONTAINER (alignment11), hbox12);

  image11 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image11);
  gtk_box_pack_start (GTK_BOX (hbox12), image11, FALSE, FALSE, 0);

  label18 = gtk_label_new_with_mnemonic ("_Save...");
  gtk_widget_show (label18);
  gtk_box_pack_start (GTK_BOX (hbox12), label18, FALSE, FALSE, 0);

  btnDismissResults = gtk_button_new ();
  gtk_widget_show (btnDismissResults);
  gtk_container_add (GTK_CONTAINER (hbbResultsRight), btnDismissResults);
  GTK_WIDGET_SET_FLAGS (btnDismissResults, GTK_CAN_DEFAULT);

  alignment12 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment12);
  gtk_container_add (GTK_CONTAINER (btnDismissResults), alignment12);

  hbox13 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox13);
  gtk_container_add (GTK_CONTAINER (alignment12), hbox13);

  image12 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image12);
  gtk_box_pack_start (GTK_BOX (hbox13), image12, FALSE, FALSE, 0);

  label19 = gtk_label_new_with_mnemonic ("_Dismiss");
  gtk_widget_show (label19);
  gtk_box_pack_start (GTK_BOX (hbox13), label19, FALSE, FALSE, 0);

  label20 = gtk_label_new ("<b>UMark</b> Results");
  gtk_widget_show (label20);
  gtk_frame_set_label_widget (GTK_FRAME (frmResults), label20);
  gtk_label_set_use_markup (GTK_LABEL (label20), TRUE);

  g_signal_connect ((gpointer) btnCompare, "clicked",
                    G_CALLBACK (on_btncompare_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnSubmit, "clicked",
                    G_CALLBACK (on_btnsubmit_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnLoadLog, "clicked",
                    G_CALLBACK (on_btnloadlog_clicked),
                    NULL);
  g_signal_connect ((gpointer) BtnSaveLog, "clicked",
                    G_CALLBACK (on_btnsavelog_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnDismissResults, "clicked",
                    G_CALLBACK (on_btndismissresults_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (ResultsDlg, ResultsDlg, "ResultsDlg");
  GLADE_HOOKUP_OBJECT (ResultsDlg, frmResults, "frmResults");
  GLADE_HOOKUP_OBJECT (ResultsDlg, alignment9, "alignment9");
  GLADE_HOOKUP_OBJECT (ResultsDlg, vbResults, "vbResults");
  GLADE_HOOKUP_OBJECT (ResultsDlg, swResults, "swResults");
  GLADE_HOOKUP_OBJECT (ResultsDlg, tvResults, "tvResults");
  GLADE_HOOKUP_OBJECT (ResultsDlg, hbResults, "hbResults");
  GLADE_HOOKUP_OBJECT (ResultsDlg, hbbResultsLeft, "hbbResultsLeft");
  GLADE_HOOKUP_OBJECT (ResultsDlg, btnCompare, "btnCompare");
  GLADE_HOOKUP_OBJECT (ResultsDlg, btnSubmit, "btnSubmit");
  GLADE_HOOKUP_OBJECT (ResultsDlg, hbbResultsRight, "hbbResultsRight");
  GLADE_HOOKUP_OBJECT (ResultsDlg, btnLoadLog, "btnLoadLog");
  GLADE_HOOKUP_OBJECT (ResultsDlg, alignment10, "alignment10");
  GLADE_HOOKUP_OBJECT (ResultsDlg, hbox11, "hbox11");
  GLADE_HOOKUP_OBJECT (ResultsDlg, image10, "image10");
  GLADE_HOOKUP_OBJECT (ResultsDlg, label17, "label17");
  GLADE_HOOKUP_OBJECT (ResultsDlg, BtnSaveLog, "BtnSaveLog");
  GLADE_HOOKUP_OBJECT (ResultsDlg, alignment11, "alignment11");
  GLADE_HOOKUP_OBJECT (ResultsDlg, hbox12, "hbox12");
  GLADE_HOOKUP_OBJECT (ResultsDlg, image11, "image11");
  GLADE_HOOKUP_OBJECT (ResultsDlg, label18, "label18");
  GLADE_HOOKUP_OBJECT (ResultsDlg, btnDismissResults, "btnDismissResults");
  GLADE_HOOKUP_OBJECT (ResultsDlg, alignment12, "alignment12");
  GLADE_HOOKUP_OBJECT (ResultsDlg, hbox13, "hbox13");
  GLADE_HOOKUP_OBJECT (ResultsDlg, image12, "image12");
  GLADE_HOOKUP_OBJECT (ResultsDlg, label19, "label19");
  GLADE_HOOKUP_OBJECT (ResultsDlg, label20, "label20");

  return ResultsDlg;
}

GtkWidget*
create_PresetDlg (void)
{
  GtkWidget *PresetDlg;
  GdkPixbuf *PresetDlg_icon_pixbuf;
  GtkWidget *vbDlgPreset;
  GtkWidget *frmDlgPreset;
  GtkWidget *vbPresetsChoice;
  GtkWidget *radPreBM;
  GSList *radPreBM_group = NULL;
  GtkWidget *radPreFB;
  GtkWidget *radPreDM;
  GtkWidget *radPreD4;
  GtkWidget *radPreDE;
  GtkWidget *radPreEg;
  GtkWidget *radPreU3;
  GtkWidget *radPreU4;
  GtkWidget *label22;
  GtkWidget *hbbDlgPreset;
  GtkWidget *btnPresetUse;
  GtkWidget *alignment13;
  GtkWidget *hbox14;
  GtkWidget *image13;
  GtkWidget *label21;
  GtkWidget *btnPresetAdd;
  GtkWidget *btnPresetCancel;

  PresetDlg = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (PresetDlg), "Preset Map Lists");
  gtk_window_set_position (GTK_WINDOW (PresetDlg), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (PresetDlg), TRUE);
  gtk_window_set_resizable (GTK_WINDOW (PresetDlg), FALSE);
  PresetDlg_icon_pixbuf = create_pixbuf ("umark_icon.png");
  if (PresetDlg_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (PresetDlg), PresetDlg_icon_pixbuf);
      gdk_pixbuf_unref (PresetDlg_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (PresetDlg), GDK_WINDOW_TYPE_HINT_DIALOG);

  vbDlgPreset = GTK_DIALOG (PresetDlg)->vbox;
  gtk_widget_show (vbDlgPreset);

  frmDlgPreset = gtk_frame_new (NULL);
  gtk_widget_show (frmDlgPreset);
  gtk_box_pack_start (GTK_BOX (vbDlgPreset), frmDlgPreset, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frmDlgPreset), 6);

  vbPresetsChoice = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbPresetsChoice);
  gtk_container_add (GTK_CONTAINER (frmDlgPreset), vbPresetsChoice);
  gtk_container_set_border_width (GTK_CONTAINER (vbPresetsChoice), 5);

  radPreBM = gtk_radio_button_new_with_mnemonic (NULL, "Unreal Tournament 2003 _Botmatch");
  gtk_widget_show (radPreBM);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreBM, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreBM), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreBM));
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radPreBM), TRUE);

  radPreFB = gtk_radio_button_new_with_mnemonic (NULL, "Unreal Tournament 2003 _Flyby");
  gtk_widget_show (radPreFB);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreFB, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreFB), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreFB));

  radPreDM = gtk_radio_button_new_with_mnemonic (NULL, "Unreal Tournament 200_3 Demo Maps");
  gtk_widget_show (radPreDM);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreDM, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreDM), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreDM));

  radPreD4 = gtk_radio_button_new_with_mnemonic (NULL, "Unreal Tournament 200_4 Demo Maps");
  gtk_widget_show (radPreD4);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreD4, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreD4), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreD4));

  radPreDE = gtk_radio_button_new_with_mnemonic (NULL, "Digital E_xtremes Bonus Pack Maps");
  gtk_widget_show (radPreDE);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreDE, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreDE), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreDE));

  radPreEg = gtk_radio_button_new_with_mnemonic (NULL, "_Epic Games Bonus Pack Maps");
  gtk_widget_show (radPreEg);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreEg, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreEg), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreEg));

  radPreU3 = gtk_radio_button_new_with_mnemonic (NULL, "The Official _UMark 2003 Test");
  gtk_widget_show (radPreU3);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreU3, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreU3), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreU3));

  radPreU4 = gtk_radio_button_new_with_mnemonic (NULL, "The Official U_Mark 2004 Test");
  gtk_widget_show (radPreU4);
  gtk_box_pack_start (GTK_BOX (vbPresetsChoice), radPreU4, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radPreU4), radPreBM_group);
  radPreBM_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radPreU4));

  label22 = gtk_label_new ("<b>UMark</b> Preset Lists");
  gtk_widget_show (label22);
  gtk_frame_set_label_widget (GTK_FRAME (frmDlgPreset), label22);
  gtk_label_set_use_markup (GTK_LABEL (label22), TRUE);

  hbbDlgPreset = GTK_DIALOG (PresetDlg)->action_area;
  gtk_widget_show (hbbDlgPreset);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbbDlgPreset), GTK_BUTTONBOX_END);

  btnPresetUse = gtk_button_new ();
  gtk_widget_show (btnPresetUse);
  gtk_dialog_add_action_widget (GTK_DIALOG (PresetDlg), btnPresetUse, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (btnPresetUse, GTK_CAN_DEFAULT);

  alignment13 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment13);
  gtk_container_add (GTK_CONTAINER (btnPresetUse), alignment13);

  hbox14 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox14);
  gtk_container_add (GTK_CONTAINER (alignment13), hbox14);

  image13 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image13);
  gtk_box_pack_start (GTK_BOX (hbox14), image13, FALSE, FALSE, 0);

  label21 = gtk_label_new_with_mnemonic ("_Use");
  gtk_widget_show (label21);
  gtk_box_pack_start (GTK_BOX (hbox14), label21, FALSE, FALSE, 0);

  btnPresetAdd = gtk_button_new_from_stock ("gtk-add");
  gtk_widget_show (btnPresetAdd);
  gtk_dialog_add_action_widget (GTK_DIALOG (PresetDlg), btnPresetAdd, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (btnPresetAdd, GTK_CAN_DEFAULT);

  btnPresetCancel = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (btnPresetCancel);
  gtk_dialog_add_action_widget (GTK_DIALOG (PresetDlg), btnPresetCancel, GTK_RESPONSE_CANCEL);
  GTK_WIDGET_SET_FLAGS (btnPresetCancel, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) radPreBM, "clicked",
                    G_CALLBACK (on_radprebm_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreFB, "clicked",
                    G_CALLBACK (on_radprefb_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreDM, "clicked",
                    G_CALLBACK (on_radpredm_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreD4, "clicked",
                    G_CALLBACK (on_radpred4_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreDE, "clicked",
                    G_CALLBACK (on_radprede_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreEg, "clicked",
                    G_CALLBACK (on_radpreeg_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreU3, "clicked",
                    G_CALLBACK (on_radpreu3_clicked),
                    NULL);
  g_signal_connect ((gpointer) radPreU4, "clicked",
                    G_CALLBACK (on_radpreu4_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnPresetUse, "clicked",
                    G_CALLBACK (on_BtnPresetUse_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnPresetAdd, "clicked",
                    G_CALLBACK (on_BtnPresetAdd_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnPresetCancel, "clicked",
                    G_CALLBACK (on_BtnPresetCancel_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (PresetDlg, PresetDlg, "PresetDlg");
  GLADE_HOOKUP_OBJECT_NO_REF (PresetDlg, vbDlgPreset, "vbDlgPreset");
  GLADE_HOOKUP_OBJECT (PresetDlg, frmDlgPreset, "frmDlgPreset");
  GLADE_HOOKUP_OBJECT (PresetDlg, vbPresetsChoice, "vbPresetsChoice");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreBM, "radPreBM");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreFB, "radPreFB");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreDM, "radPreDM");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreD4, "radPreD4");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreDE, "radPreDE");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreEg, "radPreEg");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreU3, "radPreU3");
  GLADE_HOOKUP_OBJECT (PresetDlg, radPreU4, "radPreU4");
  GLADE_HOOKUP_OBJECT (PresetDlg, label22, "label22");
  GLADE_HOOKUP_OBJECT_NO_REF (PresetDlg, hbbDlgPreset, "hbbDlgPreset");
  GLADE_HOOKUP_OBJECT (PresetDlg, btnPresetUse, "btnPresetUse");
  GLADE_HOOKUP_OBJECT (PresetDlg, alignment13, "alignment13");
  GLADE_HOOKUP_OBJECT (PresetDlg, hbox14, "hbox14");
  GLADE_HOOKUP_OBJECT (PresetDlg, image13, "image13");
  GLADE_HOOKUP_OBJECT (PresetDlg, label21, "label21");
  GLADE_HOOKUP_OBJECT (PresetDlg, btnPresetAdd, "btnPresetAdd");
  GLADE_HOOKUP_OBJECT (PresetDlg, btnPresetCancel, "btnPresetCancel");

  return PresetDlg;
}

GtkWidget*
create_MsgDlg (void)
{
  GtkWidget *MsgDlg;
  GdkPixbuf *MsgDlg_icon_pixbuf;
  GtkWidget *vbMsgDlg;
  GtkWidget *hbMsgDlg;
  GtkWidget *imgMsgDlg;
  GtkWidget *lblMsgDlg;
  GtkWidget *daaMsgDlg;
  GtkWidget *btnMsgOK;

  MsgDlg = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (MsgDlg), "UMark Message Dialog");
  gtk_window_set_position (GTK_WINDOW (MsgDlg), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (MsgDlg), TRUE);
  MsgDlg_icon_pixbuf = create_pixbuf ("umark_icon.png");
  if (MsgDlg_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (MsgDlg), MsgDlg_icon_pixbuf);
      gdk_pixbuf_unref (MsgDlg_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (MsgDlg), GDK_WINDOW_TYPE_HINT_DIALOG);

  vbMsgDlg = GTK_DIALOG (MsgDlg)->vbox;
  gtk_widget_show (vbMsgDlg);

  hbMsgDlg = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbMsgDlg);
  gtk_box_pack_start (GTK_BOX (vbMsgDlg), hbMsgDlg, TRUE, TRUE, 0);

  imgMsgDlg = create_pixmap (MsgDlg, "umark_icon.png");
  gtk_widget_show (imgMsgDlg);
  gtk_box_pack_start (GTK_BOX (hbMsgDlg), imgMsgDlg, FALSE, TRUE, 6);

  lblMsgDlg = gtk_label_new ("<b>Umark</b> information/warning/error message dialog label.");
  gtk_widget_show (lblMsgDlg);
  gtk_box_pack_start (GTK_BOX (hbMsgDlg), lblMsgDlg, TRUE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (lblMsgDlg, GTK_CAN_FOCUS);
  gtk_label_set_use_markup (GTK_LABEL (lblMsgDlg), TRUE);
  gtk_label_set_line_wrap (GTK_LABEL (lblMsgDlg), TRUE);
  gtk_label_set_selectable (GTK_LABEL (lblMsgDlg), TRUE);

  daaMsgDlg = GTK_DIALOG (MsgDlg)->action_area;
  gtk_widget_show (daaMsgDlg);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (daaMsgDlg), GTK_BUTTONBOX_SPREAD);

  btnMsgOK = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (btnMsgOK);
  gtk_dialog_add_action_widget (GTK_DIALOG (MsgDlg), btnMsgOK, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (btnMsgOK, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) btnMsgOK, "clicked",
                    G_CALLBACK (on_btnMsgOK_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (MsgDlg, MsgDlg, "MsgDlg");
  GLADE_HOOKUP_OBJECT_NO_REF (MsgDlg, vbMsgDlg, "vbMsgDlg");
  GLADE_HOOKUP_OBJECT (MsgDlg, hbMsgDlg, "hbMsgDlg");
  GLADE_HOOKUP_OBJECT (MsgDlg, imgMsgDlg, "imgMsgDlg");
  GLADE_HOOKUP_OBJECT (MsgDlg, lblMsgDlg, "lblMsgDlg");
  GLADE_HOOKUP_OBJECT_NO_REF (MsgDlg, daaMsgDlg, "daaMsgDlg");
  GLADE_HOOKUP_OBJECT (MsgDlg, btnMsgOK, "btnMsgOK");

  return MsgDlg;
}

GtkWidget*
create_UMarkConfDlg (void)
{
  GtkWidget *UMarkConfDlg;
  GdkPixbuf *UMarkConfDlg_icon_pixbuf;
  GtkWidget *dialog_vbox1;
  GtkWidget *frmUMarkConf;
  GtkWidget *alignment16;
  GtkWidget *tblUMarkConf;
  GtkWidget *label26;
  GtkWidget *entryIniFile;
  GtkWidget *btnBrowseIni;
  GtkWidget *label27;
  GtkWidget *entryIniUser;
  GtkWidget *btnBrowseUser;
  GtkWidget *labeliniconf;
  GtkWidget *dialog_action_area1;
  GtkWidget *btnConfCancel;
  GtkWidget *btnConfOK;

  UMarkConfDlg = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (UMarkConfDlg), "UMark Configuration");
  gtk_window_set_position (GTK_WINDOW (UMarkConfDlg), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (UMarkConfDlg), TRUE);
  gtk_window_set_resizable (GTK_WINDOW (UMarkConfDlg), FALSE);
  UMarkConfDlg_icon_pixbuf = create_pixbuf ("umark_icon.png");
  if (UMarkConfDlg_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (UMarkConfDlg), UMarkConfDlg_icon_pixbuf);
      gdk_pixbuf_unref (UMarkConfDlg_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (UMarkConfDlg), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox1 = GTK_DIALOG (UMarkConfDlg)->vbox;
  gtk_widget_show (dialog_vbox1);

  frmUMarkConf = gtk_frame_new (NULL);
  gtk_widget_show (frmUMarkConf);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), frmUMarkConf, TRUE, TRUE, 3);
  gtk_container_set_border_width (GTK_CONTAINER (frmUMarkConf), 5);

  alignment16 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment16);
  gtk_container_add (GTK_CONTAINER (frmUMarkConf), alignment16);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment16), 0, 8, 8, 8);

  tblUMarkConf = gtk_table_new (3, 3, FALSE);
  gtk_widget_show (tblUMarkConf);
  gtk_container_add (GTK_CONTAINER (alignment16), tblUMarkConf);
  gtk_table_set_row_spacings (GTK_TABLE (tblUMarkConf), 2);
  gtk_table_set_col_spacings (GTK_TABLE (tblUMarkConf), 2);

  label26 = gtk_label_new ("Ini File:");
  gtk_widget_show (label26);
  gtk_table_attach (GTK_TABLE (tblUMarkConf), label26, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5);

  entryIniFile = gtk_entry_new ();
  gtk_widget_show (entryIniFile);
  gtk_table_attach (GTK_TABLE (tblUMarkConf), entryIniFile, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  btnBrowseIni = gtk_button_new_with_mnemonic (" Browse... ");
  gtk_widget_show (btnBrowseIni);
  gtk_table_attach (GTK_TABLE (tblUMarkConf), btnBrowseIni, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label27 = gtk_label_new ("Ini User: ");
  gtk_widget_show (label27);
  gtk_table_attach (GTK_TABLE (tblUMarkConf), label27, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label27), 0, 0.5);

  entryIniUser = gtk_entry_new ();
  gtk_widget_show (entryIniUser);
  gtk_table_attach (GTK_TABLE (tblUMarkConf), entryIniUser, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  btnBrowseUser = gtk_button_new_with_mnemonic (" Browse... ");
  gtk_widget_show (btnBrowseUser);
  gtk_table_attach (GTK_TABLE (tblUMarkConf), btnBrowseUser, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  labeliniconf = gtk_label_new (" <b>UMark</b> Ini Configuration ");
  gtk_widget_show (labeliniconf);
  gtk_frame_set_label_widget (GTK_FRAME (frmUMarkConf), labeliniconf);
  gtk_label_set_use_markup (GTK_LABEL (labeliniconf), TRUE);

  dialog_action_area1 = GTK_DIALOG (UMarkConfDlg)->action_area;
  gtk_widget_show (dialog_action_area1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);

  btnConfCancel = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (btnConfCancel);
  gtk_dialog_add_action_widget (GTK_DIALOG (UMarkConfDlg), btnConfCancel, GTK_RESPONSE_CANCEL);
  GTK_WIDGET_SET_FLAGS (btnConfCancel, GTK_CAN_DEFAULT);

  btnConfOK = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (btnConfOK);
  gtk_dialog_add_action_widget (GTK_DIALOG (UMarkConfDlg), btnConfOK, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (btnConfOK, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) entryIniFile, "changed",
                    G_CALLBACK (on_entryIniFile_changed),
                    NULL);
  g_signal_connect ((gpointer) btnBrowseIni, "clicked",
                    G_CALLBACK (on_btnBrowseIni_clicked),
                    NULL);
  g_signal_connect ((gpointer) entryIniUser, "changed",
                    G_CALLBACK (on_entryIniUser_changed),
                    NULL);
  g_signal_connect ((gpointer) btnBrowseUser, "clicked",
                    G_CALLBACK (on_btnBrowseUser_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnConfCancel, "clicked",
                    G_CALLBACK (on_btnConfCancel_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnConfOK, "clicked",
                    G_CALLBACK (on_btnConfOK_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (UMarkConfDlg, UMarkConfDlg, "UMarkConfDlg");
  GLADE_HOOKUP_OBJECT_NO_REF (UMarkConfDlg, dialog_vbox1, "dialog_vbox1");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, frmUMarkConf, "frmUMarkConf");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, alignment16, "alignment16");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, tblUMarkConf, "tblUMarkConf");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, label26, "label26");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, entryIniFile, "entryIniFile");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, btnBrowseIni, "btnBrowseIni");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, label27, "label27");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, entryIniUser, "entryIniUser");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, btnBrowseUser, "btnBrowseUser");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, labeliniconf, "labeliniconf");
  GLADE_HOOKUP_OBJECT_NO_REF (UMarkConfDlg, dialog_action_area1, "dialog_action_area1");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, btnConfCancel, "btnConfCancel");
  GLADE_HOOKUP_OBJECT (UMarkConfDlg, btnConfOK, "btnConfOK");

  return UMarkConfDlg;
}

GtkWidget*
create_AboutDlg (void)
{
  GtkWidget *AboutDlg;
  GdkPixbuf *AboutDlg_icon_pixbuf;
  GtkWidget *vbAboutMain;
  GtkWidget *vbAboutContent;
  GtkWidget *imgAboutUMark;
  GtkWidget *label28;
  GtkWidget *daaAboutDlg;
  GtkWidget *btnAboutDocs;
  GtkWidget *btnAboutOnline;
  GtkWidget *alignment18;
  GtkWidget *hbox18;
  GtkWidget *image18;
  GtkWidget *label30;
  GtkWidget *btnAboutUpdates;
  GtkWidget *alignment19;
  GtkWidget *hbox19;
  GtkWidget *image19;
  GtkWidget *label31;
  GtkWidget *btnCloseAbout;

  AboutDlg = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (AboutDlg), "About UMark for Linux");
  gtk_window_set_position (GTK_WINDOW (AboutDlg), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (AboutDlg), TRUE);
  gtk_window_set_resizable (GTK_WINDOW (AboutDlg), FALSE);
  AboutDlg_icon_pixbuf = create_pixbuf ("umark_icon.png");
  if (AboutDlg_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (AboutDlg), AboutDlg_icon_pixbuf);
      gdk_pixbuf_unref (AboutDlg_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (AboutDlg), GDK_WINDOW_TYPE_HINT_DIALOG);

  vbAboutMain = GTK_DIALOG (AboutDlg)->vbox;
  gtk_widget_show (vbAboutMain);

  vbAboutContent = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbAboutContent);
  gtk_box_pack_start (GTK_BOX (vbAboutMain), vbAboutContent, TRUE, TRUE, 2);

  imgAboutUMark = create_pixmap (AboutDlg, "umark.png");
  gtk_widget_show (imgAboutUMark);
  gtk_box_pack_start (GTK_BOX (vbAboutContent), imgAboutUMark, TRUE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (imgAboutUMark), 6, 6);

  label28 = gtk_label_new ("<b>UMark for Linux v2.0.0 Beta 3</b>\n<i>via www.unrealmark.net</i>\n \nCopyright (C)2004-2005 Jeffrey Bakker\nUnder the GNU General Public License\n ");
  gtk_widget_show (label28);
  gtk_box_pack_start (GTK_BOX (vbAboutContent), label28, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label28), TRUE);
  gtk_label_set_justify (GTK_LABEL (label28), GTK_JUSTIFY_CENTER);

  daaAboutDlg = GTK_DIALOG (AboutDlg)->action_area;
  gtk_widget_show (daaAboutDlg);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (daaAboutDlg), GTK_BUTTONBOX_SPREAD);

  btnAboutDocs = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_show (btnAboutDocs);
  gtk_dialog_add_action_widget (GTK_DIALOG (AboutDlg), btnAboutDocs, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (btnAboutDocs, GTK_CAN_DEFAULT);

  btnAboutOnline = gtk_button_new ();
  gtk_widget_show (btnAboutOnline);
  gtk_dialog_add_action_widget (GTK_DIALOG (AboutDlg), btnAboutOnline, 0);
  GTK_WIDGET_SET_FLAGS (btnAboutOnline, GTK_CAN_DEFAULT);

  alignment18 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment18);
  gtk_container_add (GTK_CONTAINER (btnAboutOnline), alignment18);

  hbox18 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox18);
  gtk_container_add (GTK_CONTAINER (alignment18), hbox18);

  image18 = gtk_image_new_from_stock ("gtk-network", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image18);
  gtk_box_pack_start (GTK_BOX (hbox18), image18, FALSE, FALSE, 0);

  label30 = gtk_label_new_with_mnemonic ("Online");
  gtk_widget_show (label30);
  gtk_box_pack_start (GTK_BOX (hbox18), label30, FALSE, FALSE, 0);

  btnAboutUpdates = gtk_button_new ();
  gtk_widget_show (btnAboutUpdates);
  gtk_dialog_add_action_widget (GTK_DIALOG (AboutDlg), btnAboutUpdates, 0);
  GTK_WIDGET_SET_FLAGS (btnAboutUpdates, GTK_CAN_DEFAULT);

  alignment19 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment19);
  gtk_container_add (GTK_CONTAINER (btnAboutUpdates), alignment19);

  hbox19 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox19);
  gtk_container_add (GTK_CONTAINER (alignment19), hbox19);

  image19 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image19);
  gtk_box_pack_start (GTK_BOX (hbox19), image19, FALSE, FALSE, 0);

  label31 = gtk_label_new_with_mnemonic ("Updates");
  gtk_widget_show (label31);
  gtk_box_pack_start (GTK_BOX (hbox19), label31, FALSE, FALSE, 0);

  btnCloseAbout = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (btnCloseAbout);
  gtk_dialog_add_action_widget (GTK_DIALOG (AboutDlg), btnCloseAbout, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (btnCloseAbout, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) btnAboutDocs, "clicked",
                    G_CALLBACK (on_btnAboutDocs_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnAboutOnline, "clicked",
                    G_CALLBACK (on_btnAboutOnline_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnAboutUpdates, "clicked",
                    G_CALLBACK (on_btnAboutUpdates_clicked),
                    NULL);
  g_signal_connect ((gpointer) btnCloseAbout, "clicked",
                    G_CALLBACK (on_btnCloseAbout_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (AboutDlg, AboutDlg, "AboutDlg");
  GLADE_HOOKUP_OBJECT_NO_REF (AboutDlg, vbAboutMain, "vbAboutMain");
  GLADE_HOOKUP_OBJECT (AboutDlg, vbAboutContent, "vbAboutContent");
  GLADE_HOOKUP_OBJECT (AboutDlg, imgAboutUMark, "imgAboutUMark");
  GLADE_HOOKUP_OBJECT (AboutDlg, label28, "label28");
  GLADE_HOOKUP_OBJECT_NO_REF (AboutDlg, daaAboutDlg, "daaAboutDlg");
  GLADE_HOOKUP_OBJECT (AboutDlg, btnAboutDocs, "btnAboutDocs");
  GLADE_HOOKUP_OBJECT (AboutDlg, btnAboutOnline, "btnAboutOnline");
  GLADE_HOOKUP_OBJECT (AboutDlg, alignment18, "alignment18");
  GLADE_HOOKUP_OBJECT (AboutDlg, hbox18, "hbox18");
  GLADE_HOOKUP_OBJECT (AboutDlg, image18, "image18");
  GLADE_HOOKUP_OBJECT (AboutDlg, label30, "label30");
  GLADE_HOOKUP_OBJECT (AboutDlg, btnAboutUpdates, "btnAboutUpdates");
  GLADE_HOOKUP_OBJECT (AboutDlg, alignment19, "alignment19");
  GLADE_HOOKUP_OBJECT (AboutDlg, hbox19, "hbox19");
  GLADE_HOOKUP_OBJECT (AboutDlg, image19, "image19");
  GLADE_HOOKUP_OBJECT (AboutDlg, label31, "label31");
  GLADE_HOOKUP_OBJECT (AboutDlg, btnCloseAbout, "btnCloseAbout");

  return AboutDlg;
}

