Logo Search packages:      
Sourcecode: xconvers version File versions  Download package

interface.c

/*
 * DO NOT EDIT THIS FILE - it is generated by Glade.
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

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

GtkWidget*
create_mainwindow (void)
{
  GtkWidget *mainwindow;
  GtkWidget *mainvbox;
  GtkWidget *handlebox;
  GtkWidget *mainmenubar;
  guint tmp_key;
  GtkWidget *file;
  GtkWidget *file_menu;
  GtkAccelGroup *file_menu_accels;
  GtkWidget *exit;
  GtkWidget *host;
  GtkWidget *host_menu;
  GtkAccelGroup *host_menu_accels;
  GtkWidget *open;
  GtkWidget *close;
  GtkWidget *settings;
  GtkWidget *settings_menu;
  GtkAccelGroup *settings_menu_accels;
  GtkWidget *preferences;
  GtkWidget *help;
  GtkWidget *help_menu;
  GtkAccelGroup *help_menu_accels;
  GtkWidget *about;
  GtkWidget *mainscrolledwindow;
  GtkWidget *maintext;
  GtkWidget *mainentry;
  GtkWidget *statushbox;
  GtkWidget *mainstatusbar;
  GtkWidget *progressbar;
  GtkAccelGroup *accel_group;

  accel_group = gtk_accel_group_new ();

  mainwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (mainwindow), "mainwindow", mainwindow);
  gtk_window_set_position (GTK_WINDOW (mainwindow), GTK_WIN_POS_CENTER);
  gtk_window_set_default_size (GTK_WINDOW (mainwindow), 640, 480);
  gtk_window_set_policy (GTK_WINDOW (mainwindow), TRUE, TRUE, TRUE);

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

  handlebox = gtk_handle_box_new ();
  gtk_widget_ref (handlebox);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "handlebox", handlebox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (handlebox);
  gtk_box_pack_start (GTK_BOX (mainvbox), handlebox, FALSE, FALSE, 0);

  mainmenubar = gtk_menu_bar_new ();
  gtk_widget_ref (mainmenubar);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "mainmenubar", mainmenubar,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mainmenubar);
  gtk_container_add (GTK_CONTAINER (handlebox), mainmenubar);
  GTK_WIDGET_SET_FLAGS (mainmenubar, GTK_CAN_FOCUS);

  file = gtk_menu_item_new_with_label ("");
  tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (file)->child),
                                   _("_Program"));
  gtk_widget_add_accelerator (file, "activate_item", accel_group,
                              tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
  gtk_widget_ref (file);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "file", file,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (file);
  gtk_container_add (GTK_CONTAINER (mainmenubar), file);

  file_menu = gtk_menu_new ();
  gtk_widget_ref (file_menu);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "file_menu", file_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (file), file_menu);
  file_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (file_menu));

  exit = gtk_menu_item_new_with_label (_("Exit"));
  gtk_widget_ref (exit);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "exit", exit,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (exit);
  gtk_container_add (GTK_CONTAINER (file_menu), exit);

  host = gtk_menu_item_new_with_label ("");
  tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (host)->child),
                                   _("_Host"));
  gtk_widget_add_accelerator (host, "activate_item", accel_group,
                              tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
  gtk_widget_ref (host);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "host", host,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (host);
  gtk_container_add (GTK_CONTAINER (mainmenubar), host);

  host_menu = gtk_menu_new ();
  gtk_widget_ref (host_menu);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "host_menu", host_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (host), host_menu);
  host_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (host_menu));

  open = gtk_menu_item_new_with_label (_("Open..."));
  gtk_widget_ref (open);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "open", open,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (open);
  gtk_container_add (GTK_CONTAINER (host_menu), open);

  close = gtk_menu_item_new_with_label (_("Close"));
  gtk_widget_ref (close);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "close", close,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (close);
  gtk_container_add (GTK_CONTAINER (host_menu), close);

  settings = gtk_menu_item_new_with_label ("");
  tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (settings)->child),
                                   _("_Settings"));
  gtk_widget_add_accelerator (settings, "activate_item", accel_group,
                              tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
  gtk_widget_ref (settings);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "settings", settings,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (settings);
  gtk_container_add (GTK_CONTAINER (mainmenubar), settings);

  settings_menu = gtk_menu_new ();
  gtk_widget_ref (settings_menu);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "settings_menu", settings_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (settings), settings_menu);
  settings_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (settings_menu));

  preferences = gtk_menu_item_new_with_label (_("Preferences..."));
  gtk_widget_ref (preferences);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "preferences", preferences,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferences);
  gtk_container_add (GTK_CONTAINER (settings_menu), preferences);

  help = gtk_menu_item_new_with_label ("");
  tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (help)->child),
                                   _("H_elp"));
  gtk_widget_add_accelerator (help, "activate_item", accel_group,
                              tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
  gtk_widget_ref (help);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "help", help,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (help);
  gtk_container_add (GTK_CONTAINER (mainmenubar), help);
  gtk_menu_item_right_justify (GTK_MENU_ITEM (help));

  help_menu = gtk_menu_new ();
  gtk_widget_ref (help_menu);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "help_menu", help_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (help), help_menu);
  help_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (help_menu));

  about = gtk_menu_item_new_with_label (_("About..."));
  gtk_widget_ref (about);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "about", about,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (about);
  gtk_container_add (GTK_CONTAINER (help_menu), about);

  mainscrolledwindow = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (mainscrolledwindow);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "mainscrolledwindow", mainscrolledwindow,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mainscrolledwindow);
  gtk_box_pack_start (GTK_BOX (mainvbox), mainscrolledwindow, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (mainscrolledwindow), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  maintext = gtk_text_new (NULL, NULL);
  gtk_widget_ref (maintext);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "maintext", maintext,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (maintext);
  gtk_container_add (GTK_CONTAINER (mainscrolledwindow), maintext);
  GTK_WIDGET_UNSET_FLAGS (maintext, GTK_CAN_FOCUS);

  mainentry = gtk_entry_new_with_max_length (1024);
  gtk_widget_ref (mainentry);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "mainentry", mainentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mainentry);
  gtk_box_pack_start (GTK_BOX (mainvbox), mainentry, FALSE, FALSE, 0);

  statushbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (statushbox);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "statushbox", statushbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (statushbox);
  gtk_box_pack_start (GTK_BOX (mainvbox), statushbox, FALSE, FALSE, 0);

  mainstatusbar = gtk_statusbar_new ();
  gtk_widget_ref (mainstatusbar);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "mainstatusbar", mainstatusbar,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mainstatusbar);
  gtk_box_pack_start (GTK_BOX (statushbox), mainstatusbar, TRUE, TRUE, 0);

  progressbar = gtk_progress_bar_new ();
  gtk_widget_ref (progressbar);
  gtk_object_set_data_full (GTK_OBJECT (mainwindow), "progressbar", progressbar,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (progressbar);
  gtk_box_pack_start (GTK_BOX (statushbox), progressbar, FALSE, FALSE, 0);
  gtk_widget_set_usize (progressbar, 50, -2);
  gtk_progress_set_activity_mode (GTK_PROGRESS (progressbar), TRUE);
  gtk_progress_set_format_string (GTK_PROGRESS (progressbar), "");

  gtk_signal_connect (GTK_OBJECT (mainwindow), "delete_event",
                      GTK_SIGNAL_FUNC (on_mainwindow_delete_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (mainwindow), "show",
                      GTK_SIGNAL_FUNC (on_mainwindow_show),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (mainwindow), "key_press_event",
                      GTK_SIGNAL_FUNC (on_mainwindow_key_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (exit), "activate",
                      GTK_SIGNAL_FUNC (on_exit_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (open), "activate",
                      GTK_SIGNAL_FUNC (on_open_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (close), "activate",
                      GTK_SIGNAL_FUNC (on_close_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (preferences), "activate",
                      GTK_SIGNAL_FUNC (on_preferences_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (about), "activate",
                      GTK_SIGNAL_FUNC (on_about_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (mainentry), "activate",
                      GTK_SIGNAL_FUNC (on_mainentry_activate),
                      NULL);

  gtk_widget_grab_focus (mainentry);
  gtk_window_add_accel_group (GTK_WINDOW (mainwindow), accel_group);

  return mainwindow;
}

GtkWidget*
create_aboutdialog (void)
{
  GtkWidget *aboutdialog;
  GtkWidget *aboutdialog_vbox;
  GtkWidget *aboutnotebook;
  GtkWidget *aboutcreditsframe;
  GtkWidget *abouthbox;
  GtkWidget *aboutpixmap;
  GtkWidget *aboutcreditslabel;
  GtkWidget *aboutnotebooklabel1;
  GtkWidget *aboutscrolledwindow;
  GtkWidget *abouthelptext;
  GtkWidget *aboutnotebooklabel2;
  GtkWidget *aboutlicenseframe;
  GtkWidget *aboutlicenselabel;
  GtkWidget *aboutnotebooklabel3;
  GtkWidget *aboutdialog_action_area;
  GtkWidget *aboutOKbutton;
  GtkWidget *hbox1;
  GtkWidget *pixmap1;
  GtkWidget *label1;

  aboutdialog = gtk_dialog_new ();
  gtk_object_set_data (GTK_OBJECT (aboutdialog), "aboutdialog", aboutdialog);
  gtk_window_set_position (GTK_WINDOW (aboutdialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (aboutdialog), FALSE, TRUE, TRUE);

  aboutdialog_vbox = GTK_DIALOG (aboutdialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (aboutdialog), "aboutdialog_vbox", aboutdialog_vbox);
  gtk_widget_show (aboutdialog_vbox);

  aboutnotebook = gtk_notebook_new ();
  gtk_widget_ref (aboutnotebook);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutnotebook", aboutnotebook,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutnotebook);
  gtk_box_pack_start (GTK_BOX (aboutdialog_vbox), aboutnotebook, FALSE, FALSE, 0);

  aboutcreditsframe = gtk_frame_new (NULL);
  gtk_widget_ref (aboutcreditsframe);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutcreditsframe", aboutcreditsframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutcreditsframe);
  gtk_container_add (GTK_CONTAINER (aboutnotebook), aboutcreditsframe);

  abouthbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (abouthbox);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "abouthbox", abouthbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (abouthbox);
  gtk_container_add (GTK_CONTAINER (aboutcreditsframe), abouthbox);

  aboutpixmap = create_pixmap (aboutdialog, "xconvers.xpm");
  gtk_widget_ref (aboutpixmap);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutpixmap", aboutpixmap,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutpixmap);
  gtk_box_pack_start (GTK_BOX (abouthbox), aboutpixmap, TRUE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (aboutpixmap), 10, 10);

  aboutcreditslabel = gtk_label_new ("");
  gtk_widget_ref (aboutcreditslabel);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutcreditslabel", aboutcreditslabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutcreditslabel);
  gtk_box_pack_start (GTK_BOX (abouthbox), aboutcreditslabel, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (aboutcreditslabel), 10, 10);

  aboutnotebooklabel1 = gtk_label_new (_("Credits"));
  gtk_widget_ref (aboutnotebooklabel1);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutnotebooklabel1", aboutnotebooklabel1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutnotebooklabel1);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (aboutnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (aboutnotebook), 0), aboutnotebooklabel1);
  gtk_misc_set_padding (GTK_MISC (aboutnotebooklabel1), 10, 0);

  aboutscrolledwindow = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (aboutscrolledwindow);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutscrolledwindow", aboutscrolledwindow,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutscrolledwindow);
  gtk_container_add (GTK_CONTAINER (aboutnotebook), aboutscrolledwindow);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (aboutscrolledwindow), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  abouthelptext = gtk_text_new (NULL, NULL);
  gtk_widget_ref (abouthelptext);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "abouthelptext", abouthelptext,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (abouthelptext);
  gtk_container_add (GTK_CONTAINER (aboutscrolledwindow), abouthelptext);

  aboutnotebooklabel2 = gtk_label_new (_("Help"));
  gtk_widget_ref (aboutnotebooklabel2);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutnotebooklabel2", aboutnotebooklabel2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutnotebooklabel2);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (aboutnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (aboutnotebook), 1), aboutnotebooklabel2);
  gtk_misc_set_padding (GTK_MISC (aboutnotebooklabel2), 10, 0);

  aboutlicenseframe = gtk_frame_new (NULL);
  gtk_widget_ref (aboutlicenseframe);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutlicenseframe", aboutlicenseframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutlicenseframe);
  gtk_container_add (GTK_CONTAINER (aboutnotebook), aboutlicenseframe);

  aboutlicenselabel = gtk_label_new ("");
  gtk_widget_ref (aboutlicenselabel);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutlicenselabel", aboutlicenselabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutlicenselabel);
  gtk_container_add (GTK_CONTAINER (aboutlicenseframe), aboutlicenselabel);
  gtk_misc_set_padding (GTK_MISC (aboutlicenselabel), 10, 10);

  aboutnotebooklabel3 = gtk_label_new (_("License"));
  gtk_widget_ref (aboutnotebooklabel3);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutnotebooklabel3", aboutnotebooklabel3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutnotebooklabel3);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (aboutnotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (aboutnotebook), 2), aboutnotebooklabel3);
  gtk_misc_set_padding (GTK_MISC (aboutnotebooklabel3), 10, 0);

  aboutdialog_action_area = GTK_DIALOG (aboutdialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (aboutdialog), "aboutdialog_action_area", aboutdialog_action_area);
  gtk_widget_show (aboutdialog_action_area);
  gtk_container_set_border_width (GTK_CONTAINER (aboutdialog_action_area), 10);

  aboutOKbutton = gtk_button_new ();
  gtk_widget_ref (aboutOKbutton);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "aboutOKbutton", aboutOKbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (aboutOKbutton);
  gtk_box_pack_start (GTK_BOX (aboutdialog_action_area), aboutOKbutton, FALSE, FALSE, 20);
  gtk_widget_set_usize (aboutOKbutton, 100, 30);

  hbox1 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox1);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "hbox1", hbox1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox1);
  gtk_container_add (GTK_CONTAINER (aboutOKbutton), hbox1);

  pixmap1 = create_pixmap (aboutdialog, "ok.xpm");
  gtk_widget_ref (pixmap1);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "pixmap1", pixmap1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap1);
  gtk_box_pack_start (GTK_BOX (hbox1), pixmap1, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap1), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap1), 12, 0);

  label1 = gtk_label_new (_("OK"));
  gtk_widget_ref (label1);
  gtk_object_set_data_full (GTK_OBJECT (aboutdialog), "label1", label1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label1);
  gtk_box_pack_start (GTK_BOX (hbox1), label1, FALSE, FALSE, 0);

  gtk_signal_connect (GTK_OBJECT (aboutdialog), "show",
                      GTK_SIGNAL_FUNC (on_aboutdialog_show),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (aboutOKbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_aboutOKbutton_clicked),
                      NULL);

  gtk_widget_grab_focus (aboutOKbutton);
  return aboutdialog;
}

GtkWidget*
create_closedialog (void)
{
  GtkWidget *closedialog;
  GtkWidget *closedialog_vbox;
  GtkWidget *closelabel;
  GtkWidget *closedialog_action_area;
  GtkWidget *closedialoghbox;
  GtkWidget *closeOKbutton;
  GtkWidget *hbox2;
  GtkWidget *pixmap2;
  GtkWidget *label2;
  GtkWidget *closecancelbutton;
  GtkWidget *hbox3;
  GtkWidget *pixmap3;
  GtkWidget *label3;

  closedialog = gtk_dialog_new ();
  gtk_object_set_data (GTK_OBJECT (closedialog), "closedialog", closedialog);
  gtk_window_set_position (GTK_WINDOW (closedialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (closedialog), FALSE, TRUE, TRUE);

  closedialog_vbox = GTK_DIALOG (closedialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (closedialog), "closedialog_vbox", closedialog_vbox);
  gtk_widget_show (closedialog_vbox);

  closelabel = gtk_label_new ("");
  gtk_widget_ref (closelabel);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "closelabel", closelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (closelabel);
  gtk_box_pack_start (GTK_BOX (closedialog_vbox), closelabel, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (closelabel), 60, 40);

  closedialog_action_area = GTK_DIALOG (closedialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (closedialog), "closedialog_action_area", closedialog_action_area);
  gtk_widget_show (closedialog_action_area);
  gtk_container_set_border_width (GTK_CONTAINER (closedialog_action_area), 10);

  closedialoghbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (closedialoghbox);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "closedialoghbox", closedialoghbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (closedialoghbox);
  gtk_box_pack_start (GTK_BOX (closedialog_action_area), closedialoghbox, TRUE, TRUE, 0);

  closeOKbutton = gtk_button_new ();
  gtk_widget_ref (closeOKbutton);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "closeOKbutton", closeOKbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (closeOKbutton);
  gtk_box_pack_start (GTK_BOX (closedialoghbox), closeOKbutton, TRUE, FALSE, 20);
  gtk_widget_set_usize (closeOKbutton, 100, 30);

  hbox2 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox2);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "hbox2", hbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox2);
  gtk_container_add (GTK_CONTAINER (closeOKbutton), hbox2);

  pixmap2 = create_pixmap (closedialog, "ok.xpm");
  gtk_widget_ref (pixmap2);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "pixmap2", pixmap2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap2);
  gtk_box_pack_start (GTK_BOX (hbox2), pixmap2, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap2), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap2), 12, 0);

  label2 = gtk_label_new (_("OK"));
  gtk_widget_ref (label2);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "label2", label2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label2);
  gtk_box_pack_start (GTK_BOX (hbox2), label2, FALSE, FALSE, 0);

  closecancelbutton = gtk_button_new ();
  gtk_widget_ref (closecancelbutton);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "closecancelbutton", closecancelbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (closecancelbutton);
  gtk_box_pack_start (GTK_BOX (closedialoghbox), closecancelbutton, TRUE, FALSE, 20);
  gtk_widget_set_usize (closecancelbutton, 100, 30);

  hbox3 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox3);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "hbox3", hbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox3);
  gtk_container_add (GTK_CONTAINER (closecancelbutton), hbox3);

  pixmap3 = create_pixmap (closedialog, "cancel.xpm");
  gtk_widget_ref (pixmap3);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "pixmap3", pixmap3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap3);
  gtk_box_pack_start (GTK_BOX (hbox3), pixmap3, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap3), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap3), 6, 0);

  label3 = gtk_label_new (_("Cancel"));
  gtk_widget_ref (label3);
  gtk_object_set_data_full (GTK_OBJECT (closedialog), "label3", label3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label3);
  gtk_box_pack_start (GTK_BOX (hbox3), label3, FALSE, FALSE, 0);

  gtk_signal_connect (GTK_OBJECT (closedialog), "destroy",
                      GTK_SIGNAL_FUNC (on_closedialog_destroy),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (closeOKbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_closeOKbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (closecancelbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_closecancelbutton_clicked),
                      NULL);

  gtk_widget_grab_focus (closeOKbutton);
  return closedialog;
}

GtkWidget*
create_opendialog (void)
{
  GtkWidget *opendialog;
  GtkWidget *opendialog_vbox;
  GtkWidget *hostnamehbox;
  GtkWidget *hostnamelabel;
  GtkWidget *hostnamecombo;
  GtkWidget *hostnamecombo_entry;
  GtkWidget *porthbox;
  GtkWidget *portlabel;
  GtkWidget *portcombo;
  GtkWidget *portcombo_entry;
  GtkWidget *opendialog_action_area;
  GtkWidget *opendialoghbox;
  GtkWidget *openOKbutton;
  GtkWidget *hbox4;
  GtkWidget *pixmap4;
  GtkWidget *label4;
  GtkWidget *opencancelbutton;
  GtkWidget *hbox5;
  GtkWidget *pixmap5;
  GtkWidget *label5;

  opendialog = gtk_dialog_new ();
  gtk_object_set_data (GTK_OBJECT (opendialog), "opendialog", opendialog);
  gtk_window_set_position (GTK_WINDOW (opendialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (opendialog), FALSE, TRUE, TRUE);

  opendialog_vbox = GTK_DIALOG (opendialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (opendialog), "opendialog_vbox", opendialog_vbox);
  gtk_widget_show (opendialog_vbox);

  hostnamehbox = gtk_hbox_new (FALSE, 10);
  gtk_widget_ref (hostnamehbox);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "hostnamehbox", hostnamehbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hostnamehbox);
  gtk_box_pack_start (GTK_BOX (opendialog_vbox), hostnamehbox, FALSE, FALSE, 0);

  hostnamelabel = gtk_label_new (_("Hostname"));
  gtk_widget_ref (hostnamelabel);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "hostnamelabel", hostnamelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hostnamelabel);
  gtk_box_pack_start (GTK_BOX (hostnamehbox), hostnamelabel, TRUE, FALSE, 20);
  gtk_label_set_justify (GTK_LABEL (hostnamelabel), GTK_JUSTIFY_LEFT);
  gtk_misc_set_padding (GTK_MISC (hostnamelabel), 0, 10);

  hostnamecombo = gtk_combo_new ();
  gtk_widget_ref (hostnamecombo);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "hostnamecombo", hostnamecombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hostnamecombo);
  gtk_box_pack_start (GTK_BOX (hostnamehbox), hostnamecombo, FALSE, FALSE, 20);
  gtk_widget_set_usize (hostnamecombo, 250, 20);

  hostnamecombo_entry = GTK_COMBO (hostnamecombo)->entry;
  gtk_widget_ref (hostnamecombo_entry);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "hostnamecombo_entry", hostnamecombo_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hostnamecombo_entry);

  porthbox = gtk_hbox_new (FALSE, 10);
  gtk_widget_ref (porthbox);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "porthbox", porthbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (porthbox);
  gtk_box_pack_start (GTK_BOX (opendialog_vbox), porthbox, FALSE, FALSE, 0);

  portlabel = gtk_label_new (_("Port"));
  gtk_widget_ref (portlabel);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "portlabel", portlabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (portlabel);
  gtk_box_pack_start (GTK_BOX (porthbox), portlabel, TRUE, FALSE, 20);
  gtk_label_set_justify (GTK_LABEL (portlabel), GTK_JUSTIFY_LEFT);
  gtk_misc_set_padding (GTK_MISC (portlabel), 0, 10);

  portcombo = gtk_combo_new ();
  gtk_widget_ref (portcombo);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "portcombo", portcombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (portcombo);
  gtk_box_pack_start (GTK_BOX (porthbox), portcombo, FALSE, FALSE, 20);
  gtk_widget_set_usize (portcombo, 250, 20);

  portcombo_entry = GTK_COMBO (portcombo)->entry;
  gtk_widget_ref (portcombo_entry);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "portcombo_entry", portcombo_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (portcombo_entry);

  opendialog_action_area = GTK_DIALOG (opendialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (opendialog), "opendialog_action_area", opendialog_action_area);
  gtk_widget_show (opendialog_action_area);
  gtk_container_set_border_width (GTK_CONTAINER (opendialog_action_area), 10);

  opendialoghbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (opendialoghbox);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "opendialoghbox", opendialoghbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (opendialoghbox);
  gtk_box_pack_start (GTK_BOX (opendialog_action_area), opendialoghbox, TRUE, TRUE, 0);

  openOKbutton = gtk_button_new ();
  gtk_widget_ref (openOKbutton);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "openOKbutton", openOKbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (openOKbutton);
  gtk_box_pack_start (GTK_BOX (opendialoghbox), openOKbutton, TRUE, FALSE, 20);
  gtk_widget_set_usize (openOKbutton, 100, 30);

  hbox4 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox4);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "hbox4", hbox4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox4);
  gtk_container_add (GTK_CONTAINER (openOKbutton), hbox4);

  pixmap4 = create_pixmap (opendialog, "ok.xpm");
  gtk_widget_ref (pixmap4);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "pixmap4", pixmap4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap4);
  gtk_box_pack_start (GTK_BOX (hbox4), pixmap4, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap4), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap4), 12, 0);

  label4 = gtk_label_new (_("OK"));
  gtk_widget_ref (label4);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "label4", label4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label4);
  gtk_box_pack_start (GTK_BOX (hbox4), label4, FALSE, FALSE, 0);

  opencancelbutton = gtk_button_new ();
  gtk_widget_ref (opencancelbutton);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "opencancelbutton", opencancelbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (opencancelbutton);
  gtk_box_pack_start (GTK_BOX (opendialoghbox), opencancelbutton, TRUE, FALSE, 20);
  gtk_widget_set_usize (opencancelbutton, 100, 30);

  hbox5 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox5);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "hbox5", hbox5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox5);
  gtk_container_add (GTK_CONTAINER (opencancelbutton), hbox5);

  pixmap5 = create_pixmap (opendialog, "cancel.xpm");
  gtk_widget_ref (pixmap5);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "pixmap5", pixmap5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap5);
  gtk_box_pack_start (GTK_BOX (hbox5), pixmap5, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap5), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap5), 6, 0);

  label5 = gtk_label_new (_("Cancel"));
  gtk_widget_ref (label5);
  gtk_object_set_data_full (GTK_OBJECT (opendialog), "label5", label5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label5);
  gtk_box_pack_start (GTK_BOX (hbox5), label5, FALSE, FALSE, 0);

  gtk_signal_connect (GTK_OBJECT (opendialog), "show",
                      GTK_SIGNAL_FUNC (on_opendialog_show),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (opendialog), "destroy",
                      GTK_SIGNAL_FUNC (on_opendialog_destroy),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (openOKbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_openOKbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (opencancelbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_opencancelbutton_clicked),
                      NULL);

  gtk_widget_grab_focus (hostnamecombo_entry);
  return opendialog;
}

GtkWidget*
create_preferencesdialog (void)
{
  GtkWidget *preferencesdialog;
  GtkWidget *preferencesdialog_vbox;
  GtkWidget *preferencesdialognotebook;
  GtkWidget *preferencesgeneralvbox;
  GtkWidget *loggingframe;
  GtkWidget *loggingvbox;
  GtkWidget *loggingcheckbutton;
  GtkWidget *windowframe;
  GtkWidget *windowvbox;
  GtkWidget *sizecheckbutton;
  GtkWidget *positioncheckbutton;
  GtkWidget *loginframe;
  GtkWidget *autologinvbox;
  GtkWidget *autologincheckbutton;
  GtkWidget *autologinnamehbox;
  GtkWidget *autologinnamelabel;
  GtkWidget *autologinnameentry;
  GtkWidget *autologinchannelhbox;
  GtkWidget *autologinchannellabel;
  GtkWidget *autologinchannelentry;
  GtkWidget *autologincommandshbox;
  GtkWidget *autologincommandslabel;
  GtkWidget *autologincommandsentry;
  GtkWidget *preferencesgenerallabel;
  GtkWidget *preferencesdisplayvbox;
  GtkWidget *widgetsframe;
  GtkWidget *displayvbox;
  GtkWidget *menucheckbutton;
  GtkWidget *statusbarcheckbutton;
  GtkWidget *scrollbarcheckbutton;
  GtkWidget *colorframe;
  GtkWidget *backgroundvbox;
  GtkWidget *backgroundcolorhbox;
  GSList *bg_group = NULL;
  GtkWidget *colorradiobutton;
  GtkWidget *backgroundcolorbutton;
  GtkWidget *pixmaphbox;
  GtkWidget *pixmapradiobutton;
  GtkWidget *pixmapentry;
  GtkWidget *pixmapselectbutton;
  GtkWidget *fontframe;
  GtkWidget *fontvbox;
  GtkWidget *fonthbox;
  GtkWidget *fontentry;
  GtkWidget *fontbutton;
  GtkWidget *preferencesfontlabel;
  GtkWidget *colorshbox;
  GtkWidget *colorsscrolledwindow;
  GtkWidget *colorstext;
  GtkWidget *messagelabelvbox;
  GtkWidget *txmessagelabel;
  GtkWidget *rxmessagelabel;
  GtkWidget *statusmessagelabel;
  GtkWidget *privatemessagelabel;
  GtkWidget *user1label;
  GtkWidget *user2label;
  GtkWidget *user3label;
  GtkWidget *user4label;
  GtkWidget *user5label;
  GtkWidget *user6label;
  GtkWidget *user7label;
  GtkWidget *user8label;
  GtkWidget *user9label;
  GtkWidget *user10label;
  GtkWidget *buttonvbox;
  GtkWidget *txmessagebutton;
  GtkWidget *rxmessagebutton;
  GtkWidget *statusmessagebutton;
  GtkWidget *privatemessagebutton;
  GtkWidget *user1button;
  GtkWidget *user2button;
  GtkWidget *user3button;
  GtkWidget *user4button;
  GtkWidget *user5button;
  GtkWidget *user6button;
  GtkWidget *user7button;
  GtkWidget *user8button;
  GtkWidget *user9button;
  GtkWidget *user10button;
  GtkWidget *preferencescolorlabel;
  GtkWidget *preferencesdialog_action_area;
  GtkWidget *preferencesdialoghbox;
  GtkWidget *preferencesOKbutton;
  GtkWidget *hbox6;
  GtkWidget *pixmap6;
  GtkWidget *label6;
  GtkWidget *preferencescancelbutton;
  GtkWidget *hbox7;
  GtkWidget *pixmap7;
  GtkWidget *label7;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  preferencesdialog = gtk_dialog_new ();
  gtk_object_set_data (GTK_OBJECT (preferencesdialog), "preferencesdialog", preferencesdialog);
  gtk_window_set_position (GTK_WINDOW (preferencesdialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (preferencesdialog), FALSE, TRUE, TRUE);

  preferencesdialog_vbox = GTK_DIALOG (preferencesdialog)->vbox;
  gtk_object_set_data (GTK_OBJECT (preferencesdialog), "preferencesdialog_vbox", preferencesdialog_vbox);
  gtk_widget_show (preferencesdialog_vbox);

  preferencesdialognotebook = gtk_notebook_new ();
  gtk_widget_ref (preferencesdialognotebook);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesdialognotebook", preferencesdialognotebook,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesdialognotebook);
  gtk_box_pack_start (GTK_BOX (preferencesdialog_vbox), preferencesdialognotebook, TRUE, TRUE, 0);

  preferencesgeneralvbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (preferencesgeneralvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesgeneralvbox", preferencesgeneralvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesgeneralvbox);
  gtk_container_add (GTK_CONTAINER (preferencesdialognotebook), preferencesgeneralvbox);

  loggingframe = gtk_frame_new (_("Logging"));
  gtk_widget_ref (loggingframe);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "loggingframe", loggingframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (loggingframe);
  gtk_box_pack_start (GTK_BOX (preferencesgeneralvbox), loggingframe, TRUE, TRUE, 5);

  loggingvbox = gtk_vbox_new (TRUE, 0);
  gtk_widget_ref (loggingvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "loggingvbox", loggingvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (loggingvbox);
  gtk_container_add (GTK_CONTAINER (loggingframe), loggingvbox);

  loggingcheckbutton = gtk_check_button_new_with_label (_("Enable logging to a file"));
  gtk_widget_ref (loggingcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "loggingcheckbutton", loggingcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (loggingcheckbutton);
  gtk_box_pack_start (GTK_BOX (loggingvbox), loggingcheckbutton, FALSE, FALSE, 0);

  windowframe = gtk_frame_new (_("Window"));
  gtk_widget_ref (windowframe);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "windowframe", windowframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (windowframe);
  gtk_box_pack_start (GTK_BOX (preferencesgeneralvbox), windowframe, TRUE, TRUE, 5);

  windowvbox = gtk_vbox_new (TRUE, 0);
  gtk_widget_ref (windowvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "windowvbox", windowvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (windowvbox);
  gtk_container_add (GTK_CONTAINER (windowframe), windowvbox);

  sizecheckbutton = gtk_check_button_new_with_label (_("Save window size at exit"));
  gtk_widget_ref (sizecheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "sizecheckbutton", sizecheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (sizecheckbutton);
  gtk_box_pack_start (GTK_BOX (windowvbox), sizecheckbutton, FALSE, FALSE, 0);

  positioncheckbutton = gtk_check_button_new_with_label (_("Save window position at exit"));
  gtk_widget_ref (positioncheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "positioncheckbutton", positioncheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (positioncheckbutton);
  gtk_box_pack_start (GTK_BOX (windowvbox), positioncheckbutton, FALSE, FALSE, 0);

  loginframe = gtk_frame_new (_("Autologin"));
  gtk_widget_ref (loginframe);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "loginframe", loginframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (loginframe);
  gtk_box_pack_start (GTK_BOX (preferencesgeneralvbox), loginframe, TRUE, TRUE, 0);

  autologinvbox = gtk_vbox_new (TRUE, 0);
  gtk_widget_ref (autologinvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinvbox", autologinvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinvbox);
  gtk_container_add (GTK_CONTAINER (loginframe), autologinvbox);

  autologincheckbutton = gtk_check_button_new_with_label (_("Enable automatic login"));
  gtk_widget_ref (autologincheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologincheckbutton", autologincheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologincheckbutton);
  gtk_box_pack_start (GTK_BOX (autologinvbox), autologincheckbutton, FALSE, FALSE, 0);

  autologinnamehbox = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (autologinnamehbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinnamehbox", autologinnamehbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinnamehbox);
  gtk_box_pack_start (GTK_BOX (autologinvbox), autologinnamehbox, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (autologinnamehbox), 5);

  autologinnamelabel = gtk_label_new (_("Callsign"));
  gtk_widget_ref (autologinnamelabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinnamelabel", autologinnamelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinnamelabel);
  gtk_box_pack_start (GTK_BOX (autologinnamehbox), autologinnamelabel, FALSE, FALSE, 0);

  autologinnameentry = gtk_entry_new_with_max_length (10);
  gtk_widget_ref (autologinnameentry);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinnameentry", autologinnameentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinnameentry);
  gtk_box_pack_start (GTK_BOX (autologinnamehbox), autologinnameentry, TRUE, TRUE, 10);

  autologinchannelhbox = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (autologinchannelhbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinchannelhbox", autologinchannelhbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinchannelhbox);
  gtk_box_pack_start (GTK_BOX (autologinvbox), autologinchannelhbox, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (autologinchannelhbox), 5);

  autologinchannellabel = gtk_label_new (_("Channel"));
  gtk_widget_ref (autologinchannellabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinchannellabel", autologinchannellabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinchannellabel);
  gtk_box_pack_start (GTK_BOX (autologinchannelhbox), autologinchannellabel, FALSE, FALSE, 0);

  autologinchannelentry = gtk_entry_new_with_max_length (10);
  gtk_widget_ref (autologinchannelentry);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologinchannelentry", autologinchannelentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologinchannelentry);
  gtk_box_pack_start (GTK_BOX (autologinchannelhbox), autologinchannelentry, TRUE, TRUE, 10);

  autologincommandshbox = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (autologincommandshbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologincommandshbox", autologincommandshbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologincommandshbox);
  gtk_box_pack_start (GTK_BOX (autologinvbox), autologincommandshbox, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (autologincommandshbox), 5);

  autologincommandslabel = gtk_label_new (_("Command(s)"));
  gtk_widget_ref (autologincommandslabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologincommandslabel", autologincommandslabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologincommandslabel);
  gtk_box_pack_start (GTK_BOX (autologincommandshbox), autologincommandslabel, FALSE, FALSE, 0);

  autologincommandsentry = gtk_entry_new_with_max_length (100);
  gtk_widget_ref (autologincommandsentry);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "autologincommandsentry", autologincommandsentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (autologincommandsentry);
  gtk_box_pack_start (GTK_BOX (autologincommandshbox), autologincommandsentry, TRUE, TRUE, 10);
  gtk_tooltips_set_tip (tooltips, autologincommandsentry, _("Commands to send to the convers server after you login, seperated by a semicolon"), NULL);

  preferencesgenerallabel = gtk_label_new (_("General"));
  gtk_widget_ref (preferencesgenerallabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesgenerallabel", preferencesgenerallabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesgenerallabel);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferencesdialognotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferencesdialognotebook), 0), preferencesgenerallabel);

  preferencesdisplayvbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (preferencesdisplayvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesdisplayvbox", preferencesdisplayvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesdisplayvbox);
  gtk_container_add (GTK_CONTAINER (preferencesdialognotebook), preferencesdisplayvbox);

  widgetsframe = gtk_frame_new (_("Widgets"));
  gtk_widget_ref (widgetsframe);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "widgetsframe", widgetsframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (widgetsframe);
  gtk_box_pack_start (GTK_BOX (preferencesdisplayvbox), widgetsframe, TRUE, TRUE, 5);

  displayvbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (displayvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "displayvbox", displayvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (displayvbox);
  gtk_container_add (GTK_CONTAINER (widgetsframe), displayvbox);

  menucheckbutton = gtk_check_button_new_with_label (_("Enable menu"));
  gtk_widget_ref (menucheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "menucheckbutton", menucheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (menucheckbutton);
  gtk_box_pack_start (GTK_BOX (displayvbox), menucheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (menucheckbutton), 2);

  statusbarcheckbutton = gtk_check_button_new_with_label (_("Enable statusbar"));
  gtk_widget_ref (statusbarcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "statusbarcheckbutton", statusbarcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (statusbarcheckbutton);
  gtk_box_pack_start (GTK_BOX (displayvbox), statusbarcheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (statusbarcheckbutton), 2);

  scrollbarcheckbutton = gtk_check_button_new_with_label (_("Enable scrollbar"));
  gtk_widget_ref (scrollbarcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "scrollbarcheckbutton", scrollbarcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrollbarcheckbutton);
  gtk_box_pack_start (GTK_BOX (displayvbox), scrollbarcheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (scrollbarcheckbutton), 2);

  colorframe = gtk_frame_new (_("Background"));
  gtk_widget_ref (colorframe);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "colorframe", colorframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (colorframe);
  gtk_box_pack_start (GTK_BOX (preferencesdisplayvbox), colorframe, TRUE, TRUE, 5);

  backgroundvbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (backgroundvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "backgroundvbox", backgroundvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (backgroundvbox);
  gtk_container_add (GTK_CONTAINER (colorframe), backgroundvbox);

  backgroundcolorhbox = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (backgroundcolorhbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "backgroundcolorhbox", backgroundcolorhbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (backgroundcolorhbox);
  gtk_box_pack_start (GTK_BOX (backgroundvbox), backgroundcolorhbox, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (backgroundcolorhbox), 2);

  colorradiobutton = gtk_radio_button_new_with_label (bg_group, _("Color"));
  bg_group = gtk_radio_button_group (GTK_RADIO_BUTTON (colorradiobutton));
  gtk_widget_ref (colorradiobutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "colorradiobutton", colorradiobutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (colorradiobutton);
  gtk_box_pack_start (GTK_BOX (backgroundcolorhbox), colorradiobutton, FALSE, TRUE, 0);

  backgroundcolorbutton = gtk_button_new_with_label ("");
  gtk_widget_ref (backgroundcolorbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "backgroundcolorbutton", backgroundcolorbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (backgroundcolorbutton);
  gtk_box_pack_start (GTK_BOX (backgroundcolorhbox), backgroundcolorbutton, FALSE, FALSE, 0);
  gtk_widget_set_usize (backgroundcolorbutton, 70, 24);

  pixmaphbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (pixmaphbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "pixmaphbox", pixmaphbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmaphbox);
  gtk_box_pack_start (GTK_BOX (backgroundvbox), pixmaphbox, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (pixmaphbox), 2);

  pixmapradiobutton = gtk_radio_button_new_with_label (bg_group, _("Pixmap"));
  bg_group = gtk_radio_button_group (GTK_RADIO_BUTTON (pixmapradiobutton));
  gtk_widget_ref (pixmapradiobutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "pixmapradiobutton", pixmapradiobutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmapradiobutton);
  gtk_box_pack_start (GTK_BOX (pixmaphbox), pixmapradiobutton, FALSE, TRUE, 0);

  pixmapentry = gtk_entry_new_with_max_length (100);
  gtk_widget_ref (pixmapentry);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "pixmapentry", pixmapentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmapentry);
  gtk_box_pack_start (GTK_BOX (pixmaphbox), pixmapentry, TRUE, TRUE, 0);

  pixmapselectbutton = gtk_button_new_with_label (_("..."));
  gtk_widget_ref (pixmapselectbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "pixmapselectbutton", pixmapselectbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmapselectbutton);
  gtk_box_pack_start (GTK_BOX (pixmaphbox), pixmapselectbutton, FALSE, FALSE, 2);
  gtk_widget_set_usize (pixmapselectbutton, 40, 20);

  fontframe = gtk_frame_new (_("Default font"));
  gtk_widget_ref (fontframe);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "fontframe", fontframe,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fontframe);
  gtk_box_pack_start (GTK_BOX (preferencesdisplayvbox), fontframe, TRUE, TRUE, 5);

  fontvbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (fontvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "fontvbox", fontvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fontvbox);
  gtk_container_add (GTK_CONTAINER (fontframe), fontvbox);

  fonthbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (fonthbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "fonthbox", fonthbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fonthbox);
  gtk_box_pack_start (GTK_BOX (fontvbox), fonthbox, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (fonthbox), 2);

  fontentry = gtk_entry_new ();
  gtk_widget_ref (fontentry);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "fontentry", fontentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fontentry);
  gtk_box_pack_start (GTK_BOX (fonthbox), fontentry, TRUE, TRUE, 2);
  GTK_WIDGET_UNSET_FLAGS (fontentry, GTK_CAN_FOCUS);
  gtk_entry_set_editable (GTK_ENTRY (fontentry), FALSE);

  fontbutton = gtk_button_new_with_label (_("..."));
  gtk_widget_ref (fontbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "fontbutton", fontbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (fontbutton);
  gtk_box_pack_start (GTK_BOX (fonthbox), fontbutton, FALSE, FALSE, 2);
  gtk_widget_set_usize (fontbutton, 40, 20);

  preferencesfontlabel = gtk_label_new (_("Display"));
  gtk_widget_ref (preferencesfontlabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesfontlabel", preferencesfontlabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesfontlabel);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferencesdialognotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferencesdialognotebook), 1), preferencesfontlabel);

  colorshbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (colorshbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "colorshbox", colorshbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (colorshbox);
  gtk_container_add (GTK_CONTAINER (preferencesdialognotebook), colorshbox);

  colorsscrolledwindow = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (colorsscrolledwindow);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "colorsscrolledwindow", colorsscrolledwindow,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (colorsscrolledwindow);
  gtk_box_pack_start (GTK_BOX (colorshbox), colorsscrolledwindow, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (colorsscrolledwindow), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  colorstext = gtk_text_new (NULL, NULL);
  gtk_widget_ref (colorstext);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "colorstext", colorstext,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (colorstext);
  gtk_container_add (GTK_CONTAINER (colorsscrolledwindow), colorstext);

  messagelabelvbox = gtk_vbox_new (TRUE, 2);
  gtk_widget_ref (messagelabelvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "messagelabelvbox", messagelabelvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (messagelabelvbox);
  gtk_box_pack_start (GTK_BOX (colorshbox), messagelabelvbox, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (messagelabelvbox), 5);

  txmessagelabel = gtk_label_new (_("TX text"));
  gtk_widget_ref (txmessagelabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "txmessagelabel", txmessagelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txmessagelabel);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), txmessagelabel, FALSE, FALSE, 0);

  rxmessagelabel = gtk_label_new (_("RX text"));
  gtk_widget_ref (rxmessagelabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "rxmessagelabel", rxmessagelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxmessagelabel);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), rxmessagelabel, FALSE, FALSE, 0);

  statusmessagelabel = gtk_label_new (_("Status text"));
  gtk_widget_ref (statusmessagelabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "statusmessagelabel", statusmessagelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (statusmessagelabel);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), statusmessagelabel, FALSE, FALSE, 0);

  privatemessagelabel = gtk_label_new (_("Private"));
  gtk_widget_ref (privatemessagelabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "privatemessagelabel", privatemessagelabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (privatemessagelabel);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), privatemessagelabel, FALSE, FALSE, 0);

  user1label = gtk_label_new (_("User 1"));
  gtk_widget_ref (user1label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user1label", user1label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user1label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user1label, FALSE, FALSE, 0);

  user2label = gtk_label_new (_("User 2"));
  gtk_widget_ref (user2label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user2label", user2label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user2label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user2label, FALSE, FALSE, 0);

  user3label = gtk_label_new (_("User 3"));
  gtk_widget_ref (user3label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user3label", user3label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user3label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user3label, FALSE, FALSE, 0);

  user4label = gtk_label_new (_("User 4"));
  gtk_widget_ref (user4label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user4label", user4label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user4label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user4label, FALSE, FALSE, 0);

  user5label = gtk_label_new (_("User 5"));
  gtk_widget_ref (user5label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user5label", user5label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user5label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user5label, FALSE, FALSE, 0);

  user6label = gtk_label_new (_("User 6"));
  gtk_widget_ref (user6label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user6label", user6label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user6label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user6label, FALSE, FALSE, 0);

  user7label = gtk_label_new (_("User 7"));
  gtk_widget_ref (user7label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user7label", user7label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user7label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user7label, FALSE, FALSE, 0);

  user8label = gtk_label_new (_("User 8"));
  gtk_widget_ref (user8label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user8label", user8label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user8label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user8label, FALSE, FALSE, 0);

  user9label = gtk_label_new (_("User 9"));
  gtk_widget_ref (user9label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user9label", user9label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user9label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user9label, FALSE, FALSE, 0);

  user10label = gtk_label_new (_("User 10"));
  gtk_widget_ref (user10label);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user10label", user10label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user10label);
  gtk_box_pack_start (GTK_BOX (messagelabelvbox), user10label, FALSE, FALSE, 0);

  buttonvbox = gtk_vbox_new (TRUE, 2);
  gtk_widget_ref (buttonvbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "buttonvbox", buttonvbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (buttonvbox);
  gtk_box_pack_start (GTK_BOX (colorshbox), buttonvbox, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (buttonvbox), 5);

  txmessagebutton = gtk_button_new_with_label ("");
  gtk_widget_ref (txmessagebutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "txmessagebutton", txmessagebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txmessagebutton);
  gtk_box_pack_start (GTK_BOX (buttonvbox), txmessagebutton, FALSE, FALSE, 0);
  gtk_widget_set_usize (txmessagebutton, 50, 20);

  rxmessagebutton = gtk_button_new_with_label ("");
  gtk_widget_ref (rxmessagebutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "rxmessagebutton", rxmessagebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxmessagebutton);
  gtk_box_pack_start (GTK_BOX (buttonvbox), rxmessagebutton, FALSE, FALSE, 0);
  gtk_widget_set_usize (rxmessagebutton, 50, 20);

  statusmessagebutton = gtk_button_new_with_label ("");
  gtk_widget_ref (statusmessagebutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "statusmessagebutton", statusmessagebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (statusmessagebutton);
  gtk_box_pack_start (GTK_BOX (buttonvbox), statusmessagebutton, FALSE, FALSE, 0);
  gtk_widget_set_usize (statusmessagebutton, 50, 20);

  privatemessagebutton = gtk_button_new_with_label ("");
  gtk_widget_ref (privatemessagebutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "privatemessagebutton", privatemessagebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (privatemessagebutton);
  gtk_box_pack_start (GTK_BOX (buttonvbox), privatemessagebutton, FALSE, FALSE, 0);
  gtk_widget_set_usize (privatemessagebutton, 50, 20);
  gtk_tooltips_set_tip (tooltips, privatemessagebutton, _("Left-click changes foreground color, right-click changes background color"), NULL);

  user1button = gtk_button_new_with_label ("");
  gtk_widget_ref (user1button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user1button", user1button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user1button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user1button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user1button, 50, 20);

  user2button = gtk_button_new_with_label ("");
  gtk_widget_ref (user2button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user2button", user2button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user2button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user2button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user2button, 50, 20);

  user3button = gtk_button_new_with_label ("");
  gtk_widget_ref (user3button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user3button", user3button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user3button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user3button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user3button, 50, 20);

  user4button = gtk_button_new_with_label ("");
  gtk_widget_ref (user4button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user4button", user4button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user4button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user4button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user4button, 50, 20);

  user5button = gtk_button_new_with_label ("");
  gtk_widget_ref (user5button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user5button", user5button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user5button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user5button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user5button, 50, 20);

  user6button = gtk_button_new_with_label ("");
  gtk_widget_ref (user6button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user6button", user6button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user6button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user6button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user6button, 50, 20);

  user7button = gtk_button_new_with_label ("");
  gtk_widget_ref (user7button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user7button", user7button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user7button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user7button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user7button, 50, 20);

  user8button = gtk_button_new_with_label ("");
  gtk_widget_ref (user8button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user8button", user8button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user8button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user8button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user8button, 50, 20);

  user9button = gtk_button_new_with_label ("");
  gtk_widget_ref (user9button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user9button", user9button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user9button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user9button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user9button, 50, 20);

  user10button = gtk_button_new_with_label ("");
  gtk_widget_ref (user10button);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "user10button", user10button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (user10button);
  gtk_box_pack_start (GTK_BOX (buttonvbox), user10button, FALSE, FALSE, 0);
  gtk_widget_set_usize (user10button, 50, 20);

  preferencescolorlabel = gtk_label_new (_("Colors"));
  gtk_widget_ref (preferencescolorlabel);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencescolorlabel", preferencescolorlabel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencescolorlabel);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferencesdialognotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferencesdialognotebook), 2), preferencescolorlabel);

  preferencesdialog_action_area = GTK_DIALOG (preferencesdialog)->action_area;
  gtk_object_set_data (GTK_OBJECT (preferencesdialog), "preferencesdialog_action_area", preferencesdialog_action_area);
  gtk_widget_show (preferencesdialog_action_area);
  gtk_container_set_border_width (GTK_CONTAINER (preferencesdialog_action_area), 10);

  preferencesdialoghbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (preferencesdialoghbox);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesdialoghbox", preferencesdialoghbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesdialoghbox);
  gtk_box_pack_start (GTK_BOX (preferencesdialog_action_area), preferencesdialoghbox, TRUE, TRUE, 0);

  preferencesOKbutton = gtk_button_new ();
  gtk_widget_ref (preferencesOKbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencesOKbutton", preferencesOKbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencesOKbutton);
  gtk_box_pack_start (GTK_BOX (preferencesdialoghbox), preferencesOKbutton, TRUE, FALSE, 20);
  gtk_widget_set_usize (preferencesOKbutton, 100, 30);

  hbox6 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox6);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "hbox6", hbox6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox6);
  gtk_container_add (GTK_CONTAINER (preferencesOKbutton), hbox6);

  pixmap6 = create_pixmap (preferencesdialog, "ok.xpm");
  gtk_widget_ref (pixmap6);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "pixmap6", pixmap6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap6);
  gtk_box_pack_start (GTK_BOX (hbox6), pixmap6, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap6), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap6), 12, 0);

  label6 = gtk_label_new (_("OK"));
  gtk_widget_ref (label6);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "label6", label6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label6);
  gtk_box_pack_start (GTK_BOX (hbox6), label6, FALSE, FALSE, 0);

  preferencescancelbutton = gtk_button_new ();
  gtk_widget_ref (preferencescancelbutton);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "preferencescancelbutton", preferencescancelbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preferencescancelbutton);
  gtk_box_pack_start (GTK_BOX (preferencesdialoghbox), preferencescancelbutton, TRUE, FALSE, 20);
  gtk_widget_set_usize (preferencescancelbutton, 100, 30);

  hbox7 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox7);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "hbox7", hbox7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox7);
  gtk_container_add (GTK_CONTAINER (preferencescancelbutton), hbox7);

  pixmap7 = create_pixmap (preferencesdialog, "cancel.xpm");
  gtk_widget_ref (pixmap7);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "pixmap7", pixmap7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pixmap7);
  gtk_box_pack_start (GTK_BOX (hbox7), pixmap7, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (pixmap7), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (pixmap7), 6, 0);

  label7 = gtk_label_new (_("Cancel"));
  gtk_widget_ref (label7);
  gtk_object_set_data_full (GTK_OBJECT (preferencesdialog), "label7", label7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label7);
  gtk_box_pack_start (GTK_BOX (hbox7), label7, FALSE, FALSE, 0);

  gtk_signal_connect (GTK_OBJECT (preferencesdialog), "show",
                      GTK_SIGNAL_FUNC (on_preferencesdialog_show),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (preferencesdialog), "destroy",
                      GTK_SIGNAL_FUNC (on_preferencesdialog_destroy),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (autologincheckbutton), "toggled",
                      GTK_SIGNAL_FUNC (on_autologincheckbutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (colorradiobutton), "toggled",
                      GTK_SIGNAL_FUNC (on_radiobutton_toggled),
                      "1");
  gtk_signal_connect (GTK_OBJECT (backgroundcolorbutton), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "0");
  gtk_signal_connect (GTK_OBJECT (pixmapradiobutton), "toggled",
                      GTK_SIGNAL_FUNC (on_radiobutton_toggled),
                      "2");
  gtk_signal_connect (GTK_OBJECT (pixmapselectbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_pixmapselectbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (fontbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_fontbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (txmessagebutton), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "1");
  gtk_signal_connect (GTK_OBJECT (rxmessagebutton), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "2");
  gtk_signal_connect (GTK_OBJECT (statusmessagebutton), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "3");
  gtk_signal_connect (GTK_OBJECT (privatemessagebutton), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "4");
  gtk_signal_connect (GTK_OBJECT (user1button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "5");
  gtk_signal_connect (GTK_OBJECT (user2button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "6");
  gtk_signal_connect (GTK_OBJECT (user3button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "7");
  gtk_signal_connect (GTK_OBJECT (user4button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "8");
  gtk_signal_connect (GTK_OBJECT (user5button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "9");
  gtk_signal_connect (GTK_OBJECT (user6button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "10");
  gtk_signal_connect (GTK_OBJECT (user7button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "11");
  gtk_signal_connect (GTK_OBJECT (user8button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "12");
  gtk_signal_connect (GTK_OBJECT (user9button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "13");
  gtk_signal_connect (GTK_OBJECT (user10button), "button_press_event",
                      GTK_SIGNAL_FUNC (on_colorbutton_pressed_event),
                      "14");
  gtk_signal_connect (GTK_OBJECT (preferencesOKbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_preferencesOKbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (preferencescancelbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_preferencescancelbutton_clicked),
                      NULL);

  gtk_object_set_data (GTK_OBJECT (preferencesdialog), "tooltips", tooltips);

  return preferencesdialog;
}

GtkWidget*
create_colorselectiondialog (void)
{
  GtkWidget *colorselectiondialog;
  GtkWidget *colorok_button;
  GtkWidget *colorcancel_button;
  GtkWidget *colorhelp_button;

  colorselectiondialog = gtk_color_selection_dialog_new ("");
  gtk_object_set_data (GTK_OBJECT (colorselectiondialog), "colorselectiondialog", colorselectiondialog);
  gtk_container_set_border_width (GTK_CONTAINER (colorselectiondialog), 10);
  gtk_window_set_position (GTK_WINDOW (colorselectiondialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (colorselectiondialog), FALSE, TRUE, TRUE);

  colorok_button = GTK_COLOR_SELECTION_DIALOG (colorselectiondialog)->ok_button;
  gtk_object_set_data (GTK_OBJECT (colorselectiondialog), "colorok_button", colorok_button);
  gtk_widget_show (colorok_button);
  gtk_widget_set_usize (colorok_button, 100, -2);
  GTK_WIDGET_SET_FLAGS (colorok_button, GTK_CAN_DEFAULT);

  colorcancel_button = GTK_COLOR_SELECTION_DIALOG (colorselectiondialog)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (colorselectiondialog), "colorcancel_button", colorcancel_button);
  gtk_widget_show (colorcancel_button);
  gtk_widget_set_usize (colorcancel_button, 100, -2);
  GTK_WIDGET_SET_FLAGS (colorcancel_button, GTK_CAN_DEFAULT);

  colorhelp_button = GTK_COLOR_SELECTION_DIALOG (colorselectiondialog)->help_button;
  gtk_object_set_data (GTK_OBJECT (colorselectiondialog), "colorhelp_button", colorhelp_button);
  GTK_WIDGET_SET_FLAGS (colorhelp_button, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (colorok_button), "clicked",
                      GTK_SIGNAL_FUNC (on_colorok_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (colorcancel_button), "clicked",
                      GTK_SIGNAL_FUNC (on_colorcancel_button_clicked),
                      NULL);

  gtk_widget_grab_focus (colorok_button);
  return colorselectiondialog;
}

GtkWidget*
create_fontselectiondialog (void)
{
  GtkWidget *fontselectiondialog;
  GtkWidget *fontok_button;
  GtkWidget *fontcancel_button;
  GtkWidget *fontapply_button;

  fontselectiondialog = gtk_font_selection_dialog_new ("");
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog), "fontselectiondialog", fontselectiondialog);
  gtk_container_set_border_width (GTK_CONTAINER (fontselectiondialog), 4);
  gtk_window_set_position (GTK_WINDOW (fontselectiondialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (fontselectiondialog), FALSE, TRUE, TRUE);

  fontok_button = GTK_FONT_SELECTION_DIALOG (fontselectiondialog)->ok_button;
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog), "fontok_button", fontok_button);
  gtk_widget_show (fontok_button);
  gtk_widget_set_usize (fontok_button, 100, -2);
  GTK_WIDGET_SET_FLAGS (fontok_button, GTK_CAN_DEFAULT);

  fontcancel_button = GTK_FONT_SELECTION_DIALOG (fontselectiondialog)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog), "fontcancel_button", fontcancel_button);
  gtk_widget_show (fontcancel_button);
  gtk_widget_set_usize (fontcancel_button, 100, -2);
  GTK_WIDGET_SET_FLAGS (fontcancel_button, GTK_CAN_DEFAULT);

  fontapply_button = GTK_FONT_SELECTION_DIALOG (fontselectiondialog)->apply_button;
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog), "fontapply_button", fontapply_button);
  GTK_WIDGET_SET_FLAGS (fontapply_button, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (fontok_button), "clicked",
                      GTK_SIGNAL_FUNC (on_fontok_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (fontcancel_button), "clicked",
                      GTK_SIGNAL_FUNC (on_fontcancel_button_clicked),
                      NULL);

  return fontselectiondialog;
}

GtkWidget*
create_fileselectiondialog (void)
{
  GtkWidget *fileselectiondialog;
  GtkWidget *fileok_button;
  GtkWidget *filecancel_button;

  fileselectiondialog = gtk_file_selection_new ("");
  gtk_object_set_data (GTK_OBJECT (fileselectiondialog), "fileselectiondialog", fileselectiondialog);
  gtk_container_set_border_width (GTK_CONTAINER (fileselectiondialog), 10);
  gtk_window_set_position (GTK_WINDOW (fileselectiondialog), GTK_WIN_POS_MOUSE);
  gtk_window_set_policy (GTK_WINDOW (fileselectiondialog), FALSE, TRUE, TRUE);

  fileok_button = GTK_FILE_SELECTION (fileselectiondialog)->ok_button;
  gtk_object_set_data (GTK_OBJECT (fileselectiondialog), "fileok_button", fileok_button);
  gtk_widget_show (fileok_button);
  gtk_widget_set_usize (fileok_button, 100, -2);
  GTK_WIDGET_SET_FLAGS (fileok_button, GTK_CAN_DEFAULT);

  filecancel_button = GTK_FILE_SELECTION (fileselectiondialog)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (fileselectiondialog), "filecancel_button", filecancel_button);
  gtk_widget_show (filecancel_button);
  gtk_widget_set_usize (filecancel_button, 100, -2);
  GTK_WIDGET_SET_FLAGS (filecancel_button, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (fileok_button), "clicked",
                      GTK_SIGNAL_FUNC (on_fileok_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (filecancel_button), "clicked",
                      GTK_SIGNAL_FUNC (on_filecancel_button_clicked),
                      NULL);

  return fileselectiondialog;
}


Generated by  Doxygen 1.6.0   Back to index