/*
 * 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 <gnome.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

static GnomeUIInfo mainmenu_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("_Connect..."),
    N_("Connect to store database"),
    on_connect_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_JUMP_TO,
    0, 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("_Disconnect"),
    N_("Disconnect from database"),
    on_disconnect_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_STOP,
    0, 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("Add Member..."),
    N_("Enter new member details"),
    on_add_member_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_LINE_IN,
    GDK_M, GDK_CONTROL_MASK, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("New Title..."),
    NULL,
    on_add_dvd_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    GDK_T, GDK_CONTROL_MASK, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("New Disk..."),
    NULL,
    on_new_disk_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_CDROM,
    GDK_D, GDK_CONTROL_MASK, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate, NULL),
  GNOMEUIINFO_END
};

static GnomeUIInfo edit_menu_uiinfo[] =
{
  GNOMEUIINFO_MENU_FIND_ITEM (on_search_activate, NULL),
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("Rent DVD..."),
    NULL,
    on_rent_dvd_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_CDROM,
    GDK_F7, 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Return DVD..."),
    N_("Return a DVD"),
    on_return_dvd_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_UNDO,
    GDK_F8, 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Reserve..."),
    N_("Reserve a DVD"),
    on_reserve_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_TIMER,
    GDK_F9, 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_END
};

static GnomeUIInfo settings_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Preferences..."),
    N_("Configure the application"),
    on_preferences_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_PREF,
    GDK_F5, 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo help_menu_uiinfo[] =
{
  GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL),
  GNOMEUIINFO_END
};

static GnomeUIInfo menubar1_uiinfo[] =
{
  {
    GNOME_APP_UI_SUBTREE, N_("_DVDstore"),
    NULL,
    mainmenu_menu_uiinfo, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, N_("_DVDstore"),
    0, 0, NULL
  },
  GNOMEUIINFO_MENU_EDIT_TREE (edit_menu_uiinfo),
  GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_uiinfo),
  GNOMEUIINFO_MENU_HELP_TREE (help_menu_uiinfo),
  GNOMEUIINFO_END
};

GtkWidget*
create_dvdstore (void)
{
  GtkWidget *dvdstore;
  GtkWidget *dock1;
  GtkWidget *toolbar1;
  GtkWidget *tmp_toolbar_icon;
  GtkWidget *connect_button;
  GtkWidget *disconnect_button;
  GtkWidget *rent_button;
  GtkWidget *return_button;
  GtkWidget *reserve_button;
  GtkWidget *search_button;
  GtkWidget *add_member_button;
  GtkWidget *exit_button;
  GtkWidget *hpaned2;
  GtkWidget *vbox11;
  GtkWidget *clock1;
  GtkWidget *summary_frame;
  GtkWidget *summary_table;
  GtkWidget *overdue_label;
  GtkWidget *reserved_label;
  GtkWidget *number_overdue;
  GtkWidget *number_reserved;
  GtkWidget *number_on_loan;
  GtkWidget *on_loan_label;
  GtkWidget *label321;
  GtkWidget *main_notebook;
  GtkWidget *scrolledwindow44;
  GtkWidget *text_box;
  GtkWidget *label496;
  GtkWidget *scrolledwindow24;
  GtkWidget *on_loan_clist;
  GtkWidget *label371;
  GtkWidget *label372;
  GtkWidget *label373;
  GtkWidget *label374;
  GtkWidget *on_loan_notebook_labe;
  GtkWidget *scrolledwindow25;
  GtkWidget *overdue_clist;
  GtkWidget *label416;
  GtkWidget *label417;
  GtkWidget *label418;
  GtkWidget *label419;
  GtkWidget *overdue_notebook_label;
  GtkWidget *scrolledwindow26;
  GtkWidget *reserved_clist;
  GtkWidget *label367;
  GtkWidget *label368;
  GtkWidget *label369;
  GtkWidget *label370;
  GtkWidget *label339;
  GtkWidget *appbar1;

  dvdstore = gnome_app_new ("DVDstore", _("DVDstore"));
  gtk_object_set_data (GTK_OBJECT (dvdstore), "dvdstore", dvdstore);
  gtk_window_set_default_size (GTK_WINDOW (dvdstore), 718, 438);
  gtk_window_set_wmclass (GTK_WINDOW (dvdstore), "main", "dvdstore");

  dock1 = GNOME_APP (dvdstore)->dock;
  gtk_widget_ref (dock1);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "dock1", dock1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dock1);

  gnome_app_create_menus (GNOME_APP (dvdstore), menubar1_uiinfo);

  gtk_widget_ref (menubar1_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "mainmenu",
                            menubar1_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "menu_connect",
                            mainmenu_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "menu_disconnect",
                            mainmenu_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "separator1",
                            mainmenu_menu_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "add_member",
                            mainmenu_menu_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "new_title",
                            mainmenu_menu_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[5].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "new_disk",
                            mainmenu_menu_uiinfo[5].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[6].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "separator2",
                            mainmenu_menu_uiinfo[6].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mainmenu_menu_uiinfo[7].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "menu_exit",
                            mainmenu_menu_uiinfo[7].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (menubar1_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "edit",
                            menubar1_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (edit_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "menu_search",
                            edit_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (edit_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "separator3",
                            edit_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (edit_menu_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "rent_dvd",
                            edit_menu_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (edit_menu_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "return_dvd",
                            edit_menu_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (edit_menu_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "reserve",
                            edit_menu_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (edit_menu_uiinfo[5].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "separator4",
                            edit_menu_uiinfo[5].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (menubar1_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "settings",
                            menubar1_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (settings_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "menu_preferences",
                            settings_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (menubar1_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "help",
                            menubar1_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (help_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "menu_about",
                            help_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  toolbar1 = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH);
  gtk_widget_ref (toolbar1);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "toolbar1", toolbar1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (toolbar1);
  gnome_app_add_toolbar (GNOME_APP (dvdstore), GTK_TOOLBAR (toolbar1), "toolbar1",
                                GNOME_DOCK_ITEM_BEH_EXCLUSIVE,
                                GNOME_DOCK_TOP, 1, 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 1);
  gtk_toolbar_set_space_size (GTK_TOOLBAR (toolbar1), 16);
  gtk_toolbar_set_space_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_SPACE_LINE);
  gtk_toolbar_set_button_relief (GTK_TOOLBAR (toolbar1), GTK_RELIEF_NONE);

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_JUMP_TO);
  connect_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Connect"),
                                _("Connect to the database"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (connect_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "connect_button", connect_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (connect_button);

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_STOP);
  disconnect_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Disconnect"),
                                _("Disconnect database"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (disconnect_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "disconnect_button", disconnect_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disconnect_button);

  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_CDROM);
  rent_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Rent"),
                                _("Rent DVD"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (rent_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "rent_button", rent_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_button);

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_ADD);
  return_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Return"),
                                _("Return DVD"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (return_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "return_button", return_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (return_button);

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_BOOK_OPEN);
  reserve_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Reserve"),
                                _("Reserve DVD"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (reserve_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "reserve_button", reserve_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reserve_button);

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_SEARCH);
  search_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Search"),
                                _("Search the Database"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (search_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "search_button", search_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (search_button);

  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_LINE_IN);
  add_member_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Add"),
                                _("Add a new Member"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (add_member_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "add_member_button", add_member_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (add_member_button);

  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));

  tmp_toolbar_icon = gnome_stock_pixmap_widget (dvdstore, GNOME_STOCK_PIXMAP_EXIT);
  exit_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                _("Exit"),
                                _("Exit the Program"), NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (exit_button);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "exit_button", exit_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (exit_button);

  hpaned2 = gtk_hpaned_new ();
  gtk_widget_ref (hpaned2);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "hpaned2", hpaned2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hpaned2);
  gnome_app_set_contents (GNOME_APP (dvdstore), hpaned2);

  vbox11 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox11);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "vbox11", vbox11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox11);
  gtk_container_add (GTK_CONTAINER (hpaned2), vbox11);
  gtk_widget_set_usize (vbox11, 150, -2);

  clock1 = gtk_clock_new (GTK_CLOCK_REALTIME);
  gtk_widget_ref (clock1);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "clock1", clock1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (clock1);
  gtk_box_pack_start (GTK_BOX (vbox11), clock1, FALSE, FALSE, 10);
  gtk_clock_set_format (GTK_CLOCK (clock1), _("%X %x"));

  summary_frame = gtk_frame_new (_("Summary"));
  gtk_widget_ref (summary_frame);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "summary_frame", summary_frame,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (summary_frame);
  gtk_box_pack_start (GTK_BOX (vbox11), summary_frame, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (summary_frame), 4);

  summary_table = gtk_table_new (3, 2, FALSE);
  gtk_widget_ref (summary_table);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "summary_table", summary_table,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (summary_table);
  gtk_container_add (GTK_CONTAINER (summary_frame), summary_table);
  gtk_container_set_border_width (GTK_CONTAINER (summary_table), 11);
  gtk_table_set_row_spacings (GTK_TABLE (summary_table), 14);
  gtk_table_set_col_spacings (GTK_TABLE (summary_table), 17);

  overdue_label = gtk_label_new (_("Overdue:"));
  gtk_widget_ref (overdue_label);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "overdue_label", overdue_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (overdue_label);
  gtk_table_attach (GTK_TABLE (summary_table), overdue_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  reserved_label = gtk_label_new (_("Reserved:"));
  gtk_widget_ref (reserved_label);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "reserved_label", reserved_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reserved_label);
  gtk_table_attach (GTK_TABLE (summary_table), reserved_label, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  number_overdue = gtk_label_new (_("--"));
  gtk_widget_ref (number_overdue);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "number_overdue", number_overdue,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (number_overdue);
  gtk_table_attach (GTK_TABLE (summary_table), number_overdue, 1, 2, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  number_reserved = gtk_label_new (_("--"));
  gtk_widget_ref (number_reserved);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "number_reserved", number_reserved,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (number_reserved);
  gtk_table_attach (GTK_TABLE (summary_table), number_reserved, 1, 2, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (number_reserved, 36, -2);

  number_on_loan = gtk_label_new (_("--"));
  gtk_widget_ref (number_on_loan);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "number_on_loan", number_on_loan,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (number_on_loan);
  gtk_table_attach (GTK_TABLE (summary_table), number_on_loan, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  on_loan_label = gtk_label_new (_("On Loan:"));
  gtk_widget_ref (on_loan_label);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "on_loan_label", on_loan_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (on_loan_label);
  gtk_table_attach (GTK_TABLE (summary_table), on_loan_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 10, 0);

  label321 = gtk_label_new ("");
  gtk_widget_ref (label321);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label321", label321,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label321);
  gtk_box_pack_start (GTK_BOX (vbox11), label321, TRUE, TRUE, 0);

  main_notebook = gtk_notebook_new ();
  gtk_widget_ref (main_notebook);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "main_notebook", main_notebook,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (main_notebook);
  gtk_container_add (GTK_CONTAINER (hpaned2), main_notebook);
  gtk_container_set_border_width (GTK_CONTAINER (main_notebook), 8);

  scrolledwindow44 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow44);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "scrolledwindow44", scrolledwindow44,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow44);
  gtk_container_add (GTK_CONTAINER (main_notebook), scrolledwindow44);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow44), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  text_box = gtk_text_new (NULL, NULL);
  gtk_widget_ref (text_box);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "text_box", text_box,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (text_box);
  gtk_container_add (GTK_CONTAINER (scrolledwindow44), text_box);

  label496 = gtk_label_new (_("DVDstore"));
  gtk_widget_ref (label496);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label496", label496,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label496);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 0), label496);

  scrolledwindow24 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow24);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "scrolledwindow24", scrolledwindow24,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow24);
  gtk_container_add (GTK_CONTAINER (main_notebook), scrolledwindow24);

  on_loan_clist = gtk_clist_new (4);
  gtk_widget_ref (on_loan_clist);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "on_loan_clist", on_loan_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (on_loan_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow24), on_loan_clist);
  gtk_clist_set_column_width (GTK_CLIST (on_loan_clist), 0, 90);
  gtk_clist_set_column_width (GTK_CLIST (on_loan_clist), 1, 94);
  gtk_clist_set_column_width (GTK_CLIST (on_loan_clist), 2, 197);
  gtk_clist_set_column_width (GTK_CLIST (on_loan_clist), 3, 80);
  gtk_clist_column_titles_show (GTK_CLIST (on_loan_clist));

  label371 = gtk_label_new (_("Member No."));
  gtk_widget_ref (label371);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label371", label371,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label371);
  gtk_clist_set_column_widget (GTK_CLIST (on_loan_clist), 0, label371);

  label372 = gtk_label_new (_("DVD"));
  gtk_widget_ref (label372);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label372", label372,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label372);
  gtk_clist_set_column_widget (GTK_CLIST (on_loan_clist), 1, label372);

  label373 = gtk_label_new (_("Title"));
  gtk_widget_ref (label373);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label373", label373,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label373);
  gtk_clist_set_column_widget (GTK_CLIST (on_loan_clist), 2, label373);

  label374 = gtk_label_new (_("Due Back"));
  gtk_widget_ref (label374);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label374", label374,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label374);
  gtk_clist_set_column_widget (GTK_CLIST (on_loan_clist), 3, label374);

  on_loan_notebook_labe = gtk_label_new (_("On Loan"));
  gtk_widget_ref (on_loan_notebook_labe);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "on_loan_notebook_labe", on_loan_notebook_labe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (on_loan_notebook_labe);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 1), on_loan_notebook_labe);

  scrolledwindow25 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow25);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "scrolledwindow25", scrolledwindow25,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow25);
  gtk_container_add (GTK_CONTAINER (main_notebook), scrolledwindow25);

  overdue_clist = gtk_clist_new (4);
  gtk_widget_ref (overdue_clist);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "overdue_clist", overdue_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (overdue_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow25), overdue_clist);
  gtk_clist_set_column_width (GTK_CLIST (overdue_clist), 0, 90);
  gtk_clist_set_column_width (GTK_CLIST (overdue_clist), 1, 94);
  gtk_clist_set_column_width (GTK_CLIST (overdue_clist), 2, 197);
  gtk_clist_set_column_width (GTK_CLIST (overdue_clist), 3, 80);
  gtk_clist_column_titles_show (GTK_CLIST (overdue_clist));

  label416 = gtk_label_new (_("Member No."));
  gtk_widget_ref (label416);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label416", label416,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label416);
  gtk_clist_set_column_widget (GTK_CLIST (overdue_clist), 0, label416);

  label417 = gtk_label_new (_("DVD"));
  gtk_widget_ref (label417);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label417", label417,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label417);
  gtk_clist_set_column_widget (GTK_CLIST (overdue_clist), 1, label417);

  label418 = gtk_label_new (_("Title"));
  gtk_widget_ref (label418);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label418", label418,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label418);
  gtk_clist_set_column_widget (GTK_CLIST (overdue_clist), 2, label418);

  label419 = gtk_label_new (_("Due Back"));
  gtk_widget_ref (label419);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label419", label419,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label419);
  gtk_clist_set_column_widget (GTK_CLIST (overdue_clist), 3, label419);

  overdue_notebook_label = gtk_label_new (_("Overdue"));
  gtk_widget_ref (overdue_notebook_label);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "overdue_notebook_label", overdue_notebook_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (overdue_notebook_label);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 2), overdue_notebook_label);

  scrolledwindow26 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow26);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "scrolledwindow26", scrolledwindow26,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow26);
  gtk_container_add (GTK_CONTAINER (main_notebook), scrolledwindow26);

  reserved_clist = gtk_clist_new (4);
  gtk_widget_ref (reserved_clist);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "reserved_clist", reserved_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reserved_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow26), reserved_clist);
  gtk_clist_set_column_width (GTK_CLIST (reserved_clist), 0, 80);
  gtk_clist_set_column_width (GTK_CLIST (reserved_clist), 1, 80);
  gtk_clist_set_column_width (GTK_CLIST (reserved_clist), 2, 80);
  gtk_clist_set_column_width (GTK_CLIST (reserved_clist), 3, 80);
  gtk_clist_column_titles_show (GTK_CLIST (reserved_clist));

  label367 = gtk_label_new (_("Member no."));
  gtk_widget_ref (label367);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label367", label367,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label367);
  gtk_clist_set_column_widget (GTK_CLIST (reserved_clist), 0, label367);

  label368 = gtk_label_new (_("DVD "));
  gtk_widget_ref (label368);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label368", label368,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label368);
  gtk_clist_set_column_widget (GTK_CLIST (reserved_clist), 1, label368);

  label369 = gtk_label_new (_("Title"));
  gtk_widget_ref (label369);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label369", label369,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label369);
  gtk_clist_set_column_widget (GTK_CLIST (reserved_clist), 2, label369);

  label370 = gtk_label_new (_("Date"));
  gtk_widget_ref (label370);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label370", label370,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label370);
  gtk_clist_set_column_widget (GTK_CLIST (reserved_clist), 3, label370);

  label339 = gtk_label_new (_("Reserved"));
  gtk_widget_ref (label339);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "label339", label339,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label339);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 3), label339);

  appbar1 = gnome_appbar_new (FALSE, TRUE, GNOME_PREFERENCES_NEVER);
  gtk_widget_ref (appbar1);
  gtk_object_set_data_full (GTK_OBJECT (dvdstore), "appbar1", appbar1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (appbar1);
  gnome_app_set_statusbar (GNOME_APP (dvdstore), appbar1);

  gtk_signal_connect (GTK_OBJECT (connect_button), "clicked",
                      GTK_SIGNAL_FUNC (on_connect_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (disconnect_button), "clicked",
                      GTK_SIGNAL_FUNC (on_disconnect_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rent_button), "clicked",
                      GTK_SIGNAL_FUNC (on_rent_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (return_button), "clicked",
                      GTK_SIGNAL_FUNC (on_return_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (reserve_button), "clicked",
                      GTK_SIGNAL_FUNC (on_reserve_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (search_button), "clicked",
                      GTK_SIGNAL_FUNC (on_search_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (add_member_button), "clicked",
                      GTK_SIGNAL_FUNC (on_add_member_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (exit_button), "clicked",
                      GTK_SIGNAL_FUNC (on_exit_button_clicked),
                      NULL);

  return dvdstore;
}

GtkWidget*
create_about_dialog (void)
{
  const gchar *authors[] = {
    "Andrew Froggatt <ajf34@cam.ac.uk>",
    NULL
  };
  GtkWidget *about_dialog;

  about_dialog = gnome_about_new ("DVDstore", VERSION,
                        _("Released under the GPL"),
                        authors,
                        _("A GNOME/GTK+ UI for the DVDstore conceived in\n'Professional Linux Programming'\nWrox Press 2000"),
                        NULL);
  gtk_object_set_data (GTK_OBJECT (about_dialog), "about_dialog", about_dialog);
  gtk_window_set_modal (GTK_WINDOW (about_dialog), TRUE);
  gtk_window_set_wmclass (GTK_WINDOW (about_dialog), "about_dialog", "dvdstore");

  return about_dialog;
}

GtkWidget*
create_member_dialog (void)
{
  GtkWidget *member_dialog;
  GtkWidget *dialog_vbox2;
  GtkWidget *vbox13;
  GtkWidget *hbox52;
  GtkWidget *member_no_label;
  GtkWidget *member_no;
  GtkWidget *name_frame;
  GtkWidget *table11;
  GtkWidget *title;
  GtkWidget *fname_label;
  GtkWidget *first_name;
  GtkWidget *lname_label;
  GtkWidget *last_name;
  GtkWidget *title_label;
  GtkWidget *address_frame;
  GtkWidget *address_table;
  GtkWidget *address_1;
  GtkWidget *zip;
  GtkWidget *state;
  GtkWidget *town;
  GtkWidget *address_2;
  GtkWidget *house_flat_ref;
  GtkWidget *phone;
  GtkWidget *state_label;
  GtkWidget *zip_label;
  GtkWidget *phone_label;
  GtkWidget *town_label;
  GtkWidget *addr2_label;
  GtkWidget *addr1_label;
  GtkWidget *house_label;
  GtkWidget *dialog_action_area2;
  GtkWidget *member_dialog_ok;
  GtkWidget *member_dialog_cancel;

  member_dialog = gnome_dialog_new (_("New Member"), NULL);
  gtk_object_set_data (GTK_OBJECT (member_dialog), "member_dialog", member_dialog);
  GTK_WINDOW (member_dialog)->type = GTK_WINDOW_DIALOG;
  gtk_window_set_policy (GTK_WINDOW (member_dialog), FALSE, FALSE, FALSE);
  gtk_window_set_wmclass (GTK_WINDOW (member_dialog), "ada_member_dialog", "dvdstore");

  dialog_vbox2 = GNOME_DIALOG (member_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (member_dialog), "dialog_vbox2", dialog_vbox2);
  gtk_widget_show (dialog_vbox2);

  vbox13 = gtk_vbox_new (FALSE, 4);
  gtk_widget_ref (vbox13);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "vbox13", vbox13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox13);
  gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox13, TRUE, TRUE, 0);

  hbox52 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox52);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "hbox52", hbox52,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox52);
  gtk_box_pack_start (GTK_BOX (vbox13), hbox52, TRUE, FALSE, 0);

  member_no_label = gtk_label_new (_("Member Number:"));
  gtk_widget_ref (member_no_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "member_no_label", member_no_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_no_label);
  gtk_box_pack_start (GTK_BOX (hbox52), member_no_label, FALSE, FALSE, 8);

  member_no = gtk_label_new (_("--"));
  gtk_widget_ref (member_no);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "member_no", member_no,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_no);
  gtk_box_pack_start (GTK_BOX (hbox52), member_no, FALSE, FALSE, 0);

  name_frame = gtk_frame_new (_("Name"));
  gtk_widget_ref (name_frame);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "name_frame", name_frame,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (name_frame);
  gtk_box_pack_start (GTK_BOX (vbox13), name_frame, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (name_frame), 5);

  table11 = gtk_table_new (3, 2, FALSE);
  gtk_widget_ref (table11);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "table11", table11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table11);
  gtk_container_add (GTK_CONTAINER (name_frame), table11);
  gtk_container_set_border_width (GTK_CONTAINER (table11), 5);
  gtk_table_set_row_spacings (GTK_TABLE (table11), 6);
  gtk_table_set_col_spacings (GTK_TABLE (table11), 3);

  title = gtk_entry_new_with_max_length (3);
  gtk_widget_ref (title);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "title", title,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title);
  gtk_table_attach (GTK_TABLE (table11), title, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (title, 46, -2);

  fname_label = gtk_label_new (_("First name:"));
  gtk_widget_ref (fname_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "fname_label", fname_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fname_label);
  gtk_table_attach (GTK_TABLE (table11), fname_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  first_name = gtk_entry_new_with_max_length (25);
  gtk_widget_ref (first_name);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "first_name", first_name,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (first_name);
  gtk_table_attach (GTK_TABLE (table11), first_name, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  lname_label = gtk_label_new (_("Last name:"));
  gtk_widget_ref (lname_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "lname_label", lname_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (lname_label);
  gtk_table_attach (GTK_TABLE (table11), lname_label, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  last_name = gtk_entry_new_with_max_length (25);
  gtk_widget_ref (last_name);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "last_name", last_name,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (last_name);
  gtk_table_attach (GTK_TABLE (table11), last_name, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  title_label = gtk_label_new (_("Title:"));
  gtk_widget_ref (title_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "title_label", title_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_label);
  gtk_table_attach (GTK_TABLE (table11), title_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (title_label), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (title_label), 0, 0.5);

  address_frame = gtk_frame_new (_("Address"));
  gtk_widget_ref (address_frame);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "address_frame", address_frame,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address_frame);
  gtk_box_pack_start (GTK_BOX (vbox13), address_frame, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (address_frame), 5);

  address_table = gtk_table_new (7, 2, FALSE);
  gtk_widget_ref (address_table);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "address_table", address_table,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address_table);
  gtk_container_add (GTK_CONTAINER (address_frame), address_table);
  gtk_container_set_border_width (GTK_CONTAINER (address_table), 5);
  gtk_table_set_row_spacings (GTK_TABLE (address_table), 6);
  gtk_table_set_col_spacings (GTK_TABLE (address_table), 3);

  address_1 = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (address_1);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "address_1", address_1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address_1);
  gtk_table_attach (GTK_TABLE (address_table), address_1, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  zip = gtk_entry_new_with_max_length (10);
  gtk_widget_ref (zip);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "zip", zip,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (zip);
  gtk_table_attach (GTK_TABLE (address_table), zip, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (zip, 85, -2);

  state = gtk_entry_new_with_max_length (2);
  gtk_widget_ref (state);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "state", state,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (state);
  gtk_table_attach (GTK_TABLE (address_table), state, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (state, 91, -2);

  town = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (town);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "town", town,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (town);
  gtk_table_attach (GTK_TABLE (address_table), town, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  address_2 = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (address_2);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "address_2", address_2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address_2);
  gtk_table_attach (GTK_TABLE (address_table), address_2, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  house_flat_ref = gtk_entry_new_with_max_length (25);
  gtk_widget_ref (house_flat_ref);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "house_flat_ref", house_flat_ref,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (house_flat_ref);
  gtk_table_attach (GTK_TABLE (address_table), house_flat_ref, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (house_flat_ref, 54, -2);

  phone = gtk_entry_new_with_max_length (10);
  gtk_widget_ref (phone);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "phone", phone,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (phone);
  gtk_table_attach (GTK_TABLE (address_table), phone, 1, 2, 6, 7,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  state_label = gtk_label_new (_("State:"));
  gtk_widget_ref (state_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "state_label", state_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (state_label);
  gtk_table_attach (GTK_TABLE (address_table), state_label, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (state_label), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (state_label), 0, 0.5);

  zip_label = gtk_label_new (_("Zip:"));
  gtk_widget_ref (zip_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "zip_label", zip_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (zip_label);
  gtk_table_attach (GTK_TABLE (address_table), zip_label, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (zip_label), 0, 0.5);

  phone_label = gtk_label_new (_("Phone:"));
  gtk_widget_ref (phone_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "phone_label", phone_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (phone_label);
  gtk_table_attach (GTK_TABLE (address_table), phone_label, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (phone_label), 0, 0.5);

  town_label = gtk_label_new (_("Town:"));
  gtk_widget_ref (town_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "town_label", town_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (town_label);
  gtk_table_attach (GTK_TABLE (address_table), town_label, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (town_label), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (town_label), 0, 0.5);

  addr2_label = gtk_label_new (_("Address 2:"));
  gtk_widget_ref (addr2_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "addr2_label", addr2_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (addr2_label);
  gtk_table_attach (GTK_TABLE (address_table), addr2_label, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (addr2_label), 0, 0.5);

  addr1_label = gtk_label_new (_("Address 1:"));
  gtk_widget_ref (addr1_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "addr1_label", addr1_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (addr1_label);
  gtk_table_attach (GTK_TABLE (address_table), addr1_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (addr1_label), 0, 0.5);

  house_label = gtk_label_new (_("House no."));
  gtk_widget_ref (house_label);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "house_label", house_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (house_label);
  gtk_table_attach (GTK_TABLE (address_table), house_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (house_label), 0, 0.5);

  dialog_action_area2 = GNOME_DIALOG (member_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (member_dialog), "dialog_action_area2", dialog_action_area2);
  gtk_widget_show (dialog_action_area2);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area2), 8);

  gnome_dialog_append_button (GNOME_DIALOG (member_dialog), GNOME_STOCK_BUTTON_OK);
  member_dialog_ok = g_list_last (GNOME_DIALOG (member_dialog)->buttons)->data;
  gtk_widget_ref (member_dialog_ok);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "member_dialog_ok", member_dialog_ok,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_dialog_ok);
  GTK_WIDGET_SET_FLAGS (member_dialog_ok, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (member_dialog), GNOME_STOCK_BUTTON_CANCEL);
  member_dialog_cancel = g_list_last (GNOME_DIALOG (member_dialog)->buttons)->data;
  gtk_widget_ref (member_dialog_cancel);
  gtk_object_set_data_full (GTK_OBJECT (member_dialog), "member_dialog_cancel", member_dialog_cancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_dialog_cancel);
  GTK_WIDGET_SET_FLAGS (member_dialog_cancel, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (member_dialog), "clicked",
                      GTK_SIGNAL_FUNC (on_member_dialog_clicked),
                      NULL);

  return member_dialog;
}

GtkWidget*
create_rent_dvd_dialog (void)
{
  GtkWidget *rent_dvd_dialog;
  GtkWidget *dialog_vbox4;
  GtkWidget *table13;
  GtkWidget *frame14;
  GtkWidget *vbox33;
  GtkWidget *hbox65;
  GtkWidget *title_label;
  GtkObject *titleid_spinbutton_adj;
  GtkWidget *titleid_spinbutton;
  GtkWidget *rent_dvd_dialog_add;
  GtkWidget *scrolledwindow40;
  GtkWidget *rent_dvd_dialog_disk_clist;
  GtkWidget *label483;
  GtkWidget *label484;
  GtkWidget *hbuttonbox14;
  GtkWidget *rent_dvd_dialog_remove;
  GtkWidget *member_no_entry;
  GtkWidget *member_label;
  GtkWidget *dialog_action_area4;
  GtkWidget *rent_dvd_dialog_rent;
  GtkWidget *rent_dvd_dialog_cancel;

  rent_dvd_dialog = gnome_dialog_new (_("Rent DVD"), NULL);
  gtk_object_set_data (GTK_OBJECT (rent_dvd_dialog), "rent_dvd_dialog", rent_dvd_dialog);
  gtk_window_set_default_size (GTK_WINDOW (rent_dvd_dialog), 320, 320);
  gtk_window_set_wmclass (GTK_WINDOW (rent_dvd_dialog), "rent_dvd_dialog", "dvdstore");

  dialog_vbox4 = GNOME_DIALOG (rent_dvd_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (rent_dvd_dialog), "dialog_vbox4", dialog_vbox4);
  gtk_widget_show (dialog_vbox4);

  table13 = gtk_table_new (2, 2, FALSE);
  gtk_widget_ref (table13);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "table13", table13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table13);
  gtk_box_pack_start (GTK_BOX (dialog_vbox4), table13, TRUE, TRUE, 0);
  gtk_table_set_row_spacings (GTK_TABLE (table13), 12);

  frame14 = gtk_frame_new (_("List of Title IDs to Rent"));
  gtk_widget_ref (frame14);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "frame14", frame14,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame14);
  gtk_table_attach (GTK_TABLE (table13), frame14, 0, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  vbox33 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox33);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "vbox33", vbox33,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox33);
  gtk_container_add (GTK_CONTAINER (frame14), vbox33);

  hbox65 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox65);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "hbox65", hbox65,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox65);
  gtk_box_pack_start (GTK_BOX (vbox33), hbox65, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox65), 5);

  title_label = gtk_label_new (_("Title ID:"));
  gtk_widget_ref (title_label);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "title_label", title_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_label);
  gtk_box_pack_start (GTK_BOX (hbox65), title_label, FALSE, FALSE, 5);

  titleid_spinbutton_adj = gtk_adjustment_new (1, 0, 1e+08, 1, 10, 10);
  titleid_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (titleid_spinbutton_adj), 1, 0);
  gtk_widget_ref (titleid_spinbutton);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "titleid_spinbutton", titleid_spinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (titleid_spinbutton);
  gtk_box_pack_start (GTK_BOX (hbox65), titleid_spinbutton, TRUE, TRUE, 0);

  rent_dvd_dialog_add = gtk_button_new_with_label (_("Add"));
  gtk_widget_ref (rent_dvd_dialog_add);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "rent_dvd_dialog_add", rent_dvd_dialog_add,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_dvd_dialog_add);
  gtk_box_pack_start (GTK_BOX (hbox65), rent_dvd_dialog_add, TRUE, TRUE, 5);

  scrolledwindow40 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow40);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "scrolledwindow40", scrolledwindow40,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow40);
  gtk_box_pack_start (GTK_BOX (vbox33), scrolledwindow40, TRUE, TRUE, 0);
  gtk_widget_set_usize (scrolledwindow40, -2, 100);
  gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow40), 5);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow40), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  rent_dvd_dialog_disk_clist = gtk_clist_new (2);
  gtk_widget_ref (rent_dvd_dialog_disk_clist);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "rent_dvd_dialog_disk_clist", rent_dvd_dialog_disk_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_dvd_dialog_disk_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow40), rent_dvd_dialog_disk_clist);
  gtk_clist_set_column_width (GTK_CLIST (rent_dvd_dialog_disk_clist), 0, 80);
  gtk_clist_set_column_width (GTK_CLIST (rent_dvd_dialog_disk_clist), 1, 80);
  gtk_clist_column_titles_show (GTK_CLIST (rent_dvd_dialog_disk_clist));

  label483 = gtk_label_new (_("Title ID"));
  gtk_widget_ref (label483);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "label483", label483,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label483);
  gtk_clist_set_column_widget (GTK_CLIST (rent_dvd_dialog_disk_clist), 0, label483);

  label484 = gtk_label_new (_("Title"));
  gtk_widget_ref (label484);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "label484", label484,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label484);
  gtk_clist_set_column_widget (GTK_CLIST (rent_dvd_dialog_disk_clist), 1, label484);

  hbuttonbox14 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox14);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "hbuttonbox14", hbuttonbox14,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox14);
  gtk_box_pack_start (GTK_BOX (vbox33), hbuttonbox14, FALSE, FALSE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox14), GTK_BUTTONBOX_END);

  rent_dvd_dialog_remove = gtk_button_new_with_label (_("Remove"));
  gtk_widget_ref (rent_dvd_dialog_remove);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "rent_dvd_dialog_remove", rent_dvd_dialog_remove,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_dvd_dialog_remove);
  gtk_container_add (GTK_CONTAINER (hbuttonbox14), rent_dvd_dialog_remove);
  GTK_WIDGET_SET_FLAGS (rent_dvd_dialog_remove, GTK_CAN_DEFAULT);

  member_no_entry = gtk_entry_new ();
  gtk_widget_ref (member_no_entry);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "member_no_entry", member_no_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_no_entry);
  gtk_table_attach (GTK_TABLE (table13), member_no_entry, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  member_label = gtk_label_new (_("Rent Titles to Member No: "));
  gtk_widget_ref (member_label);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "member_label", member_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_label);
  gtk_table_attach (GTK_TABLE (table13), member_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 7, 0);

  dialog_action_area4 = GNOME_DIALOG (rent_dvd_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (rent_dvd_dialog), "dialog_action_area4", dialog_action_area4);
  gtk_widget_show (dialog_action_area4);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area4), 8);

  gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (rent_dvd_dialog),
                                          _("Rent"), GNOME_STOCK_PIXMAP_REMOVE);
  rent_dvd_dialog_rent = g_list_last (GNOME_DIALOG (rent_dvd_dialog)->buttons)->data;
  gtk_widget_ref (rent_dvd_dialog_rent);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "rent_dvd_dialog_rent", rent_dvd_dialog_rent,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_dvd_dialog_rent);
  gtk_container_set_border_width (GTK_CONTAINER (rent_dvd_dialog_rent), 2);
  GTK_WIDGET_SET_FLAGS (rent_dvd_dialog_rent, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (rent_dvd_dialog), GNOME_STOCK_BUTTON_CANCEL);
  rent_dvd_dialog_cancel = g_list_last (GNOME_DIALOG (rent_dvd_dialog)->buttons)->data;
  gtk_widget_ref (rent_dvd_dialog_cancel);
  gtk_object_set_data_full (GTK_OBJECT (rent_dvd_dialog), "rent_dvd_dialog_cancel", rent_dvd_dialog_cancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_dvd_dialog_cancel);
  GTK_WIDGET_SET_FLAGS (rent_dvd_dialog_cancel, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (rent_dvd_dialog), "clicked",
                      GTK_SIGNAL_FUNC (on_rent_dvd_dialog_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rent_dvd_dialog), "close",
                      GTK_SIGNAL_FUNC (on_rent_dvd_dialog_close),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rent_dvd_dialog_add), "clicked",
                      GTK_SIGNAL_FUNC (on_rent_dvd_dialog_add_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rent_dvd_dialog_disk_clist), "select_row",
                      GTK_SIGNAL_FUNC (on_rent_dvd_dialog_disk_clist_select_row),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rent_dvd_dialog_remove), "clicked",
                      GTK_SIGNAL_FUNC (on_rent_dvd_dialog_remove_clicked),
                      NULL);

  return rent_dvd_dialog;
}

GtkWidget*
create_return_dvd_dialog (void)
{
  GtkWidget *return_dvd_dialog;
  GtkWidget *dialog_vbox6;
  GtkWidget *frame;
  GtkWidget *vbox36;
  GtkWidget *hbox68;
  GtkWidget *label485;
  GtkObject *diskid_spinbutton_adj;
  GtkWidget *diskid_spinbutton;
  GtkWidget *return_dvd_dialog_add;
  GtkWidget *scrolledwindow43;
  GtkWidget *return_dvd_dialog_disk_clist;
  GtkWidget *label492;
  GtkWidget *label493;
  GtkWidget *label494;
  GtkWidget *label495;
  GtkWidget *hbuttonbox15;
  GtkWidget *return_dvd_dialog_remove;
  GtkWidget *dialog_action_area6;
  GtkWidget *return_dvd_dialog_return;
  GtkWidget *return_dvd_dialog_cancel;

  return_dvd_dialog = gnome_dialog_new (_("Return Disks"), NULL);
  gtk_object_set_data (GTK_OBJECT (return_dvd_dialog), "return_dvd_dialog", return_dvd_dialog);
  gtk_window_set_wmclass (GTK_WINDOW (return_dvd_dialog), "return_dvd_dialog", "dvdstore");

  dialog_vbox6 = GNOME_DIALOG (return_dvd_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (return_dvd_dialog), "dialog_vbox6", dialog_vbox6);
  gtk_widget_show (dialog_vbox6);

  frame = gtk_frame_new (_("List of Disk IDs to Return"));
  gtk_widget_ref (frame);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "frame", frame,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame);
  gtk_box_pack_start (GTK_BOX (dialog_vbox6), frame, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame), 5);

  vbox36 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox36);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "vbox36", vbox36,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox36);
  gtk_container_add (GTK_CONTAINER (frame), vbox36);

  hbox68 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox68);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "hbox68", hbox68,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox68);
  gtk_box_pack_start (GTK_BOX (vbox36), hbox68, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox68), 5);

  label485 = gtk_label_new (_("Disk ID:"));
  gtk_widget_ref (label485);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "label485", label485,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label485);
  gtk_box_pack_start (GTK_BOX (hbox68), label485, FALSE, FALSE, 5);

  diskid_spinbutton_adj = gtk_adjustment_new (0, 0, 1e+08, 1, 10, 10);
  diskid_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (diskid_spinbutton_adj), 1, 0);
  gtk_widget_ref (diskid_spinbutton);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "diskid_spinbutton", diskid_spinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (diskid_spinbutton);
  gtk_box_pack_start (GTK_BOX (hbox68), diskid_spinbutton, TRUE, TRUE, 0);

  return_dvd_dialog_add = gtk_button_new_with_label (_("Add"));
  gtk_widget_ref (return_dvd_dialog_add);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "return_dvd_dialog_add", return_dvd_dialog_add,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (return_dvd_dialog_add);
  gtk_box_pack_start (GTK_BOX (hbox68), return_dvd_dialog_add, TRUE, TRUE, 5);

  scrolledwindow43 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow43);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "scrolledwindow43", scrolledwindow43,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow43);
  gtk_box_pack_start (GTK_BOX (vbox36), scrolledwindow43, TRUE, TRUE, 0);
  gtk_widget_set_usize (scrolledwindow43, 380, 100);
  gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow43), 5);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow43), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  return_dvd_dialog_disk_clist = gtk_clist_new (4);
  gtk_widget_ref (return_dvd_dialog_disk_clist);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "return_dvd_dialog_disk_clist", return_dvd_dialog_disk_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (return_dvd_dialog_disk_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow43), return_dvd_dialog_disk_clist);
  gtk_clist_set_column_width (GTK_CLIST (return_dvd_dialog_disk_clist), 0, 48);
  gtk_clist_set_column_width (GTK_CLIST (return_dvd_dialog_disk_clist), 1, 110);
  gtk_clist_set_column_width (GTK_CLIST (return_dvd_dialog_disk_clist), 2, 64);
  gtk_clist_set_column_width (GTK_CLIST (return_dvd_dialog_disk_clist), 3, 80);
  gtk_clist_column_titles_show (GTK_CLIST (return_dvd_dialog_disk_clist));

  label492 = gtk_label_new (_("Disk ID"));
  gtk_widget_ref (label492);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "label492", label492,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label492);
  gtk_clist_set_column_widget (GTK_CLIST (return_dvd_dialog_disk_clist), 0, label492);

  label493 = gtk_label_new (_("Title"));
  gtk_widget_ref (label493);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "label493", label493,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label493);
  gtk_clist_set_column_widget (GTK_CLIST (return_dvd_dialog_disk_clist), 1, label493);

  label494 = gtk_label_new (_("Member No"));
  gtk_widget_ref (label494);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "label494", label494,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label494);
  gtk_clist_set_column_widget (GTK_CLIST (return_dvd_dialog_disk_clist), 2, label494);

  label495 = gtk_label_new (_("Status"));
  gtk_widget_ref (label495);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "label495", label495,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label495);
  gtk_clist_set_column_widget (GTK_CLIST (return_dvd_dialog_disk_clist), 3, label495);

  hbuttonbox15 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox15);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "hbuttonbox15", hbuttonbox15,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox15);
  gtk_box_pack_start (GTK_BOX (vbox36), hbuttonbox15, FALSE, FALSE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox15), GTK_BUTTONBOX_END);

  return_dvd_dialog_remove = gtk_button_new_with_label (_("Remove"));
  gtk_widget_ref (return_dvd_dialog_remove);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "return_dvd_dialog_remove", return_dvd_dialog_remove,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (return_dvd_dialog_remove);
  gtk_container_add (GTK_CONTAINER (hbuttonbox15), return_dvd_dialog_remove);
  GTK_WIDGET_SET_FLAGS (return_dvd_dialog_remove, GTK_CAN_DEFAULT);

  dialog_action_area6 = GNOME_DIALOG (return_dvd_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (return_dvd_dialog), "dialog_action_area6", dialog_action_area6);
  gtk_widget_show (dialog_action_area6);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area6), 8);

  gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (return_dvd_dialog),
                                          _("Return"), GNOME_STOCK_PIXMAP_ADD);
  return_dvd_dialog_return = g_list_last (GNOME_DIALOG (return_dvd_dialog)->buttons)->data;
  gtk_widget_ref (return_dvd_dialog_return);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "return_dvd_dialog_return", return_dvd_dialog_return,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (return_dvd_dialog_return);
  GTK_WIDGET_SET_FLAGS (return_dvd_dialog_return, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (return_dvd_dialog), GNOME_STOCK_BUTTON_CANCEL);
  return_dvd_dialog_cancel = g_list_last (GNOME_DIALOG (return_dvd_dialog)->buttons)->data;
  gtk_widget_ref (return_dvd_dialog_cancel);
  gtk_object_set_data_full (GTK_OBJECT (return_dvd_dialog), "return_dvd_dialog_cancel", return_dvd_dialog_cancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (return_dvd_dialog_cancel);
  GTK_WIDGET_SET_FLAGS (return_dvd_dialog_cancel, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (return_dvd_dialog), "clicked",
                      GTK_SIGNAL_FUNC (on_return_dvd_dialog_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (return_dvd_dialog_add), "clicked",
                      GTK_SIGNAL_FUNC (on_return_dvd_dialog_add_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (return_dvd_dialog_disk_clist), "select_row",
                      GTK_SIGNAL_FUNC (on_return_dvd_dialog_disk_clist_select_row),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (return_dvd_dialog_remove), "clicked",
                      GTK_SIGNAL_FUNC (on_return_dvd_dialog_remove_clicked),
                      NULL);

  return return_dvd_dialog;
}

GtkWidget*
create_reserve_dialog (void)
{
  GtkWidget *reserve_dialog;
  GtkWidget *dialog_vbox7;
  GtkWidget *table10;
  GtkWidget *member_no_entry;
  GtkWidget *date;
  GtkObject *titleid_spinbutton_adj;
  GtkWidget *titleid_spinbutton;
  GtkWidget *titleid_label;
  GtkWidget *member_label;
  GtkWidget *date_label;
  GtkWidget *dialog_action_area7;
  GtkWidget *reserve_dialog_reserve;
  GtkWidget *reserve_dialog_cancel;

  reserve_dialog = gnome_dialog_new (_("Reserve Title"), NULL);
  gtk_object_set_data (GTK_OBJECT (reserve_dialog), "reserve_dialog", reserve_dialog);
  gtk_window_set_wmclass (GTK_WINDOW (reserve_dialog), "reserve_dialog", "dvdstore");

  dialog_vbox7 = GNOME_DIALOG (reserve_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (reserve_dialog), "dialog_vbox7", dialog_vbox7);
  gtk_widget_show (dialog_vbox7);

  table10 = gtk_table_new (3, 2, FALSE);
  gtk_widget_ref (table10);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "table10", table10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table10);
  gtk_box_pack_start (GTK_BOX (dialog_vbox7), table10, TRUE, TRUE, 0);
  gtk_table_set_row_spacings (GTK_TABLE (table10), 8);

  member_no_entry = gtk_entry_new ();
  gtk_widget_ref (member_no_entry);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "member_no_entry", member_no_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_no_entry);
  gtk_table_attach (GTK_TABLE (table10), member_no_entry, 1, 2, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  date = gnome_date_edit_new ((time_t) 0, FALSE, TRUE);
  gtk_widget_ref (date);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "date", date,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (date);
  gtk_table_attach (GTK_TABLE (table10), date, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  titleid_spinbutton_adj = gtk_adjustment_new (0, 0, 1e+08, 1, 10, 10);
  titleid_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (titleid_spinbutton_adj), 1, 0);
  gtk_widget_ref (titleid_spinbutton);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "titleid_spinbutton", titleid_spinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (titleid_spinbutton);
  gtk_table_attach (GTK_TABLE (table10), titleid_spinbutton, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  titleid_label = gtk_label_new (_("Reserve DVD Title ID:"));
  gtk_widget_ref (titleid_label);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "titleid_label", titleid_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (titleid_label);
  gtk_table_attach (GTK_TABLE (table10), titleid_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 3, 0);

  member_label = gtk_label_new (_("To Member No: "));
  gtk_widget_ref (member_label);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "member_label", member_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_label);
  gtk_table_attach (GTK_TABLE (table10), member_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 3, 0);
  gtk_label_set_justify (GTK_LABEL (member_label), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (member_label), 1, 0.5);

  date_label = gtk_label_new (_("On Date:"));
  gtk_widget_ref (date_label);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "date_label", date_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (date_label);
  gtk_table_attach (GTK_TABLE (table10), date_label, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_label_set_justify (GTK_LABEL (date_label), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (date_label), 1, 0.5);

  dialog_action_area7 = GNOME_DIALOG (reserve_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (reserve_dialog), "dialog_action_area7", dialog_action_area7);
  gtk_widget_show (dialog_action_area7);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area7), 8);

  gnome_dialog_append_button_with_pixmap (GNOME_DIALOG (reserve_dialog),
                                          _("Reserve"), GNOME_STOCK_PIXMAP_BOOK_OPEN);
  reserve_dialog_reserve = g_list_last (GNOME_DIALOG (reserve_dialog)->buttons)->data;
  gtk_widget_ref (reserve_dialog_reserve);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "reserve_dialog_reserve", reserve_dialog_reserve,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reserve_dialog_reserve);
  GTK_WIDGET_SET_FLAGS (reserve_dialog_reserve, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (reserve_dialog), GNOME_STOCK_BUTTON_CANCEL);
  reserve_dialog_cancel = g_list_last (GNOME_DIALOG (reserve_dialog)->buttons)->data;
  gtk_widget_ref (reserve_dialog_cancel);
  gtk_object_set_data_full (GTK_OBJECT (reserve_dialog), "reserve_dialog_cancel", reserve_dialog_cancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reserve_dialog_cancel);
  GTK_WIDGET_SET_FLAGS (reserve_dialog_cancel, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (reserve_dialog), "clicked",
                      GTK_SIGNAL_FUNC (on_reserve_dialog_clicked),
                      NULL);

  return reserve_dialog;
}

GtkWidget*
create_dvd_dialog (void)
{
  GtkWidget *dvd_dialog;
  GtkWidget *dialog_vbox8;
  GtkWidget *hbox53;
  GtkWidget *dvd_ref_label;
  GtkWidget *title_id;
  GtkWidget *frame11;
  GtkWidget *table9;
  GtkWidget *title_label;
  GtkWidget *title;
  GtkWidget *ref_label;
  GtkWidget *director_label;
  GtkWidget *genre_label;
  GtkWidget *classification_label;
  GtkWidget *actor1_label;
  GtkWidget *ref;
  GtkWidget *actor_1;
  GtkWidget *actor_2;
  GtkWidget *release_date;
  GtkWidget *classification;
  GtkWidget *class_entry;
  GtkWidget *director;
  GtkWidget *genre;
  GtkWidget *genre_entry;
  GtkObject *rental_cost_adj;
  GtkWidget *rental_cost;
  GtkWidget *actor2_label;
  GtkWidget *rel_Date_label;
  GtkWidget *cost_label;
  GtkWidget *dialog_action_area8;
  GtkWidget *dvd_dialog_ok;
  GtkWidget *dvd_dialog_cancel;

  dvd_dialog = gnome_dialog_new (_("New Title"), NULL);
  gtk_object_set_data (GTK_OBJECT (dvd_dialog), "dvd_dialog", dvd_dialog);
  gtk_window_set_policy (GTK_WINDOW (dvd_dialog), FALSE, FALSE, FALSE);
  gtk_window_set_wmclass (GTK_WINDOW (dvd_dialog), "add_dvd_dialog", "dvdstore");

  dialog_vbox8 = GNOME_DIALOG (dvd_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (dvd_dialog), "dialog_vbox8", dialog_vbox8);
  gtk_widget_show (dialog_vbox8);

  hbox53 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox53);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "hbox53", hbox53,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox53);
  gtk_box_pack_start (GTK_BOX (dialog_vbox8), hbox53, TRUE, TRUE, 0);

  dvd_ref_label = gtk_label_new (_("DVD Title ID:"));
  gtk_widget_ref (dvd_ref_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "dvd_ref_label", dvd_ref_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dvd_ref_label);
  gtk_box_pack_start (GTK_BOX (hbox53), dvd_ref_label, FALSE, FALSE, 6);

  title_id = gtk_label_new (_("--"));
  gtk_widget_ref (title_id);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "title_id", title_id,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_id);
  gtk_box_pack_start (GTK_BOX (hbox53), title_id, FALSE, FALSE, 2);

  frame11 = gtk_frame_new (_("DVD"));
  gtk_widget_ref (frame11);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "frame11", frame11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame11);
  gtk_box_pack_start (GTK_BOX (dialog_vbox8), frame11, TRUE, TRUE, 0);

  table9 = gtk_table_new (9, 2, FALSE);
  gtk_widget_ref (table9);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "table9", table9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table9);
  gtk_container_add (GTK_CONTAINER (frame11), table9);
  gtk_container_set_border_width (GTK_CONTAINER (table9), 4);
  gtk_table_set_row_spacings (GTK_TABLE (table9), 4);
  gtk_table_set_col_spacings (GTK_TABLE (table9), 4);

  title_label = gtk_label_new (_("Title:"));
  gtk_widget_ref (title_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "title_label", title_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_label);
  gtk_table_attach (GTK_TABLE (table9), title_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (title_label), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (title_label), 0, 0.5);

  title = gtk_entry_new_with_max_length (60);
  gtk_widget_ref (title);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "title", title,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title);
  gtk_table_attach (GTK_TABLE (table9), title, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  ref_label = gtk_label_new (_("Reference Number:"));
  gtk_widget_ref (ref_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "ref_label", ref_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (ref_label);
  gtk_table_attach (GTK_TABLE (table9), ref_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (ref_label), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (ref_label), 0, 0.5);

  director_label = gtk_label_new (_("Director:"));
  gtk_widget_ref (director_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "director_label", director_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (director_label);
  gtk_table_attach (GTK_TABLE (table9), director_label, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (director_label), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (director_label), 0, 0.5);

  genre_label = gtk_label_new (_("Genre:"));
  gtk_widget_ref (genre_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "genre_label", genre_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (genre_label);
  gtk_table_attach (GTK_TABLE (table9), genre_label, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (genre_label), 0, 0.5);

  classification_label = gtk_label_new (_("Classification:"));
  gtk_widget_ref (classification_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "classification_label", classification_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (classification_label);
  gtk_table_attach (GTK_TABLE (table9), classification_label, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (classification_label), 0, 0.5);

  actor1_label = gtk_label_new (_("Actor 1:"));
  gtk_widget_ref (actor1_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "actor1_label", actor1_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor1_label);
  gtk_table_attach (GTK_TABLE (table9), actor1_label, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (actor1_label), 0, 0.5);

  ref = gtk_entry_new_with_max_length (10);
  gtk_widget_ref (ref);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "ref", ref,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (ref);
  gtk_table_attach (GTK_TABLE (table9), ref, 1, 2, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  actor_1 = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (actor_1);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "actor_1", actor_1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor_1);
  gtk_table_attach (GTK_TABLE (table9), actor_1, 1, 2, 5, 6,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  actor_2 = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (actor_2);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "actor_2", actor_2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor_2);
  gtk_table_attach (GTK_TABLE (table9), actor_2, 1, 2, 6, 7,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  release_date = gnome_date_edit_new ((time_t) 0, FALSE, TRUE);
  gtk_widget_ref (release_date);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "release_date", release_date,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (release_date);
  gtk_table_attach (GTK_TABLE (table9), release_date, 1, 2, 7, 8,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (release_date, 158, -2);

  classification = gtk_combo_new ();
  gtk_widget_ref (classification);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "classification", classification,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (classification);
  gtk_table_attach (GTK_TABLE (table9), classification, 1, 2, 4, 5,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (classification, 158, -2);

  class_entry = GTK_COMBO (classification)->entry;
  gtk_widget_ref (class_entry);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "class_entry", class_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (class_entry);

  director = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (director);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "director", director,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (director);
  gtk_table_attach (GTK_TABLE (table9), director, 1, 2, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  genre = gtk_combo_new ();
  gtk_widget_ref (genre);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "genre", genre,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (genre);
  gtk_table_attach (GTK_TABLE (table9), genre, 1, 2, 3, 4,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (genre, 158, -2);

  genre_entry = GTK_COMBO (genre)->entry;
  gtk_widget_ref (genre_entry);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "genre_entry", genre_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (genre_entry);

  rental_cost_adj = gtk_adjustment_new (3.5, 0, 100, 1, 10, 10);
  rental_cost = gtk_spin_button_new (GTK_ADJUSTMENT (rental_cost_adj), 1, 2);
  gtk_widget_ref (rental_cost);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "rental_cost", rental_cost,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rental_cost);
  gtk_table_attach (GTK_TABLE (table9), rental_cost, 1, 2, 8, 9,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (rental_cost, 45, -2);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (rental_cost), TRUE);

  actor2_label = gtk_label_new (_("Actor 2:"));
  gtk_widget_ref (actor2_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "actor2_label", actor2_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor2_label);
  gtk_table_attach (GTK_TABLE (table9), actor2_label, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (actor2_label), 0, 0.5);

  rel_Date_label = gtk_label_new (_("Release Date:"));
  gtk_widget_ref (rel_Date_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "rel_Date_label", rel_Date_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rel_Date_label);
  gtk_table_attach (GTK_TABLE (table9), rel_Date_label, 0, 1, 7, 8,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (rel_Date_label), 0, 0.5);

  cost_label = gtk_label_new (_("Rental cost:"));
  gtk_widget_ref (cost_label);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "cost_label", cost_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (cost_label);
  gtk_table_attach (GTK_TABLE (table9), cost_label, 0, 1, 8, 9,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (cost_label), 0, 0.5);

  dialog_action_area8 = GNOME_DIALOG (dvd_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (dvd_dialog), "dialog_action_area8", dialog_action_area8);
  gtk_widget_show (dialog_action_area8);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area8), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area8), 8);

  gnome_dialog_append_button (GNOME_DIALOG (dvd_dialog), GNOME_STOCK_BUTTON_OK);
  dvd_dialog_ok = g_list_last (GNOME_DIALOG (dvd_dialog)->buttons)->data;
  gtk_widget_ref (dvd_dialog_ok);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "dvd_dialog_ok", dvd_dialog_ok,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dvd_dialog_ok);
  GTK_WIDGET_SET_FLAGS (dvd_dialog_ok, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (dvd_dialog), GNOME_STOCK_BUTTON_CANCEL);
  dvd_dialog_cancel = g_list_last (GNOME_DIALOG (dvd_dialog)->buttons)->data;
  gtk_widget_ref (dvd_dialog_cancel);
  gtk_object_set_data_full (GTK_OBJECT (dvd_dialog), "dvd_dialog_cancel", dvd_dialog_cancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dvd_dialog_cancel);
  GTK_WIDGET_SET_FLAGS (dvd_dialog_cancel, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (dvd_dialog), "clicked",
                      GTK_SIGNAL_FUNC (on_dvd_dialog_clicked),
                      NULL);

  return dvd_dialog;
}

static GnomeUIInfo member_optionmenu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Member No"),
    NULL,
    on_member_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Last Name"),
    NULL,
    on_last_name_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, 0, NULL
  },
  GNOMEUIINFO_END
};

GtkWidget*
create_member_optionmenu (void)
{
  GtkWidget *member_optionmenu;

  member_optionmenu = gtk_menu_new ();
  gtk_object_set_data (GTK_OBJECT (member_optionmenu), "member_optionmenu", member_optionmenu);
  gnome_app_fill_menu (GTK_MENU_SHELL (member_optionmenu), member_optionmenu_uiinfo,
                       NULL, FALSE, 0);

  gtk_widget_ref (member_optionmenu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (member_optionmenu), "member",
                            member_optionmenu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (member_optionmenu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (member_optionmenu), "last_name",
                            member_optionmenu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  return member_optionmenu;
}

GtkWidget*
create_search_window (void)
{
  GtkWidget *search_window;
  GtkWidget *vbox29;
  GtkWidget *search_notebook;
  GtkWidget *vbox28;
  GtkWidget *table12;
  GtkWidget *search_label;
  GtkWidget *title_search;
  GtkWidget *with_label;
  GtkWidget *title_entry;
  GtkWidget *combo_entry2;
  GtkWidget *actor_entry;
  GtkWidget *combo_entry3;
  GtkWidget *hseparator3;
  GtkWidget *scrolledwindow37;
  GtkWidget *title_search_clist;
  GtkWidget *label499;
  GtkWidget *label500;
  GtkWidget *label501;
  GtkWidget *label502;
  GtkWidget *label503;
  GtkWidget *label504;
  GtkWidget *label505;
  GtkWidget *label506;
  GtkWidget *label507;
  GtkWidget *label508;
  GtkWidget *hbuttonbox16;
  GtkWidget *title_clear;
  GtkWidget *dvd_label;
  GtkWidget *vbox31;
  GtkWidget *hbox59;
  GtkWidget *search_label2;
  GtkWidget *member_optionmenu;
  GtkWidget *member_optionmenu_menu;
  GtkWidget *member_entry;
  GtkWidget *combo_entry1;
  GtkWidget *member_search;
  GtkWidget *hseparator4;
  GtkWidget *scrolledwindow38;
  GtkWidget *member_search_clist;
  GtkWidget *label509;
  GtkWidget *label510;
  GtkWidget *label511;
  GtkWidget *label512;
  GtkWidget *label513;
  GtkWidget *label514;
  GtkWidget *label515;
  GtkWidget *label516;
  GtkWidget *label517;
  GtkWidget *label518;
  GtkWidget *label519;
  GtkWidget *hbuttonbox17;
  GtkWidget *member_clear;
  GtkWidget *label468;
  GtkWidget *vbox32;
  GtkWidget *hbox62;
  GtkWidget *searchdisk_label;
  GtkObject *diskid_spinbutton_adj;
  GtkWidget *diskid_spinbutton;
  GtkWidget *disk_search;
  GtkWidget *hseparator5;
  GtkWidget *scrolledwindow39;
  GtkWidget *disk_search_clist;
  GtkWidget *label479;
  GtkWidget *label480;
  GtkWidget *label481;
  GtkWidget *label482;
  GtkWidget *hbuttonbox18;
  GtkWidget *disk_clear;
  GtkWidget *disk_label;
  GtkWidget *search_appbar;
  GtkWidget *hbuttonbox13;
  GtkWidget *search_close;

  search_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (search_window), "search_window", search_window);
  gtk_window_set_title (GTK_WINDOW (search_window), _("Search"));
  gtk_window_set_position (GTK_WINDOW (search_window), GTK_WIN_POS_CENTER);
  gtk_window_set_wmclass (GTK_WINDOW (search_window), "search_window", "dvdstore");

  vbox29 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox29);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "vbox29", vbox29,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox29);
  gtk_container_add (GTK_CONTAINER (search_window), vbox29);

  search_notebook = gtk_notebook_new ();
  gtk_widget_ref (search_notebook);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "search_notebook", search_notebook,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (search_notebook);
  gtk_box_pack_start (GTK_BOX (vbox29), search_notebook, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (search_notebook), 5);

  vbox28 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox28);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "vbox28", vbox28,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox28);
  gtk_container_add (GTK_CONTAINER (search_notebook), vbox28);

  table12 = gtk_table_new (2, 3, FALSE);
  gtk_widget_ref (table12);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "table12", table12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table12);
  gtk_box_pack_start (GTK_BOX (vbox28), table12, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (table12), 5);
  gtk_table_set_row_spacings (GTK_TABLE (table12), 4);

  search_label = gtk_label_new (_("Search for:"));
  gtk_widget_ref (search_label);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "search_label", search_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (search_label);
  gtk_table_attach (GTK_TABLE (table12), search_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 5, 0);

  title_search = gtk_button_new_with_label (_("Search"));
  gtk_widget_ref (title_search);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "title_search", title_search,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_search);
  gtk_table_attach (GTK_TABLE (table12), title_search, 2, 3, 0, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  GTK_WIDGET_SET_FLAGS (title_search, GTK_CAN_DEFAULT);

  with_label = gtk_label_new (_("with Actor/Director:"));
  gtk_widget_ref (with_label);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "with_label", with_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (with_label);
  gtk_table_attach (GTK_TABLE (table12), with_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 0);

  title_entry = gnome_entry_new ("title_search");
  gtk_widget_ref (title_entry);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "title_entry", title_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_entry);
  gtk_table_attach (GTK_TABLE (table12), title_entry, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gnome_entry_set_max_saved (GNOME_ENTRY (title_entry), 5);

  combo_entry2 = gnome_entry_gtk_entry (GNOME_ENTRY (title_entry));
  gtk_widget_ref (combo_entry2);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "combo_entry2", combo_entry2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry2);

  actor_entry = gnome_entry_new ("actor_search");
  gtk_widget_ref (actor_entry);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "actor_entry", actor_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor_entry);
  gtk_table_attach (GTK_TABLE (table12), actor_entry, 1, 2, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gnome_entry_set_max_saved (GNOME_ENTRY (actor_entry), 5);

  combo_entry3 = gnome_entry_gtk_entry (GNOME_ENTRY (actor_entry));
  gtk_widget_ref (combo_entry3);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "combo_entry3", combo_entry3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry3);
  gtk_entry_set_text (GTK_ENTRY (combo_entry3), _("\"\""));

  hseparator3 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator3);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hseparator3", hseparator3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator3);
  gtk_box_pack_start (GTK_BOX (vbox28), hseparator3, FALSE, FALSE, 10);

  scrolledwindow37 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow37);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "scrolledwindow37", scrolledwindow37,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow37);
  gtk_box_pack_start (GTK_BOX (vbox28), scrolledwindow37, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow37), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  title_search_clist = gtk_clist_new (10);
  gtk_widget_ref (title_search_clist);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "title_search_clist", title_search_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_search_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow37), title_search_clist);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 0, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 1, 125);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 2, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 3, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 4, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 5, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 6, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 7, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 8, 80);
  gtk_clist_set_column_width (GTK_CLIST (title_search_clist), 9, 80);
  gtk_clist_column_titles_show (GTK_CLIST (title_search_clist));

  label499 = gtk_label_new (_("Title ID"));
  gtk_widget_ref (label499);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label499", label499,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label499);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 0, label499);

  label500 = gtk_label_new (_("Title"));
  gtk_widget_ref (label500);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label500", label500,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label500);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 1, label500);

  label501 = gtk_label_new (_("Ref No"));
  gtk_widget_ref (label501);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label501", label501,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label501);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 2, label501);

  label502 = gtk_label_new (_("Director"));
  gtk_widget_ref (label502);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label502", label502,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label502);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 3, label502);

  label503 = gtk_label_new (_("Genre"));
  gtk_widget_ref (label503);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label503", label503,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label503);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 4, label503);

  label504 = gtk_label_new (_("Classification"));
  gtk_widget_ref (label504);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label504", label504,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label504);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 5, label504);

  label505 = gtk_label_new (_("Actor 1"));
  gtk_widget_ref (label505);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label505", label505,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label505);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 6, label505);

  label506 = gtk_label_new (_("Actor2"));
  gtk_widget_ref (label506);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label506", label506,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label506);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 7, label506);

  label507 = gtk_label_new (_("Release Date"));
  gtk_widget_ref (label507);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label507", label507,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label507);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 8, label507);

  label508 = gtk_label_new (_("Rental Cost"));
  gtk_widget_ref (label508);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label508", label508,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label508);
  gtk_clist_set_column_widget (GTK_CLIST (title_search_clist), 9, label508);

  hbuttonbox16 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox16);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hbuttonbox16", hbuttonbox16,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox16);
  gtk_box_pack_start (GTK_BOX (vbox28), hbuttonbox16, FALSE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox16), GTK_BUTTONBOX_END);

  title_clear = gtk_button_new_with_label (_("Clear"));
  gtk_widget_ref (title_clear);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "title_clear", title_clear,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title_clear);
  gtk_container_add (GTK_CONTAINER (hbuttonbox16), title_clear);
  GTK_WIDGET_SET_FLAGS (title_clear, GTK_CAN_DEFAULT);

  dvd_label = gtk_label_new (_("DVD Title"));
  gtk_widget_ref (dvd_label);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "dvd_label", dvd_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dvd_label);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (search_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (search_notebook), 0), dvd_label);

  vbox31 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox31);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "vbox31", vbox31,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox31);
  gtk_container_add (GTK_CONTAINER (search_notebook), vbox31);

  hbox59 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox59);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hbox59", hbox59,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox59);
  gtk_box_pack_start (GTK_BOX (vbox31), hbox59, FALSE, FALSE, 0);

  search_label2 = gtk_label_new (_("Search for:"));
  gtk_widget_ref (search_label2);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "search_label2", search_label2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (search_label2);
  gtk_box_pack_start (GTK_BOX (hbox59), search_label2, FALSE, FALSE, 5);

  member_optionmenu = gtk_option_menu_new ();
  gtk_widget_ref (member_optionmenu);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "member_optionmenu", member_optionmenu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_optionmenu);
  gtk_box_pack_start (GTK_BOX (hbox59), member_optionmenu, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (member_optionmenu), 4);
  member_optionmenu_menu = gtk_menu_new ();
  gtk_option_menu_set_menu (GTK_OPTION_MENU (member_optionmenu), member_optionmenu_menu);

  member_entry = gnome_entry_new ("member_search");
  gtk_widget_ref (member_entry);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "member_entry", member_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_entry);
  gtk_box_pack_start (GTK_BOX (hbox59), member_entry, FALSE, FALSE, 0);
  gnome_entry_set_max_saved (GNOME_ENTRY (member_entry), 5);

  combo_entry1 = gnome_entry_gtk_entry (GNOME_ENTRY (member_entry));
  gtk_widget_ref (combo_entry1);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "combo_entry1", combo_entry1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry1);

  member_search = gtk_button_new_with_label (_("Search"));
  gtk_widget_ref (member_search);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "member_search", member_search,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_search);
  gtk_box_pack_start (GTK_BOX (hbox59), member_search, FALSE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (member_search, GTK_CAN_DEFAULT);

  hseparator4 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator4);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hseparator4", hseparator4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator4);
  gtk_box_pack_start (GTK_BOX (vbox31), hseparator4, FALSE, FALSE, 10);

  scrolledwindow38 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow38);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "scrolledwindow38", scrolledwindow38,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow38);
  gtk_box_pack_start (GTK_BOX (vbox31), scrolledwindow38, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow38), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  member_search_clist = gtk_clist_new (11);
  gtk_widget_ref (member_search_clist);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "member_search_clist", member_search_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_search_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow38), member_search_clist);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 0, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 1, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 2, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 3, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 4, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 5, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 6, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 7, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 8, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 9, 80);
  gtk_clist_set_column_width (GTK_CLIST (member_search_clist), 10, 80);
  gtk_clist_column_titles_show (GTK_CLIST (member_search_clist));

  label509 = gtk_label_new (_("Member No"));
  gtk_widget_ref (label509);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label509", label509,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label509);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 0, label509);

  label510 = gtk_label_new (_("Title"));
  gtk_widget_ref (label510);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label510", label510,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label510);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 1, label510);

  label511 = gtk_label_new (_("First Name"));
  gtk_widget_ref (label511);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label511", label511,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label511);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 2, label511);

  label512 = gtk_label_new (_("Last Name"));
  gtk_widget_ref (label512);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label512", label512,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label512);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 3, label512);

  label513 = gtk_label_new (_("House/Flat"));
  gtk_widget_ref (label513);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label513", label513,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label513);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 4, label513);

  label514 = gtk_label_new (_("Address 1"));
  gtk_widget_ref (label514);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label514", label514,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label514);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 5, label514);

  label515 = gtk_label_new (_("Address 2"));
  gtk_widget_ref (label515);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label515", label515,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label515);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 6, label515);

  label516 = gtk_label_new (_("Town"));
  gtk_widget_ref (label516);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label516", label516,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label516);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 7, label516);

  label517 = gtk_label_new (_("State"));
  gtk_widget_ref (label517);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label517", label517,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label517);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 8, label517);

  label518 = gtk_label_new (_("Phone"));
  gtk_widget_ref (label518);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label518", label518,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label518);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 9, label518);

  label519 = gtk_label_new (_("Zipcode"));
  gtk_widget_ref (label519);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label519", label519,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label519);
  gtk_clist_set_column_widget (GTK_CLIST (member_search_clist), 10, label519);

  hbuttonbox17 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox17);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hbuttonbox17", hbuttonbox17,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox17);
  gtk_box_pack_start (GTK_BOX (vbox31), hbuttonbox17, FALSE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox17), GTK_BUTTONBOX_END);

  member_clear = gtk_button_new_with_label (_("Clear"));
  gtk_widget_ref (member_clear);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "member_clear", member_clear,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_clear);
  gtk_container_add (GTK_CONTAINER (hbuttonbox17), member_clear);
  GTK_WIDGET_SET_FLAGS (member_clear, GTK_CAN_DEFAULT);

  label468 = gtk_label_new (_("Member"));
  gtk_widget_ref (label468);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label468", label468,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label468);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (search_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (search_notebook), 1), label468);

  vbox32 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox32);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "vbox32", vbox32,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox32);
  gtk_container_add (GTK_CONTAINER (search_notebook), vbox32);

  hbox62 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox62);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hbox62", hbox62,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox62);
  gtk_box_pack_start (GTK_BOX (vbox32), hbox62, FALSE, FALSE, 0);

  searchdisk_label = gtk_label_new (_("Search for Disks for Title ID: "));
  gtk_widget_ref (searchdisk_label);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "searchdisk_label", searchdisk_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (searchdisk_label);
  gtk_box_pack_start (GTK_BOX (hbox62), searchdisk_label, FALSE, FALSE, 5);

  diskid_spinbutton_adj = gtk_adjustment_new (0, 0, 99999, 1, 10, 10);
  diskid_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (diskid_spinbutton_adj), 1, 0);
  gtk_widget_ref (diskid_spinbutton);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "diskid_spinbutton", diskid_spinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (diskid_spinbutton);
  gtk_box_pack_start (GTK_BOX (hbox62), diskid_spinbutton, FALSE, FALSE, 0);
  gtk_widget_set_usize (diskid_spinbutton, 65, -2);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (diskid_spinbutton), TRUE);
  gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (diskid_spinbutton), GTK_UPDATE_IF_VALID);

  disk_search = gtk_button_new_with_label (_("Search"));
  gtk_widget_ref (disk_search);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "disk_search", disk_search,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disk_search);
  gtk_box_pack_start (GTK_BOX (hbox62), disk_search, FALSE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (disk_search, GTK_CAN_DEFAULT);

  hseparator5 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator5);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hseparator5", hseparator5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator5);
  gtk_box_pack_start (GTK_BOX (vbox32), hseparator5, FALSE, FALSE, 10);

  scrolledwindow39 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow39);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "scrolledwindow39", scrolledwindow39,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow39);
  gtk_box_pack_start (GTK_BOX (vbox32), scrolledwindow39, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow39), GTK_POLICY_ALWAYS, GTK_POLICY_AUTOMATIC);

  disk_search_clist = gtk_clist_new (4);
  gtk_widget_ref (disk_search_clist);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "disk_search_clist", disk_search_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disk_search_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow39), disk_search_clist);
  gtk_clist_set_column_width (GTK_CLIST (disk_search_clist), 0, 52);
  gtk_clist_set_column_width (GTK_CLIST (disk_search_clist), 1, 98);
  gtk_clist_set_column_width (GTK_CLIST (disk_search_clist), 2, 66);
  gtk_clist_set_column_width (GTK_CLIST (disk_search_clist), 3, 80);
  gtk_clist_column_titles_show (GTK_CLIST (disk_search_clist));

  label479 = gtk_label_new (_("Title ID"));
  gtk_widget_ref (label479);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label479", label479,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label479);
  gtk_clist_set_column_widget (GTK_CLIST (disk_search_clist), 0, label479);

  label480 = gtk_label_new (_("Title"));
  gtk_widget_ref (label480);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label480", label480,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label480);
  gtk_clist_set_column_widget (GTK_CLIST (disk_search_clist), 1, label480);

  label481 = gtk_label_new (_("Disk ID"));
  gtk_widget_ref (label481);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label481", label481,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label481);
  gtk_clist_set_column_widget (GTK_CLIST (disk_search_clist), 2, label481);

  label482 = gtk_label_new (_("On Loan to Member ID"));
  gtk_widget_ref (label482);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "label482", label482,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label482);
  gtk_clist_set_column_widget (GTK_CLIST (disk_search_clist), 3, label482);

  hbuttonbox18 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox18);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hbuttonbox18", hbuttonbox18,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox18);
  gtk_box_pack_start (GTK_BOX (vbox32), hbuttonbox18, FALSE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox18), GTK_BUTTONBOX_END);

  disk_clear = gtk_button_new_with_label (_("Clear"));
  gtk_widget_ref (disk_clear);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "disk_clear", disk_clear,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disk_clear);
  gtk_container_add (GTK_CONTAINER (hbuttonbox18), disk_clear);
  GTK_WIDGET_SET_FLAGS (disk_clear, GTK_CAN_DEFAULT);

  disk_label = gtk_label_new (_("Disk"));
  gtk_widget_ref (disk_label);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "disk_label", disk_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disk_label);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (search_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (search_notebook), 2), disk_label);

  search_appbar = gnome_appbar_new (FALSE, TRUE, GNOME_PREFERENCES_NEVER);
  gtk_widget_ref (search_appbar);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "search_appbar", search_appbar,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (search_appbar);
  gtk_box_pack_start (GTK_BOX (vbox29), search_appbar, FALSE, FALSE, 0);

  hbuttonbox13 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox13);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "hbuttonbox13", hbuttonbox13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox13);
  gtk_box_pack_start (GTK_BOX (vbox29), hbuttonbox13, FALSE, TRUE, 0);
  gtk_widget_set_usize (hbuttonbox13, 254, -2);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox13), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox13), 8);
  gtk_button_box_set_child_size (GTK_BUTTON_BOX (hbuttonbox13), 63, 10);

  search_close = gnome_stock_button (GNOME_STOCK_BUTTON_CLOSE);
  gtk_widget_ref (search_close);
  gtk_object_set_data_full (GTK_OBJECT (search_window), "search_close", search_close,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (search_close);
  gtk_container_add (GTK_CONTAINER (hbuttonbox13), search_close);
  GTK_WIDGET_SET_FLAGS (search_close, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (title_search), "clicked",
                      GTK_SIGNAL_FUNC (on_search_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (title_search_clist), "button_press_event",
                      GTK_SIGNAL_FUNC (on_dvd_search_clist_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (title_clear), "clicked",
                      GTK_SIGNAL_FUNC (on_search_clear_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (member_search), "clicked",
                      GTK_SIGNAL_FUNC (on_search_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (member_search_clist), "button_press_event",
                      GTK_SIGNAL_FUNC (on_dvd_search_clist_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (member_clear), "clicked",
                      GTK_SIGNAL_FUNC (on_search_clear_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (disk_search), "clicked",
                      GTK_SIGNAL_FUNC (on_search_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (disk_clear), "clicked",
                      GTK_SIGNAL_FUNC (on_search_clear_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (search_close), "clicked",
                      GTK_SIGNAL_FUNC (on_search_close_clicked),
                      NULL);

  return search_window;
}

static GnomeUIInfo dvd_popup_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Rent..."),
    NULL,
    on_search_menu_rent_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_CDROM,
    0, 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Reserve..."),
    NULL,
    on_search_menu_reserve_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_BOOK_OPEN,
    0, 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("Edit..."),
    NULL,
    on_search_menu_edit_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Delete"),
    NULL,
    on_search_menu_delete_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_CLOSE,
    0, 0, NULL
  },
  GNOMEUIINFO_END
};

GtkWidget*
create_dvd_popup_menu (void)
{
  GtkWidget *dvd_popup_menu;

  dvd_popup_menu = gtk_menu_new ();
  gtk_object_set_data (GTK_OBJECT (dvd_popup_menu), "dvd_popup_menu", dvd_popup_menu);
  gnome_app_fill_menu (GTK_MENU_SHELL (dvd_popup_menu), dvd_popup_menu_uiinfo,
                       NULL, FALSE, 0);

  gtk_widget_ref (dvd_popup_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvd_popup_menu), "rent",
                            dvd_popup_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (dvd_popup_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvd_popup_menu), "reserve",
                            dvd_popup_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (dvd_popup_menu_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvd_popup_menu), "separator",
                            dvd_popup_menu_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (dvd_popup_menu_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvd_popup_menu), "edit",
                            dvd_popup_menu_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (dvd_popup_menu_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (dvd_popup_menu), "delete",
                            dvd_popup_menu_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  return dvd_popup_menu;
}

GtkWidget*
create_disk_dialog (void)
{
  GtkWidget *disk_dialog;
  GtkWidget *dialog_vbox9;
  GtkWidget *hbox64;
  GtkWidget *titleid_label;
  GtkObject *titleid_spinbutton_adj;
  GtkWidget *titleid_spinbutton;
  GtkWidget *dialog_action_area9;
  GtkWidget *disk_dialog_ok;
  GtkWidget *disk_dialog_cancel;

  disk_dialog = gnome_dialog_new (_("New Disk"), NULL);
  gtk_object_set_data (GTK_OBJECT (disk_dialog), "disk_dialog", disk_dialog);
  gtk_window_set_policy (GTK_WINDOW (disk_dialog), FALSE, FALSE, FALSE);

  dialog_vbox9 = GNOME_DIALOG (disk_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (disk_dialog), "dialog_vbox9", dialog_vbox9);
  gtk_widget_show (dialog_vbox9);

  hbox64 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox64);
  gtk_object_set_data_full (GTK_OBJECT (disk_dialog), "hbox64", hbox64,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox64);
  gtk_box_pack_start (GTK_BOX (dialog_vbox9), hbox64, FALSE, FALSE, 5);
  gtk_container_set_border_width (GTK_CONTAINER (hbox64), 5);

  titleid_label = gtk_label_new (_("Add a Disk record \nto Title ID:"));
  gtk_widget_ref (titleid_label);
  gtk_object_set_data_full (GTK_OBJECT (disk_dialog), "titleid_label", titleid_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (titleid_label);
  gtk_box_pack_start (GTK_BOX (hbox64), titleid_label, FALSE, FALSE, 5);
  gtk_misc_set_alignment (GTK_MISC (titleid_label), 1, 0.5);

  titleid_spinbutton_adj = gtk_adjustment_new (0, 0, 999999, 1, 10, 10);
  titleid_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (titleid_spinbutton_adj), 1, 0);
  gtk_widget_ref (titleid_spinbutton);
  gtk_object_set_data_full (GTK_OBJECT (disk_dialog), "titleid_spinbutton", titleid_spinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (titleid_spinbutton);
  gtk_box_pack_start (GTK_BOX (hbox64), titleid_spinbutton, TRUE, TRUE, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (titleid_spinbutton), TRUE);

  dialog_action_area9 = GNOME_DIALOG (disk_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (disk_dialog), "dialog_action_area9", dialog_action_area9);
  gtk_widget_show (dialog_action_area9);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area9), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area9), 8);

  gnome_dialog_append_button (GNOME_DIALOG (disk_dialog), GNOME_STOCK_BUTTON_OK);
  disk_dialog_ok = g_list_last (GNOME_DIALOG (disk_dialog)->buttons)->data;
  gtk_widget_ref (disk_dialog_ok);
  gtk_object_set_data_full (GTK_OBJECT (disk_dialog), "disk_dialog_ok", disk_dialog_ok,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disk_dialog_ok);
  GTK_WIDGET_SET_FLAGS (disk_dialog_ok, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (disk_dialog), GNOME_STOCK_BUTTON_CANCEL);
  disk_dialog_cancel = g_list_last (GNOME_DIALOG (disk_dialog)->buttons)->data;
  gtk_widget_ref (disk_dialog_cancel);
  gtk_object_set_data_full (GTK_OBJECT (disk_dialog), "disk_dialog_cancel", disk_dialog_cancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (disk_dialog_cancel);
  GTK_WIDGET_SET_FLAGS (disk_dialog_cancel, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (disk_dialog), "clicked",
                      GTK_SIGNAL_FUNC (on_disk_dialog_clicked),
                      NULL);

  return disk_dialog;
}

GtkWidget*
create_rent_report_dialog (void)
{
  GtkWidget *rent_report_dialog;
  GtkWidget *dialog_vbox10;
  GtkWidget *vbox37;
  GtkWidget *hbox69;
  GtkWidget *member_frame;
  GtkWidget *table16;
  GtkWidget *houseno;
  GtkWidget *address1;
  GtkWidget *address2;
  GtkWidget *title;
  GtkWidget *firstname;
  GtkWidget *lastname;
  GtkWidget *scrolledwindow42;
  GtkWidget *rent_result_clist;
  GtkWidget *label488;
  GtkWidget *label489;
  GtkWidget *label490;
  GtkWidget *label491;
  GtkWidget *hseparator6;
  GtkWidget *hbox70;
  GtkWidget *amount_label;
  GtkWidget *amount_due;
  GtkWidget *dialog_action_area10;
  GtkWidget *rent_report_dialog_ok;

  rent_report_dialog = gnome_dialog_new (_("Rent Disk Report"), NULL);
  gtk_object_set_data (GTK_OBJECT (rent_report_dialog), "rent_report_dialog", rent_report_dialog);
  gtk_window_set_policy (GTK_WINDOW (rent_report_dialog), FALSE, FALSE, FALSE);

  dialog_vbox10 = GNOME_DIALOG (rent_report_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (rent_report_dialog), "dialog_vbox10", dialog_vbox10);
  gtk_widget_show (dialog_vbox10);

  vbox37 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox37);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "vbox37", vbox37,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox37);
  gtk_box_pack_start (GTK_BOX (dialog_vbox10), vbox37, TRUE, TRUE, 0);

  hbox69 = gtk_hbox_new (FALSE, 6);
  gtk_widget_ref (hbox69);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "hbox69", hbox69,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox69);
  gtk_box_pack_start (GTK_BOX (vbox37), hbox69, TRUE, TRUE, 0);

  member_frame = gtk_frame_new (_("Member ######"));
  gtk_widget_ref (member_frame);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "member_frame", member_frame,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (member_frame);
  gtk_box_pack_start (GTK_BOX (hbox69), member_frame, FALSE, TRUE, 0);

  table16 = gtk_table_new (4, 3, FALSE);
  gtk_widget_ref (table16);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "table16", table16,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table16);
  gtk_container_add (GTK_CONTAINER (member_frame), table16);
  gtk_container_set_border_width (GTK_CONTAINER (table16), 5);
  gtk_table_set_row_spacings (GTK_TABLE (table16), 5);
  gtk_table_set_col_spacings (GTK_TABLE (table16), 2);

  houseno = gtk_label_new (_("houseno"));
  gtk_widget_ref (houseno);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "houseno", houseno,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (houseno);
  gtk_table_attach (GTK_TABLE (table16), houseno, 0, 3, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  address1 = gtk_label_new (_("address1"));
  gtk_widget_ref (address1);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "address1", address1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address1);
  gtk_table_attach (GTK_TABLE (table16), address1, 0, 3, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  address2 = gtk_label_new (_("address2"));
  gtk_widget_ref (address2);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "address2", address2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address2);
  gtk_table_attach (GTK_TABLE (table16), address2, 0, 3, 3, 4,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  title = gtk_label_new (_("Title"));
  gtk_widget_ref (title);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "title", title,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title);
  gtk_table_attach (GTK_TABLE (table16), title, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_SHRINK),
                    (GtkAttachOptions) (0), 0, 0);

  firstname = gtk_label_new (_("firstname"));
  gtk_widget_ref (firstname);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "firstname", firstname,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (firstname);
  gtk_table_attach (GTK_TABLE (table16), firstname, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_SHRINK),
                    (GtkAttachOptions) (0), 0, 0);

  lastname = gtk_label_new (_("lastname"));
  gtk_widget_ref (lastname);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "lastname", lastname,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (lastname);
  gtk_table_attach (GTK_TABLE (table16), lastname, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_SHRINK),
                    (GtkAttachOptions) (0), 0, 0);

  scrolledwindow42 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow42);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "scrolledwindow42", scrolledwindow42,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow42);
  gtk_box_pack_start (GTK_BOX (hbox69), scrolledwindow42, TRUE, TRUE, 0);
  gtk_widget_set_usize (scrolledwindow42, 315, -2);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow42), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);

  rent_result_clist = gtk_clist_new (4);
  gtk_widget_ref (rent_result_clist);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "rent_result_clist", rent_result_clist,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_result_clist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow42), rent_result_clist);
  gtk_clist_set_column_width (GTK_CLIST (rent_result_clist), 0, 48);
  gtk_clist_set_column_width (GTK_CLIST (rent_result_clist), 1, 131);
  gtk_clist_set_column_width (GTK_CLIST (rent_result_clist), 2, 22);
  gtk_clist_set_column_width (GTK_CLIST (rent_result_clist), 3, 80);
  gtk_clist_column_titles_show (GTK_CLIST (rent_result_clist));

  label488 = gtk_label_new (_("Title ID"));
  gtk_widget_ref (label488);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "label488", label488,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label488);
  gtk_clist_set_column_widget (GTK_CLIST (rent_result_clist), 0, label488);

  label489 = gtk_label_new (_("Title"));
  gtk_widget_ref (label489);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "label489", label489,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label489);
  gtk_clist_set_column_widget (GTK_CLIST (rent_result_clist), 1, label489);

  label490 = gtk_label_new ("");
  gtk_widget_ref (label490);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "label490", label490,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label490);
  gtk_clist_set_column_widget (GTK_CLIST (rent_result_clist), 2, label490);

  label491 = gtk_label_new (_("Disk ID to Rent"));
  gtk_widget_ref (label491);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "label491", label491,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label491);
  gtk_clist_set_column_widget (GTK_CLIST (rent_result_clist), 3, label491);

  hseparator6 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator6);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "hseparator6", hseparator6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator6);
  gtk_box_pack_start (GTK_BOX (vbox37), hseparator6, TRUE, TRUE, 16);

  hbox70 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox70);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "hbox70", hbox70,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox70);
  gtk_box_pack_start (GTK_BOX (vbox37), hbox70, TRUE, TRUE, 0);

  amount_label = gtk_label_new (_("Total Amount due:"));
  gtk_widget_ref (amount_label);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "amount_label", amount_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (amount_label);
  gtk_box_pack_start (GTK_BOX (hbox70), amount_label, FALSE, FALSE, 0);

  amount_due = gtk_label_new (_("$##.##"));
  gtk_widget_ref (amount_due);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "amount_due", amount_due,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (amount_due);
  gtk_box_pack_start (GTK_BOX (hbox70), amount_due, FALSE, FALSE, 5);

  dialog_action_area10 = GNOME_DIALOG (rent_report_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (rent_report_dialog), "dialog_action_area10", dialog_action_area10);
  gtk_widget_show (dialog_action_area10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area10), 8);

  gnome_dialog_append_button (GNOME_DIALOG (rent_report_dialog), GNOME_STOCK_BUTTON_OK);
  rent_report_dialog_ok = g_list_last (GNOME_DIALOG (rent_report_dialog)->buttons)->data;
  gtk_widget_ref (rent_report_dialog_ok);
  gtk_object_set_data_full (GTK_OBJECT (rent_report_dialog), "rent_report_dialog_ok", rent_report_dialog_ok,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rent_report_dialog_ok);
  GTK_WIDGET_SET_FLAGS (rent_report_dialog_ok, GTK_CAN_DEFAULT);

  return rent_report_dialog;
}

GtkWidget*
create_preferences (void)
{
  GtkWidget *preferences;
  GtkWidget *notebook1;
  GtkWidget *vbox38;
  GtkWidget *frame16;
  GtkWidget *hbox71;
  GtkWidget *logfile_name;
  GtkWidget *frame19;
  GtkWidget *hbox74;
  GtkObject *days_rent_adj;
  GtkWidget *days_rent;
  GtkWidget *days_label;
  GtkWidget *label497;
  GtkWidget *hbox73;
  GtkWidget *frame17;
  GtkWidget *vbox40;
  GtkWidget *ref;
  GtkWidget *director;
  GtkWidget *genre;
  GtkWidget *classification;
  GtkWidget *actor1;
  GtkWidget *actor2;
  GtkWidget *date;
  GtkWidget *cost;
  GtkWidget *frame18;
  GtkWidget *vbox41;
  GtkWidget *title;
  GtkWidget *fname;
  GtkWidget *lname;
  GtkWidget *houseno;
  GtkWidget *address1;
  GtkWidget *address2;
  GtkWidget *town;
  GtkWidget *state;
  GtkWidget *phone;
  GtkWidget *zipcode;
  GtkWidget *label498;

  preferences = gnome_property_box_new ();
  gtk_object_set_data (GTK_OBJECT (preferences), "preferences", preferences);

  notebook1 = GNOME_PROPERTY_BOX (preferences)->notebook;
  gtk_object_set_data (GTK_OBJECT (preferences), "notebook1", notebook1);
  gtk_widget_show (notebook1);

  vbox38 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox38);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "vbox38", vbox38,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox38);
  gtk_container_add (GTK_CONTAINER (notebook1), vbox38);

  frame16 = gtk_frame_new (_("Log File name"));
  gtk_widget_ref (frame16);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "frame16", frame16,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame16);
  gtk_box_pack_start (GTK_BOX (vbox38), frame16, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame16), 10);

  hbox71 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox71);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "hbox71", hbox71,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox71);
  gtk_container_add (GTK_CONTAINER (frame16), hbox71);
  gtk_container_set_border_width (GTK_CONTAINER (hbox71), 5);

  logfile_name = gtk_entry_new ();
  gtk_widget_ref (logfile_name);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "logfile_name", logfile_name,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (logfile_name);
  gtk_box_pack_start (GTK_BOX (hbox71), logfile_name, FALSE, FALSE, 10);
  gtk_entry_set_text (GTK_ENTRY (logfile_name), _("~/dvdstore.log"));

  frame19 = gtk_frame_new (_("Maximum renting period before overdue"));
  gtk_widget_ref (frame19);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "frame19", frame19,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame19);
  gtk_box_pack_start (GTK_BOX (vbox38), frame19, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame19), 10);

  hbox74 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox74);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "hbox74", hbox74,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox74);
  gtk_container_add (GTK_CONTAINER (frame19), hbox74);
  gtk_container_set_border_width (GTK_CONTAINER (hbox74), 5);

  days_rent_adj = gtk_adjustment_new (3, 0, 100, 1, 10, 10);
  days_rent = gtk_spin_button_new (GTK_ADJUSTMENT (days_rent_adj), 1, 0);
  gtk_widget_ref (days_rent);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "days_rent", days_rent,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (days_rent);
  gtk_box_pack_start (GTK_BOX (hbox74), days_rent, FALSE, TRUE, 0);

  days_label = gtk_label_new (_("days"));
  gtk_widget_ref (days_label);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "days_label", days_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (days_label);
  gtk_box_pack_start (GTK_BOX (hbox74), days_label, FALSE, FALSE, 0);

  label497 = gtk_label_new (_("General"));
  gtk_widget_ref (label497);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "label497", label497,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label497);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label497);

  hbox73 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox73);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "hbox73", hbox73,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox73);
  gtk_container_add (GTK_CONTAINER (notebook1), hbox73);

  frame17 = gtk_frame_new (_("View Title Field in Search List"));
  gtk_widget_ref (frame17);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "frame17", frame17,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame17);
  gtk_box_pack_start (GTK_BOX (hbox73), frame17, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame17), 10);

  vbox40 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox40);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "vbox40", vbox40,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox40);
  gtk_container_add (GTK_CONTAINER (frame17), vbox40);
  gtk_container_set_border_width (GTK_CONTAINER (vbox40), 10);

  ref = gtk_check_button_new_with_label (_("Reference Number"));
  gtk_widget_ref (ref);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "ref", ref,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (ref);
  gtk_box_pack_start (GTK_BOX (vbox40), ref, FALSE, FALSE, 0);

  director = gtk_check_button_new_with_label (_("Director"));
  gtk_widget_ref (director);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "director", director,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (director);
  gtk_box_pack_start (GTK_BOX (vbox40), director, FALSE, FALSE, 0);

  genre = gtk_check_button_new_with_label (_("Genre"));
  gtk_widget_ref (genre);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "genre", genre,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (genre);
  gtk_box_pack_start (GTK_BOX (vbox40), genre, FALSE, FALSE, 0);

  classification = gtk_check_button_new_with_label (_("Classification"));
  gtk_widget_ref (classification);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "classification", classification,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (classification);
  gtk_box_pack_start (GTK_BOX (vbox40), classification, FALSE, FALSE, 0);

  actor1 = gtk_check_button_new_with_label (_("Actor 1"));
  gtk_widget_ref (actor1);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "actor1", actor1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor1);
  gtk_box_pack_start (GTK_BOX (vbox40), actor1, FALSE, FALSE, 0);

  actor2 = gtk_check_button_new_with_label (_("Actor 2"));
  gtk_widget_ref (actor2);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "actor2", actor2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (actor2);
  gtk_box_pack_start (GTK_BOX (vbox40), actor2, FALSE, FALSE, 0);

  date = gtk_check_button_new_with_label (_("Release Date"));
  gtk_widget_ref (date);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "date", date,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (date);
  gtk_box_pack_start (GTK_BOX (vbox40), date, FALSE, FALSE, 0);

  cost = gtk_check_button_new_with_label (_("Rental Cost"));
  gtk_widget_ref (cost);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "cost", cost,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (cost);
  gtk_box_pack_start (GTK_BOX (vbox40), cost, FALSE, FALSE, 0);

  frame18 = gtk_frame_new (_("View Member Field in Search List"));
  gtk_widget_ref (frame18);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "frame18", frame18,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame18);
  gtk_box_pack_start (GTK_BOX (hbox73), frame18, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame18), 10);

  vbox41 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox41);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "vbox41", vbox41,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox41);
  gtk_container_add (GTK_CONTAINER (frame18), vbox41);
  gtk_container_set_border_width (GTK_CONTAINER (vbox41), 10);

  title = gtk_check_button_new_with_label (_("Title"));
  gtk_widget_ref (title);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "title", title,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (title);
  gtk_box_pack_start (GTK_BOX (vbox41), title, FALSE, FALSE, 0);

  fname = gtk_check_button_new_with_label (_("First Name"));
  gtk_widget_ref (fname);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "fname", fname,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fname);
  gtk_box_pack_start (GTK_BOX (vbox41), fname, FALSE, FALSE, 0);

  lname = gtk_check_button_new_with_label (_("Last Name"));
  gtk_widget_ref (lname);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "lname", lname,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (lname);
  gtk_box_pack_start (GTK_BOX (vbox41), lname, FALSE, FALSE, 0);

  houseno = gtk_check_button_new_with_label (_("House/Flat Number"));
  gtk_widget_ref (houseno);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "houseno", houseno,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (houseno);
  gtk_box_pack_start (GTK_BOX (vbox41), houseno, FALSE, FALSE, 0);

  address1 = gtk_check_button_new_with_label (_("Address 1"));
  gtk_widget_ref (address1);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "address1", address1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address1);
  gtk_box_pack_start (GTK_BOX (vbox41), address1, FALSE, FALSE, 0);

  address2 = gtk_check_button_new_with_label (_("Address 2"));
  gtk_widget_ref (address2);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "address2", address2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (address2);
  gtk_box_pack_start (GTK_BOX (vbox41), address2, FALSE, FALSE, 0);

  town = gtk_check_button_new_with_label (_("Town"));
  gtk_widget_ref (town);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "town", town,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (town);
  gtk_box_pack_start (GTK_BOX (vbox41), town, FALSE, FALSE, 0);

  state = gtk_check_button_new_with_label (_("State"));
  gtk_widget_ref (state);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "state", state,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (state);
  gtk_box_pack_start (GTK_BOX (vbox41), state, FALSE, FALSE, 0);

  phone = gtk_check_button_new_with_label (_("Phone"));
  gtk_widget_ref (phone);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "phone", phone,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (phone);
  gtk_box_pack_start (GTK_BOX (vbox41), phone, FALSE, FALSE, 0);

  zipcode = gtk_check_button_new_with_label (_("Zipcode"));
  gtk_widget_ref (zipcode);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "zipcode", zipcode,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (zipcode);
  gtk_box_pack_start (GTK_BOX (vbox41), zipcode, FALSE, FALSE, 0);

  label498 = gtk_label_new (_("Search Window"));
  gtk_widget_ref (label498);
  gtk_object_set_data_full (GTK_OBJECT (preferences), "label498", label498,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label498);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label498);

  gtk_signal_connect (GTK_OBJECT (preferences), "apply",
                      GTK_SIGNAL_FUNC (on_preferences_apply),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (logfile_name), "changed",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (days_rent), "changed",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (ref), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (director), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (genre), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (classification), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (actor1), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (actor2), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (date), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (cost), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (title), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (fname), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (lname), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (houseno), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (address1), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (address2), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (town), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (state), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (phone), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (zipcode), "toggled",
                      GTK_SIGNAL_FUNC (on_preferences_item_changed),
                      NULL);

  return preferences;
}

GtkWidget*
create_login_dialog (void)
{
  GtkWidget *login_dialog;
  GtkWidget *dialog_vbox11;
  GtkWidget *table17;
  GtkWidget *username_label;
  GtkWidget *password_label;
  GtkWidget *password;
  GtkWidget *username;
  GtkWidget *combo_entry5;
  GtkWidget *dialog_action_area11;
  GtkWidget *button1;
  GtkWidget *button3;

  login_dialog = gnome_dialog_new (_("Login"), NULL);
  gtk_object_set_data (GTK_OBJECT (login_dialog), "login_dialog", login_dialog);
  gtk_window_set_policy (GTK_WINDOW (login_dialog), FALSE, FALSE, FALSE);

  dialog_vbox11 = GNOME_DIALOG (login_dialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (login_dialog), "dialog_vbox11", dialog_vbox11);
  gtk_widget_show (dialog_vbox11);

  table17 = gtk_table_new (2, 2, FALSE);
  gtk_widget_ref (table17);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "table17", table17,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table17);
  gtk_box_pack_start (GTK_BOX (dialog_vbox11), table17, TRUE, TRUE, 0);
  gtk_table_set_row_spacings (GTK_TABLE (table17), 5);
  gtk_table_set_col_spacings (GTK_TABLE (table17), 5);

  username_label = gtk_label_new (_("User Name:"));
  gtk_widget_ref (username_label);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "username_label", username_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (username_label);
  gtk_table_attach (GTK_TABLE (table17), username_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  password_label = gtk_label_new (_("Password:"));
  gtk_widget_ref (password_label);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "password_label", password_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (password_label);
  gtk_table_attach (GTK_TABLE (table17), password_label, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);

  password = gtk_entry_new_with_max_length (50);
  gtk_widget_ref (password);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "password", password,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (password);
  gtk_table_attach (GTK_TABLE (table17), password, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_visibility (GTK_ENTRY (password), FALSE);

  username = gnome_entry_new ("username");
  gtk_widget_ref (username);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "username", username,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (username);
  gtk_table_attach (GTK_TABLE (table17), username, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gnome_entry_set_max_saved (GNOME_ENTRY (username), 3);

  combo_entry5 = gnome_entry_gtk_entry (GNOME_ENTRY (username));
  gtk_widget_ref (combo_entry5);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "combo_entry5", combo_entry5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry5);

  dialog_action_area11 = GNOME_DIALOG (login_dialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (login_dialog), "dialog_action_area11", dialog_action_area11);
  gtk_widget_show (dialog_action_area11);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area11), GTK_BUTTONBOX_END);
  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area11), 8);

  gnome_dialog_append_button (GNOME_DIALOG (login_dialog), GNOME_STOCK_BUTTON_OK);
  button1 = g_list_last (GNOME_DIALOG (login_dialog)->buttons)->data;
  gtk_widget_ref (button1);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "button1", button1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (button1);
  GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);

  gnome_dialog_append_button (GNOME_DIALOG (login_dialog), GNOME_STOCK_BUTTON_CANCEL);
  button3 = g_list_last (GNOME_DIALOG (login_dialog)->buttons)->data;
  gtk_widget_ref (button3);
  gtk_object_set_data_full (GTK_OBJECT (login_dialog), "button3", button3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (button3);
  GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);

  return login_dialog;
}

