/*
 * 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 file1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, "_Send file...",
    "Send a text file",
    (gpointer) on_send_file1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, "_Log to file...",
    "Log sent and received data to a file",
    (gpointer) on_log_to_file1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Sto_p logging",
    "Stop logging to a file",
    (gpointer) on_stop_logging1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, "Clear _TX window",
    "Clear transmitted text area",
    (gpointer) on_clear_tx_window1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Clear _RX window",
    "Clear received text area",
    (gpointer) on_clear_rx_window1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_MENU_EXIT_ITEM (on_exit1_activate, NULL),
  GNOMEUIINFO_END
};

static GnomeUIInfo mfsk1_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, "MFSK16",
    NULL,
    (gpointer) on_mfsk1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "RTTY",
    NULL,
    (gpointer) on_rtty1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "THROB (1 throb/s)",
    NULL,
    (gpointer) on_throb1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "THROB (2 throbs/s)",
    NULL,
    (gpointer) on_throb2_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "THROB (4 throbs/s)",
    NULL,
    (gpointer) on_throb4_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo mode1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_RADIOITEMS, NULL, NULL, mfsk1_uiinfo,
    NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0,
    (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo configure_macros1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, "macro 1",
    NULL,
    (gpointer) on_macroconfig1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 2",
    NULL,
    (gpointer) on_macroconfig2_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 3",
    NULL,
    (gpointer) on_macroconfig3_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 4",
    NULL,
    (gpointer) on_macroconfig4_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 5",
    NULL,
    (gpointer) on_macroconfig5_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 6",
    NULL,
    (gpointer) on_macroconfig6_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 7",
    NULL,
    (gpointer) on_macroconfig7_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 8",
    NULL,
    (gpointer) on_macroconfig8_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 9",
    NULL,
    (gpointer) on_macroconfig9_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 10",
    NULL,
    (gpointer) on_macroconfig10_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 11",
    NULL,
    (gpointer) on_macroconfig11_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "macro 12",
    NULL,
    (gpointer) on_macroconfig12_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo settings1_menu_uiinfo[] =
{
  GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, NULL),
  {
    GNOME_APP_UI_SUBTREE, "_Configure macros",
    "Configure predefined texts",
    configure_macros1_menu_uiinfo, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo help1_menu_uiinfo[] =
{
  GNOMEUIINFO_HELP ("gmfsk"),
  GNOMEUIINFO_MENU_ABOUT_ITEM (on_about1_activate, NULL),
  GNOMEUIINFO_END
};

static GnomeUIInfo menubar1_uiinfo[] =
{
  GNOMEUIINFO_MENU_FILE_TREE (file1_menu_uiinfo),
  {
    GNOME_APP_UI_SUBTREE, "_Mode",
    NULL,
    mode1_menu_uiinfo, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_MENU_SETTINGS_TREE (settings1_menu_uiinfo),
  GNOMEUIINFO_MENU_HELP_TREE (help1_menu_uiinfo),
  GNOMEUIINFO_END
};

GtkWidget*
create_appwindow (void)
{
  GtkWidget *appwindow;
  GtkWidget *dock1;
  GtkWidget *toolbar1;
  GtkWidget *tmp_toolbar_icon;
  GtkWidget *pausebutton;
  GtkWidget *rxbutton;
  GtkWidget *txbutton;
  GtkWidget *abortbutton;
  GtkWidget *tunebutton;
  GtkWidget *vbox1;
  GtkWidget *table6;
  GtkWidget *qsonotesentry;
  GtkWidget *logbutton;
  GtkWidget *newbutton;
  GtkWidget *label25;
  GtkWidget *label26;
  GtkWidget *label24;
  GtkWidget *label23;
  GtkWidget *label21;
  GtkWidget *label22;
  GtkWidget *qsotxrstentry;
  GtkWidget *qsorxrstentry;
  GtkWidget *qsocallentry;
  GtkWidget *hbox10;
  GtkWidget *qsonameentry;
  GtkWidget *label27;
  GtkWidget *qsoqthentry;
  GtkWidget *qsobandcombo;
  GtkWidget *qsobandentry;
  GtkWidget *scrolledwindow1;
  GtkWidget *rxtext;
  GtkWidget *scrolledwindow2;
  GtkWidget *txtext;
  GtkWidget *hbox2;
  GtkWidget *hbox3;
  GtkWidget *macrobutton1;
  GtkWidget *macrobutton2;
  GtkWidget *macrobutton3;
  GtkWidget *hbox4;
  GtkWidget *macrobutton4;
  GtkWidget *macrobutton5;
  GtkWidget *macrobutton6;
  GtkWidget *hbox11;
  GtkWidget *hbox12;
  GtkWidget *macrobutton7;
  GtkWidget *macrobutton8;
  GtkWidget *macrobutton9;
  GtkWidget *hbox13;
  GtkWidget *macrobutton10;
  GtkWidget *macrobutton11;
  GtkWidget *macrobutton12;
  GtkWidget *hseparator1;
  GtkWidget *hbox1;
  GtkWidget *notebook1;
  GtkWidget *waterfall;
  GtkWidget *label1;
  GtkWidget *scope;
  GtkWidget *label2;
  GtkWidget *vbox8;
  GSList *magbutton_group = NULL;
  GtkWidget *mag1button;
  GtkWidget *mag2button;
  GtkWidget *mag4button;
  GtkWidget *vseparator2;
  GtkWidget *vbox9;
  GtkWidget *hbox16;
  GtkWidget *label4;
  GtkObject *freqspinbutton_adj;
  GtkWidget *freqspinbutton;
  GtkWidget *hbox17;
  GtkWidget *afcbutton;
  GtkWidget *squelchbutton;
  GtkWidget *reversebutton;
  GtkWidget *hbox18;
  GtkWidget *syncscope_darea;
  GtkWidget *metricdial;
  GtkWidget *appbar1;
  GtkAccelGroup *accel_group;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  accel_group = gtk_accel_group_new ();

  appwindow = gnome_app_new ("gMFSK", "gMFSK");
  gtk_object_set_data (GTK_OBJECT (appwindow), "appwindow", appwindow);

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

  gnome_app_create_menus (GNOME_APP (appwindow), menubar1_uiinfo);

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

  gtk_widget_ref (file1_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "send_file1",
                            file1_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "separator1",
                            file1_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "log_to_file1",
                            file1_menu_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "stop_logging1",
                            file1_menu_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "separator2",
                            file1_menu_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[5].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "clear_tx_window1",
                            file1_menu_uiinfo[5].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[6].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "clear_rx_window1",
                            file1_menu_uiinfo[6].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[7].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "separator3",
                            file1_menu_uiinfo[7].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (file1_menu_uiinfo[8].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "exit1",
                            file1_menu_uiinfo[8].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

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

  gtk_widget_ref (mfsk1_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "mfsk1",
                            mfsk1_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (mfsk1_uiinfo[0].widget), TRUE);

  gtk_widget_ref (mfsk1_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "rtty1",
                            mfsk1_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mfsk1_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "throb1",
                            mfsk1_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mfsk1_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "throb2",
                            mfsk1_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (mfsk1_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "throb4",
                            mfsk1_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

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

  gtk_widget_ref (settings1_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "preferences1",
                            settings1_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (settings1_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "configure_macros1",
                            settings1_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_1",
                            configure_macros1_menu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_2",
                            configure_macros1_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_3",
                            configure_macros1_menu_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_4",
                            configure_macros1_menu_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_5",
                            configure_macros1_menu_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[5].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_6",
                            configure_macros1_menu_uiinfo[5].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[6].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_7",
                            configure_macros1_menu_uiinfo[6].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[7].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_8",
                            configure_macros1_menu_uiinfo[7].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[8].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_9",
                            configure_macros1_menu_uiinfo[8].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[9].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_10",
                            configure_macros1_menu_uiinfo[9].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[10].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_11",
                            configure_macros1_menu_uiinfo[10].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (configure_macros1_menu_uiinfo[11].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macro_12",
                            configure_macros1_menu_uiinfo[11].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

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

  gtk_widget_ref (help1_menu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "about1",
                            help1_menu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  toolbar1 = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS);
  gtk_widget_ref (toolbar1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "toolbar1", toolbar1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (toolbar1);
  gnome_app_add_toolbar (GNOME_APP (appwindow), GTK_TOOLBAR (toolbar1), "toolbar1",
                                GNOME_DOCK_ITEM_BEH_EXCLUSIVE,
                                GNOME_DOCK_TOP, 1, 0, 23);
  gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 2);
  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_HALF);

  tmp_toolbar_icon = create_pixmap (appwindow, "gmfsk/pause.xpm", TRUE);
  pausebutton = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_RADIOBUTTON,
                                NULL,
                                "Pause",
                                "Suspend the modem and release soundcard (Ctl+Z)", NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (pausebutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "pausebutton", pausebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pausebutton);
  gtk_widget_add_accelerator (pausebutton, "clicked", accel_group,
                              GDK_Z, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (pausebutton), FALSE);

  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));

  tmp_toolbar_icon = create_pixmap (appwindow, "gmfsk/rx.xpm", TRUE);
  rxbutton = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_RADIOBUTTON,
                                pausebutton,
                                "Receive",
                                "Switch to receive (Ctl+R)", NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (rxbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "rxbutton", rxbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxbutton);
  gtk_widget_add_accelerator (rxbutton, "clicked", accel_group,
                              GDK_R, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (rxbutton), TRUE);
  gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (rxbutton), FALSE);

  tmp_toolbar_icon = create_pixmap (appwindow, "gmfsk/tx.xpm", TRUE);
  txbutton = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_RADIOBUTTON,
                                pausebutton,
                                "Transmit",
                                "Switch to transmit (Ctl+T)", NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (txbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "txbutton", txbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txbutton);
  gtk_widget_add_accelerator (txbutton, "clicked", accel_group,
                              GDK_T, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (txbutton), FALSE);

  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));

  tmp_toolbar_icon = gnome_stock_pixmap_widget (appwindow, GNOME_STOCK_PIXMAP_STOP);
  abortbutton = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_BUTTON,
                                NULL,
                                "Abort",
                                "Abort transmission immediately (Ctl+X)", NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (abortbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "abortbutton", abortbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (abortbutton);
  gtk_widget_add_accelerator (abortbutton, "clicked", accel_group,
                              GDK_X, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));

  tmp_toolbar_icon = create_pixmap (appwindow, "gmfsk/tune.xpm", TRUE);
  tunebutton = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
                                GTK_TOOLBAR_CHILD_RADIOBUTTON,
                                pausebutton,
                                "Tune",
                                "Send tune signal (Ctl+U)", NULL,
                                tmp_toolbar_icon, NULL, NULL);
  gtk_widget_ref (tunebutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "tunebutton", tunebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (tunebutton);
  gtk_widget_add_accelerator (tunebutton, "clicked", accel_group,
                              GDK_U, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (tunebutton), FALSE);

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "vbox1", vbox1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox1);
  gnome_app_set_contents (GNOME_APP (appwindow), vbox1);

  table6 = gtk_table_new (2, 7, FALSE);
  gtk_widget_ref (table6);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "table6", table6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table6);
  gtk_box_pack_start (GTK_BOX (vbox1), table6, FALSE, FALSE, 4);
  gtk_table_set_row_spacings (GTK_TABLE (table6), 1);

  qsonotesentry = gtk_entry_new ();
  gtk_widget_ref (qsonotesentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsonotesentry", qsonotesentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsonotesentry);
  gtk_table_attach (GTK_TABLE (table6), qsonotesentry, 5, 6, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  logbutton = gtk_button_new_with_label ("Log entry");
  gtk_widget_ref (logbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "logbutton", logbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (logbutton);
  gtk_table_attach (GTK_TABLE (table6), logbutton, 6, 7, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_tooltips_set_tip (tooltips, logbutton, "Send QSO data to xlog (Ctl-L)", NULL);
  gtk_widget_add_accelerator (logbutton, "clicked", accel_group,
                              GDK_L, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  newbutton = gtk_button_new_with_label ("New entry");
  gtk_widget_ref (newbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "newbutton", newbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (newbutton);
  gtk_table_attach (GTK_TABLE (table6), newbutton, 6, 7, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_tooltips_set_tip (tooltips, newbutton, "Clear QSO data fields (Ctl-N)", NULL);
  gtk_widget_add_accelerator (newbutton, "clicked", accel_group,
                              GDK_N, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  label25 = gtk_label_new ("Name");
  gtk_widget_ref (label25);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label25", label25,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label25);
  gtk_table_attach (GTK_TABLE (table6), label25, 4, 5, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label25), 0, 0.5);

  label26 = gtk_label_new ("Notes");
  gtk_widget_ref (label26);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label26", label26,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label26);
  gtk_table_attach (GTK_TABLE (table6), label26, 4, 5, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 5, 0);
  gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5);

  label24 = gtk_label_new ("Rcvd RST");
  gtk_widget_ref (label24);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label24", label24,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label24);
  gtk_table_attach (GTK_TABLE (table6), label24, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label24), 0, 0.5);

  label23 = gtk_label_new ("Sent RST");
  gtk_widget_ref (label23);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label23", label23,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label23);
  gtk_table_attach (GTK_TABLE (table6), label23, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label23), 0, 0.5);

  label21 = gtk_label_new ("Call");
  gtk_widget_ref (label21);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label21", label21,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label21);
  gtk_table_attach (GTK_TABLE (table6), label21, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label21), 0, 0.5);

  label22 = gtk_label_new ("Band");
  gtk_widget_ref (label22);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label22", label22,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label22);
  gtk_table_attach (GTK_TABLE (table6), label22, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label22), 0, 0.5);

  qsotxrstentry = gtk_entry_new ();
  gtk_widget_ref (qsotxrstentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsotxrstentry", qsotxrstentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsotxrstentry);
  gtk_table_attach (GTK_TABLE (table6), qsotxrstentry, 3, 4, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (qsotxrstentry, 60, -2);

  qsorxrstentry = gtk_entry_new ();
  gtk_widget_ref (qsorxrstentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsorxrstentry", qsorxrstentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsorxrstentry);
  gtk_table_attach (GTK_TABLE (table6), qsorxrstentry, 3, 4, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (qsorxrstentry, 60, -2);

  qsocallentry = gtk_entry_new ();
  gtk_widget_ref (qsocallentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsocallentry", qsocallentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsocallentry);
  gtk_table_attach (GTK_TABLE (table6), qsocallentry, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (qsocallentry, 70, -2);

  hbox10 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox10);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox10", hbox10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox10);
  gtk_table_attach (GTK_TABLE (table6), hbox10, 5, 6, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  qsonameentry = gtk_entry_new ();
  gtk_widget_ref (qsonameentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsonameentry", qsonameentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsonameentry);
  gtk_box_pack_start (GTK_BOX (hbox10), qsonameentry, FALSE, FALSE, 0);
  gtk_widget_set_usize (qsonameentry, 70, -2);

  label27 = gtk_label_new ("QTH");
  gtk_widget_ref (label27);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label27", label27,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label27);
  gtk_box_pack_start (GTK_BOX (hbox10), label27, FALSE, FALSE, 4);

  qsoqthentry = gtk_entry_new ();
  gtk_widget_ref (qsoqthentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsoqthentry", qsoqthentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsoqthentry);
  gtk_box_pack_start (GTK_BOX (hbox10), qsoqthentry, TRUE, TRUE, 0);

  qsobandcombo = gtk_combo_new ();
  gtk_widget_ref (qsobandcombo);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsobandcombo", qsobandcombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsobandcombo);
  gtk_table_attach (GTK_TABLE (table6), qsobandcombo, 1, 2, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_usize (qsobandcombo, 70, -2);

  qsobandentry = GTK_COMBO (qsobandcombo)->entry;
  gtk_widget_ref (qsobandentry);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "qsobandentry", qsobandentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsobandentry);
  gtk_widget_set_usize (qsobandentry, 70, -2);
  gtk_entry_set_text (GTK_ENTRY (qsobandentry), "1");

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "scrolledwindow1", scrolledwindow1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  rxtext = gtk_text_new (NULL, NULL);
  gtk_widget_ref (rxtext);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "rxtext", rxtext,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxtext);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), rxtext);
  gtk_widget_set_usize (rxtext, -2, 200);
  GTK_WIDGET_UNSET_FLAGS (rxtext, GTK_CAN_FOCUS);

  scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow2);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "scrolledwindow2", scrolledwindow2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow2);
  gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow2, FALSE, FALSE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  txtext = gtk_text_new (NULL, NULL);
  gtk_widget_ref (txtext);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "txtext", txtext,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txtext);
  gtk_container_add (GTK_CONTAINER (scrolledwindow2), txtext);
  gtk_widget_set_usize (txtext, -2, 50);

  hbox2 = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (hbox2);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox2", hbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox2);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox2, FALSE, FALSE, 4);

  hbox3 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox3);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox3", hbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox3);
  gtk_box_pack_start (GTK_BOX (hbox2), hbox3, TRUE, TRUE, 4);

  macrobutton1 = gtk_button_new_with_label ("macro1");
  gtk_widget_ref (macrobutton1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton1", macrobutton1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton1);
  gtk_box_pack_start (GTK_BOX (hbox3), macrobutton1, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton1, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton1, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton1, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton1, "clicked", accel_group,
                              GDK_F1, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton2 = gtk_button_new_with_label ("macro2");
  gtk_widget_ref (macrobutton2);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton2", macrobutton2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton2);
  gtk_box_pack_start (GTK_BOX (hbox3), macrobutton2, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton2, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton2, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton2, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton2, "clicked", accel_group,
                              GDK_F2, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton3 = gtk_button_new_with_label ("macro3");
  gtk_widget_ref (macrobutton3);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton3", macrobutton3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton3);
  gtk_box_pack_start (GTK_BOX (hbox3), macrobutton3, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton3, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton3, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton3, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton3, "clicked", accel_group,
                              GDK_F3, 0,
                              GTK_ACCEL_VISIBLE);

  hbox4 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox4);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox4", hbox4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox4);
  gtk_box_pack_start (GTK_BOX (hbox2), hbox4, TRUE, TRUE, 4);

  macrobutton4 = gtk_button_new_with_label ("macro4");
  gtk_widget_ref (macrobutton4);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton4", macrobutton4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton4);
  gtk_box_pack_start (GTK_BOX (hbox4), macrobutton4, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton4, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton4, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton4, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton4, "clicked", accel_group,
                              GDK_F4, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton5 = gtk_button_new_with_label ("macro5");
  gtk_widget_ref (macrobutton5);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton5", macrobutton5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton5);
  gtk_box_pack_start (GTK_BOX (hbox4), macrobutton5, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton5, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton5, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton5, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton5, "clicked", accel_group,
                              GDK_F5, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton6 = gtk_button_new_with_label ("macro6");
  gtk_widget_ref (macrobutton6);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton6", macrobutton6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton6);
  gtk_box_pack_start (GTK_BOX (hbox4), macrobutton6, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton6, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton6, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton6, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton6, "clicked", accel_group,
                              GDK_F6, 0,
                              GTK_ACCEL_VISIBLE);

  hbox11 = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (hbox11);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox11", hbox11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox11);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox11, FALSE, FALSE, 0);

  hbox12 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox12);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox12", hbox12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox12);
  gtk_box_pack_start (GTK_BOX (hbox11), hbox12, TRUE, TRUE, 4);

  macrobutton7 = gtk_button_new_with_label ("macro7");
  gtk_widget_ref (macrobutton7);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton7", macrobutton7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton7);
  gtk_box_pack_start (GTK_BOX (hbox12), macrobutton7, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton7, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton7, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton7, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton7, "clicked", accel_group,
                              GDK_F7, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton8 = gtk_button_new_with_label ("macro8");
  gtk_widget_ref (macrobutton8);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton8", macrobutton8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton8);
  gtk_box_pack_start (GTK_BOX (hbox12), macrobutton8, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton8, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton8, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton8, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton8, "clicked", accel_group,
                              GDK_F8, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton9 = gtk_button_new_with_label ("macro9");
  gtk_widget_ref (macrobutton9);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton9", macrobutton9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton9);
  gtk_box_pack_start (GTK_BOX (hbox12), macrobutton9, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton9, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton9, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton9, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton9, "clicked", accel_group,
                              GDK_F9, 0,
                              GTK_ACCEL_VISIBLE);

  hbox13 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox13);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox13", hbox13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox13);
  gtk_box_pack_start (GTK_BOX (hbox11), hbox13, TRUE, TRUE, 4);

  macrobutton10 = gtk_button_new_with_label ("macro10");
  gtk_widget_ref (macrobutton10);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton10", macrobutton10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton10);
  gtk_box_pack_start (GTK_BOX (hbox13), macrobutton10, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton10, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton10, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton10, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton10, "clicked", accel_group,
                              GDK_F10, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton11 = gtk_button_new_with_label ("macro11");
  gtk_widget_ref (macrobutton11);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton11", macrobutton11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton11);
  gtk_box_pack_start (GTK_BOX (hbox13), macrobutton11, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton11, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton11, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton11, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton11, "clicked", accel_group,
                              GDK_F11, 0,
                              GTK_ACCEL_VISIBLE);

  macrobutton12 = gtk_button_new_with_label ("macro12");
  gtk_widget_ref (macrobutton12);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "macrobutton12", macrobutton12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macrobutton12);
  gtk_box_pack_start (GTK_BOX (hbox13), macrobutton12, TRUE, TRUE, 2);
  gtk_widget_set_usize (macrobutton12, 75, -2);
  GTK_WIDGET_UNSET_FLAGS (macrobutton12, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, macrobutton12, "Click right button to edit macro", NULL);
  gtk_widget_add_accelerator (macrobutton12, "clicked", accel_group,
                              GDK_F12, 0,
                              GTK_ACCEL_VISIBLE);

  hseparator1 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hseparator1", hseparator1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator1);
  gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, FALSE, 2);

  hbox1 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox1", hbox1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox1);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);

  notebook1 = gtk_notebook_new ();
  gtk_widget_ref (notebook1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "notebook1", notebook1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (notebook1);
  gtk_box_pack_start (GTK_BOX (hbox1), notebook1, FALSE, FALSE, 0);
  GTK_WIDGET_UNSET_FLAGS (notebook1, GTK_CAN_FOCUS);

  waterfall = waterfall_new ("waterfall", NULL, NULL, 0, 0);
  gtk_widget_ref (waterfall);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "waterfall", waterfall,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (waterfall);
  gtk_container_add (GTK_CONTAINER (notebook1), waterfall);
  gtk_widget_set_usize (waterfall, 512, 96);
  GTK_WIDGET_UNSET_FLAGS (waterfall, GTK_CAN_FOCUS);
  GTK_WIDGET_UNSET_FLAGS (waterfall, GTK_CAN_DEFAULT);
  gtk_widget_set_events (waterfall, GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_LEAVE_NOTIFY_MASK);

  label1 = gtk_label_new ("waterfall");
  gtk_widget_ref (label1);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label1", label1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label1);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1);

  scope = scope_new ("scope", NULL, NULL, 0, 0);
  gtk_widget_ref (scope);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "scope", scope,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scope);
  gtk_container_add (GTK_CONTAINER (notebook1), scope);
  gtk_widget_set_usize (scope, 512, 96);
  GTK_WIDGET_UNSET_FLAGS (scope, GTK_CAN_FOCUS);
  GTK_WIDGET_UNSET_FLAGS (scope, GTK_CAN_DEFAULT);

  label2 = gtk_label_new ("scope");
  gtk_widget_ref (label2);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label2", label2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label2);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label2);

  vbox8 = gtk_vbox_new (TRUE, 0);
  gtk_widget_ref (vbox8);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "vbox8", vbox8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox8);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox8, FALSE, FALSE, 4);

  mag1button = gtk_radio_button_new_with_label (magbutton_group, "x1");
  magbutton_group = gtk_radio_button_group (GTK_RADIO_BUTTON (mag1button));
  gtk_widget_ref (mag1button);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "mag1button", mag1button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mag1button);
  gtk_box_pack_start (GTK_BOX (vbox8), mag1button, FALSE, FALSE, 0);
  GTK_WIDGET_UNSET_FLAGS (mag1button, GTK_CAN_FOCUS);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mag1button), TRUE);

  mag2button = gtk_radio_button_new_with_label (magbutton_group, "x2");
  magbutton_group = gtk_radio_button_group (GTK_RADIO_BUTTON (mag2button));
  gtk_widget_ref (mag2button);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "mag2button", mag2button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mag2button);
  gtk_box_pack_start (GTK_BOX (vbox8), mag2button, FALSE, FALSE, 0);
  GTK_WIDGET_UNSET_FLAGS (mag2button, GTK_CAN_FOCUS);

  mag4button = gtk_radio_button_new_with_label (magbutton_group, "x4");
  magbutton_group = gtk_radio_button_group (GTK_RADIO_BUTTON (mag4button));
  gtk_widget_ref (mag4button);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "mag4button", mag4button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (mag4button);
  gtk_box_pack_start (GTK_BOX (vbox8), mag4button, FALSE, FALSE, 0);
  GTK_WIDGET_UNSET_FLAGS (mag4button, GTK_CAN_FOCUS);

  vseparator2 = gtk_vseparator_new ();
  gtk_widget_ref (vseparator2);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "vseparator2", vseparator2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vseparator2);
  gtk_box_pack_start (GTK_BOX (hbox1), vseparator2, FALSE, FALSE, 0);

  vbox9 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox9);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "vbox9", vbox9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox9);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox9, TRUE, TRUE, 0);

  hbox16 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox16);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox16", hbox16,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox16);
  gtk_box_pack_start (GTK_BOX (vbox9), hbox16, TRUE, TRUE, 2);

  label4 = gtk_label_new ("frequency");
  gtk_widget_ref (label4);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "label4", label4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label4);
  gtk_box_pack_start (GTK_BOX (hbox16), label4, FALSE, FALSE, 4);

  freqspinbutton_adj = gtk_adjustment_new (1000, 0, 4000, 1, 10, 10);
  freqspinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (freqspinbutton_adj), 1, 1);
  gtk_widget_ref (freqspinbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "freqspinbutton", freqspinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (freqspinbutton);
  gtk_box_pack_start (GTK_BOX (hbox16), freqspinbutton, TRUE, TRUE, 2);
  gtk_widget_set_usize (freqspinbutton, 60, -2);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (freqspinbutton), TRUE);

  hbox17 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox17);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox17", hbox17,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox17);
  gtk_box_pack_start (GTK_BOX (vbox9), hbox17, TRUE, TRUE, 2);

  afcbutton = gtk_check_button_new_with_label ("AFC");
  gtk_widget_ref (afcbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "afcbutton", afcbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (afcbutton);
  gtk_box_pack_start (GTK_BOX (hbox17), afcbutton, FALSE, FALSE, 1);
  GTK_WIDGET_UNSET_FLAGS (afcbutton, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, afcbutton, "Automatic frequency control", NULL);

  squelchbutton = gtk_check_button_new_with_label ("SQL");
  gtk_widget_ref (squelchbutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "squelchbutton", squelchbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (squelchbutton);
  gtk_box_pack_start (GTK_BOX (hbox17), squelchbutton, FALSE, FALSE, 1);
  GTK_WIDGET_UNSET_FLAGS (squelchbutton, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, squelchbutton, "Squelch", NULL);

  reversebutton = gtk_check_button_new_with_label ("REV");
  gtk_widget_ref (reversebutton);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "reversebutton", reversebutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reversebutton);
  gtk_box_pack_start (GTK_BOX (hbox17), reversebutton, FALSE, FALSE, 1);
  GTK_WIDGET_UNSET_FLAGS (reversebutton, GTK_CAN_FOCUS);
  gtk_tooltips_set_tip (tooltips, reversebutton, "Reverse polarity", NULL);

  hbox18 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox18);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "hbox18", hbox18,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox18);
  gtk_box_pack_start (GTK_BOX (vbox9), hbox18, TRUE, TRUE, 2);

  syncscope_darea = gtk_drawing_area_new ();
  gtk_widget_ref (syncscope_darea);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "syncscope_darea", syncscope_darea,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (syncscope_darea);
  gtk_box_pack_start (GTK_BOX (hbox18), syncscope_darea, FALSE, FALSE, 0);
  gtk_widget_set_usize (syncscope_darea, 64, 64);
  gtk_widget_set_events (syncscope_darea, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);

  metricdial = gtk_dial_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0.0, 100, 0.0, 0.0, 0.0)));
  gtk_widget_ref (metricdial);
  gtk_object_set_data_full (GTK_OBJECT (appwindow), "metricdial", metricdial,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (metricdial);
  gtk_box_pack_start (GTK_BOX (hbox18), metricdial, FALSE, FALSE, 0);
  gtk_dial_set_view_only (GTK_DIAL (metricdial), TRUE);

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

  gtk_signal_connect (GTK_OBJECT (appwindow), "delete_event",
                      GTK_SIGNAL_FUNC (on_appwindow_delete_event),
                      NULL);
  gnome_app_install_menu_hints (GNOME_APP (appwindow), menubar1_uiinfo);
  gtk_signal_connect (GTK_OBJECT (pausebutton), "toggled",
                      GTK_SIGNAL_FUNC (on_pausebutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rxbutton), "toggled",
                      GTK_SIGNAL_FUNC (on_rxbutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (txbutton), "toggled",
                      GTK_SIGNAL_FUNC (on_txbutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (abortbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_abortbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (tunebutton), "toggled",
                      GTK_SIGNAL_FUNC (on_tunebutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (qsonotesentry), "changed",
                      GTK_SIGNAL_FUNC (on_qsoentry_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (logbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_logbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (newbutton), "clicked",
                      GTK_SIGNAL_FUNC (on_newbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (qsotxrstentry), "changed",
                      GTK_SIGNAL_FUNC (on_qsoentry_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (qsorxrstentry), "changed",
                      GTK_SIGNAL_FUNC (on_qsoentry_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (qsocallentry), "changed",
                      GTK_SIGNAL_FUNC (on_qsoentry_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (qsonameentry), "changed",
                      GTK_SIGNAL_FUNC (on_qsoentry_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (qsoqthentry), "changed",
                      GTK_SIGNAL_FUNC (on_qsoentry_changed),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (rxtext), "button_press_event",
                            GTK_SIGNAL_FUNC (on_rxtext_button_press_event),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (txtext), "key_press_event",
                      GTK_SIGNAL_FUNC (on_txtext_key_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (txtext), "button_press_event",
                      GTK_SIGNAL_FUNC (on_txtext_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (txtext), "selection_received",
                      GTK_SIGNAL_FUNC (on_txtext_selection_received),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (macrobutton1), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(1));
  gtk_signal_connect (GTK_OBJECT (macrobutton1), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(1));
  gtk_signal_connect (GTK_OBJECT (macrobutton2), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(2));
  gtk_signal_connect (GTK_OBJECT (macrobutton2), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(2));
  gtk_signal_connect (GTK_OBJECT (macrobutton3), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(3));
  gtk_signal_connect (GTK_OBJECT (macrobutton3), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(3));
  gtk_signal_connect (GTK_OBJECT (macrobutton4), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(4));
  gtk_signal_connect (GTK_OBJECT (macrobutton4), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(4));
  gtk_signal_connect (GTK_OBJECT (macrobutton5), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(5));
  gtk_signal_connect (GTK_OBJECT (macrobutton5), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(5));
  gtk_signal_connect (GTK_OBJECT (macrobutton6), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(6));
  gtk_signal_connect (GTK_OBJECT (macrobutton6), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(6));
  gtk_signal_connect (GTK_OBJECT (macrobutton7), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(7));
  gtk_signal_connect (GTK_OBJECT (macrobutton7), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(7));
  gtk_signal_connect (GTK_OBJECT (macrobutton8), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(8));
  gtk_signal_connect (GTK_OBJECT (macrobutton8), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(8));
  gtk_signal_connect (GTK_OBJECT (macrobutton9), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(9));
  gtk_signal_connect (GTK_OBJECT (macrobutton9), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(9));
  gtk_signal_connect (GTK_OBJECT (macrobutton10), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(10));
  gtk_signal_connect (GTK_OBJECT (macrobutton10), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(10));
  gtk_signal_connect (GTK_OBJECT (macrobutton11), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(11));
  gtk_signal_connect (GTK_OBJECT (macrobutton11), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(11));
  gtk_signal_connect (GTK_OBJECT (macrobutton12), "clicked",
                      GTK_SIGNAL_FUNC (on_macrobutton_clicked),
                      GINT_TO_POINTER(12));
  gtk_signal_connect (GTK_OBJECT (macrobutton12), "button_press_event",
                      GTK_SIGNAL_FUNC (on_macrobutton_button_press_event),
                      GINT_TO_POINTER(12));
  gtk_signal_connect (GTK_OBJECT (waterfall), "motion_notify_event",
                      GTK_SIGNAL_FUNC (on_waterfall_motion_notify_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (waterfall), "button_press_event",
                      GTK_SIGNAL_FUNC (on_waterfall_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (waterfall), "leave_notify_event",
                      GTK_SIGNAL_FUNC (on_waterfall_leave_notify_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (mag1button), "toggled",
                      GTK_SIGNAL_FUNC (on_mag1button_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (mag2button), "toggled",
                      GTK_SIGNAL_FUNC (on_mag2button_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (mag4button), "toggled",
                      GTK_SIGNAL_FUNC (on_mag4button_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (freqspinbutton), "changed",
                      GTK_SIGNAL_FUNC (on_freqspinbutton_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (afcbutton), "toggled",
                      GTK_SIGNAL_FUNC (on_afcbutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (squelchbutton), "toggled",
                      GTK_SIGNAL_FUNC (on_squelchbutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (reversebutton), "toggled",
                      GTK_SIGNAL_FUNC (on_reversebutton_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (syncscope_darea), "configure_event",
                      GTK_SIGNAL_FUNC (on_syncscope_darea_configure_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (syncscope_darea), "expose_event",
                      GTK_SIGNAL_FUNC (on_syncscope_darea_expose_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (syncscope_darea), "button_press_event",
                      GTK_SIGNAL_FUNC (on_syncscope_darea_button_press_event),
                      NULL);

  gtk_widget_grab_focus (txtext);
  gtk_object_set_data (GTK_OBJECT (appwindow), "tooltips", tooltips);

  gtk_window_add_accel_group (GTK_WINDOW (appwindow), accel_group);

  return appwindow;
}

GtkWidget*
create_aboutwindow (void)
{
  const gchar *authors[] = {
    "Tomi Manninen <oh2bns@sral.fi>",
    NULL
  };
  GtkWidget *aboutwindow;

  aboutwindow = gnome_about_new ("gMFSK", VERSION,
                        "Copyright 2001-2002 Tomi Manninen, OH2BNS",
                        authors,
                        "A Gnome MFSK16, RTTY and THROB terminal program",
                        "gmfsk/mfsk.png");
  gtk_object_set_data (GTK_OBJECT (aboutwindow), "aboutwindow", aboutwindow);
  gtk_window_set_modal (GTK_WINDOW (aboutwindow), TRUE);

  return aboutwindow;
}

GtkWidget*
create_macroconfigwindow (void)
{
  GtkWidget *macroconfigwindow;
  GtkWidget *vbox2;
  GtkWidget *hbox7;
  GtkWidget *label5;
  GtkWidget *macroconfigentry;
  GtkWidget *macroconfigclear;
  GtkWidget *scrolledwindow3;
  GtkWidget *macroconfigtext;
  GtkWidget *hbox6;
  GtkWidget *macroconfigok;
  GtkWidget *macroconfigcancel;

  macroconfigwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (macroconfigwindow), "macroconfigwindow", macroconfigwindow);
  gtk_window_set_title (GTK_WINDOW (macroconfigwindow), "Macro configuration");

  vbox2 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox2);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "vbox2", vbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox2);
  gtk_container_add (GTK_CONTAINER (macroconfigwindow), vbox2);
  gtk_container_set_border_width (GTK_CONTAINER (vbox2), 4);

  hbox7 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox7);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "hbox7", hbox7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox7);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox7, FALSE, FALSE, 4);

  label5 = gtk_label_new ("Macro name");
  gtk_widget_ref (label5);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "label5", label5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label5);
  gtk_box_pack_start (GTK_BOX (hbox7), label5, FALSE, FALSE, 4);

  macroconfigentry = gtk_entry_new ();
  gtk_widget_ref (macroconfigentry);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "macroconfigentry", macroconfigentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macroconfigentry);
  gtk_box_pack_start (GTK_BOX (hbox7), macroconfigentry, TRUE, TRUE, 4);

  macroconfigclear = gtk_button_new_with_label ("Clear");
  gtk_widget_ref (macroconfigclear);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "macroconfigclear", macroconfigclear,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macroconfigclear);
  gtk_box_pack_start (GTK_BOX (hbox7), macroconfigclear, FALSE, FALSE, 4);

  scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow3);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "scrolledwindow3", scrolledwindow3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow3);
  gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow3, TRUE, TRUE, 4);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  macroconfigtext = gtk_text_new (NULL, NULL);
  gtk_widget_ref (macroconfigtext);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "macroconfigtext", macroconfigtext,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macroconfigtext);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3), macroconfigtext);
  gtk_widget_set_usize (macroconfigtext, 350, 200);
  gtk_text_set_editable (GTK_TEXT (macroconfigtext), TRUE);

  hbox6 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox6);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "hbox6", hbox6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox6);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox6, FALSE, TRUE, 0);

  macroconfigok = gnome_stock_button (GNOME_STOCK_BUTTON_OK);
  gtk_widget_ref (macroconfigok);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "macroconfigok", macroconfigok,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macroconfigok);
  gtk_box_pack_start (GTK_BOX (hbox6), macroconfigok, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (macroconfigok), 4);

  macroconfigcancel = gnome_stock_button (GNOME_STOCK_BUTTON_CANCEL);
  gtk_widget_ref (macroconfigcancel);
  gtk_object_set_data_full (GTK_OBJECT (macroconfigwindow), "macroconfigcancel", macroconfigcancel,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (macroconfigcancel);
  gtk_box_pack_start (GTK_BOX (hbox6), macroconfigcancel, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (macroconfigcancel), 4);

  gtk_signal_connect (GTK_OBJECT (macroconfigwindow), "delete_event",
                      GTK_SIGNAL_FUNC (on_macroconfigwindow_delete_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (macroconfigclear), "clicked",
                      GTK_SIGNAL_FUNC (on_macroconfigclear_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (macroconfigok), "clicked",
                      GTK_SIGNAL_FUNC (on_macroconfigok_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (macroconfigcancel), "clicked",
                      GTK_SIGNAL_FUNC (on_macroconfigcancel_clicked),
                      NULL);

  return macroconfigwindow;
}

GtkWidget*
create_propertybox (void)
{
  GtkWidget *propertybox;
  GtkWidget *notebook2;
  GtkWidget *vbox4;
  GtkWidget *frame1;
  GtkWidget *table2;
  GtkWidget *label9;
  GtkWidget *label12;
  GtkWidget *label13;
  GtkWidget *label10;
  GtkWidget *callentry;
  GtkWidget *nameentry;
  GtkWidget *qthentry;
  GtkWidget *locentry;
  GtkWidget *emailentry;
  GtkWidget *label11;
  GtkWidget *label6;
  GtkWidget *vbox12;
  GtkWidget *frame4;
  GtkWidget *table5;
  GtkWidget *afccheckbutton;
  GtkWidget *squelchcheckbutton;
  GtkWidget *hbox8;
  GtkObject *txoffsetspinbutton_adj;
  GtkWidget *txoffsetspinbutton;
  GtkWidget *label19;
  GtkWidget *hbox9;
  GtkObject *squelchspinbutton_adj;
  GtkWidget *squelchspinbutton;
  GtkWidget *label20;
  GtkWidget *frame13;
  GtkWidget *table8;
  GtkWidget *label44;
  GtkWidget *timeentry;
  GtkWidget *label46;
  GtkWidget *dateentry;
  GtkWidget *frame12;
  GtkWidget *qsobandsentry;
  GtkWidget *label43;
  GtkWidget *vbox3;
  GtkWidget *frame2;
  GtkWidget *table3;
  GtkWidget *txcolorpicker;
  GtkWidget *hlcolorpicker;
  GtkWidget *label16;
  GtkWidget *label15;
  GtkWidget *label14;
  GtkWidget *rxcolorpicker;
  GtkWidget *label29;
  GtkWidget *label30;
  GtkWidget *txwincolorpicker;
  GtkWidget *rxwincolorpicker;
  GtkWidget *frame3;
  GtkWidget *table4;
  GtkWidget *rxfontpicker;
  GtkWidget *txfontpicker;
  GtkWidget *label17;
  GtkWidget *label18;
  GtkWidget *label7;
  GtkWidget *hbox19;
  GtkWidget *frame8;
  GtkWidget *sensitivityscale;
  GtkWidget *frame11;
  GtkWidget *vbox11;
  GSList *winbutton_group = NULL;
  GtkWidget *rectradiobutton;
  GtkWidget *triaradiobutton;
  GtkWidget *hammradiobutton;
  GtkWidget *label33;
  GtkWidget *table7;
  GtkWidget *rttyshiftcombo;
  GList *rttyshiftcombo_items = NULL;
  GtkWidget *rttyshiftentry;
  GtkWidget *rttybaudcombo;
  GList *rttybaudcombo_items = NULL;
  GtkWidget *rttybaudentry;
  GtkWidget *parityoptionmenu;
  GtkWidget *parityoptionmenu_menu;
  GtkWidget *glade_menuitem;
  GtkWidget *stopoptionmenu;
  GtkWidget *stopoptionmenu_menu;
  GtkWidget *label35;
  GtkWidget *label36;
  GtkWidget *label37;
  GtkWidget *label38;
  GtkWidget *label39;
  GtkWidget *bitsoptionmenu;
  GtkWidget *bitsoptionmenu_menu;
  GtkWidget *label40;
  GtkWidget *reversecheckbutton;
  GtkWidget *label41;
  GtkWidget *msbcheckbutton;
  GtkWidget *label34;
  GtkWidget *vbox5;
  GtkWidget *frame5;
  GtkWidget *vbox6;
  GtkWidget *hbox14;
  GtkWidget *label28;
  GtkWidget *soundcombo;
  GList *soundcombo_items = NULL;
  GtkWidget *soundentry;
  GtkWidget *eightbitcheckbutton;
  GtkWidget *rwcheckbutton;
  GtkWidget *testcheckbutton;
  GtkWidget *label8;
  GtkWidget *frame6;
  GtkWidget *vbox7;
  GtkWidget *hbox15;
  GtkWidget *label32;
  GtkWidget *pttcombo;
  GList *pttcombo_items = NULL;
  GtkWidget *pttentry;
  GtkWidget *pttinvcheckbutton;
  GtkWidget *label31;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  propertybox = gnome_property_box_new ();
  gtk_object_set_data (GTK_OBJECT (propertybox), "propertybox", propertybox);
  gtk_window_set_policy (GTK_WINDOW (propertybox), FALSE, FALSE, FALSE);

  notebook2 = GNOME_PROPERTY_BOX (propertybox)->notebook;
  gtk_object_set_data (GTK_OBJECT (propertybox), "notebook2", notebook2);
  gtk_widget_show (notebook2);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox4);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox4", vbox4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox4);
  gtk_container_add (GTK_CONTAINER (notebook2), vbox4);

  frame1 = gtk_frame_new ("Station Information");
  gtk_widget_ref (frame1);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame1", frame1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame1);
  gtk_box_pack_start (GTK_BOX (vbox4), frame1, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame1), 4);

  table2 = gtk_table_new (5, 2, FALSE);
  gtk_widget_ref (table2);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "table2", table2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table2);
  gtk_container_add (GTK_CONTAINER (frame1), table2);

  label9 = gtk_label_new ("Callsign");
  gtk_widget_ref (label9);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label9", label9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label9);
  gtk_table_attach (GTK_TABLE (table2), label9, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_widget_set_usize (label9, 50, -2);
  gtk_misc_set_alignment (GTK_MISC (label9), 0, 0.5);

  label12 = gtk_label_new ("Locator");
  gtk_widget_ref (label12);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label12", label12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label12);
  gtk_table_attach (GTK_TABLE (table2), label12, 0, 1, 3, 4,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_widget_set_usize (label12, 50, -2);
  gtk_misc_set_alignment (GTK_MISC (label12), 7.45058e-09, 0.5);

  label13 = gtk_label_new ("E-mail");
  gtk_widget_ref (label13);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label13", label13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label13);
  gtk_table_attach (GTK_TABLE (table2), label13, 0, 1, 4, 5,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_widget_set_usize (label13, 50, -2);
  gtk_misc_set_alignment (GTK_MISC (label13), 7.45058e-09, 0.5);

  label10 = gtk_label_new ("Name");
  gtk_widget_ref (label10);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label10", label10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label10);
  gtk_table_attach (GTK_TABLE (table2), label10, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_widget_set_usize (label10, 50, -2);
  gtk_misc_set_alignment (GTK_MISC (label10), 7.45058e-09, 0.5);

  callentry = gtk_entry_new_with_max_length (63);
  gtk_widget_ref (callentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "callentry", callentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (callentry);
  gtk_table_attach (GTK_TABLE (table2), callentry, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);

  nameentry = gtk_entry_new_with_max_length (63);
  gtk_widget_ref (nameentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "nameentry", nameentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (nameentry);
  gtk_table_attach (GTK_TABLE (table2), nameentry, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);

  qthentry = gtk_entry_new_with_max_length (63);
  gtk_widget_ref (qthentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "qthentry", qthentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qthentry);
  gtk_table_attach (GTK_TABLE (table2), qthentry, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);

  locentry = gtk_entry_new_with_max_length (63);
  gtk_widget_ref (locentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "locentry", locentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (locentry);
  gtk_table_attach (GTK_TABLE (table2), locentry, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);

  emailentry = gtk_entry_new_with_max_length (63);
  gtk_widget_ref (emailentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "emailentry", emailentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (emailentry);
  gtk_table_attach (GTK_TABLE (table2), emailentry, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);

  label11 = gtk_label_new ("QTH");
  gtk_widget_ref (label11);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label11", label11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label11);
  gtk_table_attach (GTK_TABLE (table2), label11, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_widget_set_usize (label11, 50, -2);
  gtk_misc_set_alignment (GTK_MISC (label11), 7.45058e-09, 0.5);

  label6 = gtk_label_new ("Station");
  gtk_widget_ref (label6);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label6", label6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label6);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 0), label6);

  vbox12 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox12);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox12", vbox12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox12);
  gtk_container_add (GTK_CONTAINER (notebook2), vbox12);

  frame4 = gtk_frame_new ("Options");
  gtk_widget_ref (frame4);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame4", frame4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame4);
  gtk_box_pack_start (GTK_BOX (vbox12), frame4, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame4), 4);

  table5 = gtk_table_new (2, 2, TRUE);
  gtk_widget_ref (table5);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "table5", table5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table5);
  gtk_container_add (GTK_CONTAINER (frame4), table5);

  afccheckbutton = gtk_check_button_new_with_label ("AFC initially on");
  gtk_widget_ref (afccheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "afccheckbutton", afccheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (afccheckbutton);
  gtk_table_attach (GTK_TABLE (table5), afccheckbutton, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (afccheckbutton), 4);

  squelchcheckbutton = gtk_check_button_new_with_label ("SQUELCH initially on");
  gtk_widget_ref (squelchcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "squelchcheckbutton", squelchcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (squelchcheckbutton);
  gtk_table_attach (GTK_TABLE (table5), squelchcheckbutton, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (squelchcheckbutton), 4);

  hbox8 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox8);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hbox8", hbox8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox8);
  gtk_table_attach (GTK_TABLE (table5), hbox8, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  txoffsetspinbutton_adj = gtk_adjustment_new (0, -1000, 1000, 1, 10, 10);
  txoffsetspinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (txoffsetspinbutton_adj), 1, 1);
  gtk_widget_ref (txoffsetspinbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "txoffsetspinbutton", txoffsetspinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txoffsetspinbutton);
  gtk_box_pack_start (GTK_BOX (hbox8), txoffsetspinbutton, FALSE, FALSE, 4);
  gtk_widget_set_usize (txoffsetspinbutton, 80, -2);

  label19 = gtk_label_new ("TX offset frequency");
  gtk_widget_ref (label19);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label19", label19,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label19);
  gtk_box_pack_start (GTK_BOX (hbox8), label19, FALSE, FALSE, 4);

  hbox9 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox9);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hbox9", hbox9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox9);
  gtk_table_attach (GTK_TABLE (table5), hbox9, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  squelchspinbutton_adj = gtk_adjustment_new (15, 0, 100, 1, 10, 10);
  squelchspinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (squelchspinbutton_adj), 1, 1);
  gtk_widget_ref (squelchspinbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "squelchspinbutton", squelchspinbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (squelchspinbutton);
  gtk_box_pack_start (GTK_BOX (hbox9), squelchspinbutton, FALSE, FALSE, 4);
  gtk_widget_set_usize (squelchspinbutton, 80, -2);

  label20 = gtk_label_new ("Squelch level");
  gtk_widget_ref (label20);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label20", label20,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label20);
  gtk_box_pack_start (GTK_BOX (hbox9), label20, FALSE, FALSE, 4);

  frame13 = gtk_frame_new ("Date & time");
  gtk_widget_ref (frame13);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame13", frame13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame13);
  gtk_box_pack_start (GTK_BOX (vbox12), frame13, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame13), 4);

  table8 = gtk_table_new (2, 2, FALSE);
  gtk_widget_ref (table8);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "table8", table8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table8);
  gtk_container_add (GTK_CONTAINER (frame13), table8);

  label44 = gtk_label_new ("Time format string");
  gtk_widget_ref (label44);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label44", label44,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label44);
  gtk_table_attach (GTK_TABLE (table8), label44, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_misc_set_alignment (GTK_MISC (label44), 0, 0.5);

  timeentry = gtk_entry_new ();
  gtk_widget_ref (timeentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "timeentry", timeentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (timeentry);
  gtk_table_attach (GTK_TABLE (table8), timeentry, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_tooltips_set_tip (tooltips, timeentry, "See the strftime manual page for explanation of this field", NULL);

  label46 = gtk_label_new ("Date format string");
  gtk_widget_ref (label46);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label46", label46,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label46);
  gtk_table_attach (GTK_TABLE (table8), label46, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 4);
  gtk_misc_set_alignment (GTK_MISC (label46), 0, 0.5);

  dateentry = gtk_entry_new ();
  gtk_widget_ref (dateentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "dateentry", dateentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dateentry);
  gtk_table_attach (GTK_TABLE (table8), dateentry, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_tooltips_set_tip (tooltips, dateentry, "See the strftime manual page for explanation of this field", NULL);

  frame12 = gtk_frame_new ("QSO bands");
  gtk_widget_ref (frame12);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame12", frame12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame12);
  gtk_box_pack_start (GTK_BOX (vbox12), frame12, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame12), 4);

  qsobandsentry = gtk_entry_new ();
  gtk_widget_ref (qsobandsentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "qsobandsentry", qsobandsentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (qsobandsentry);
  gtk_container_add (GTK_CONTAINER (frame12), qsobandsentry);
  gtk_tooltips_set_tip (tooltips, qsobandsentry, "A comma separated list of bands you want to have in QSO data", NULL);

  label43 = gtk_label_new ("Misc");
  gtk_widget_ref (label43);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label43", label43,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label43);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 1), label43);

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox3);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox3", vbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox3);
  gtk_container_add (GTK_CONTAINER (notebook2), vbox3);

  frame2 = gtk_frame_new ("Colors");
  gtk_widget_ref (frame2);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame2", frame2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame2);
  gtk_box_pack_start (GTK_BOX (vbox3), frame2, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame2), 2);

  table3 = gtk_table_new (3, 4, FALSE);
  gtk_widget_ref (table3);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "table3", table3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table3);
  gtk_container_add (GTK_CONTAINER (frame2), table3);

  txcolorpicker = gnome_color_picker_new ();
  gtk_widget_ref (txcolorpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "txcolorpicker", txcolorpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txcolorpicker);
  gtk_table_attach (GTK_TABLE (table3), txcolorpicker, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 2);
  gnome_color_picker_set_title (GNOME_COLOR_PICKER (txcolorpicker), "Pick a color");

  hlcolorpicker = gnome_color_picker_new ();
  gtk_widget_ref (hlcolorpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hlcolorpicker", hlcolorpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hlcolorpicker);
  gtk_table_attach (GTK_TABLE (table3), hlcolorpicker, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 2);
  gnome_color_picker_set_title (GNOME_COLOR_PICKER (hlcolorpicker), "Pick a color");

  label16 = gtk_label_new ("HIghlighted text color");
  gtk_widget_ref (label16);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label16", label16,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label16);
  gtk_table_attach (GTK_TABLE (table3), label16, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label16), 7.45058e-09, 0.5);

  label15 = gtk_label_new ("Transmitted text color");
  gtk_widget_ref (label15);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label15", label15,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label15);
  gtk_table_attach (GTK_TABLE (table3), label15, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label15), 7.45058e-09, 0.5);

  label14 = gtk_label_new ("Received text color");
  gtk_widget_ref (label14);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label14", label14,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label14);
  gtk_table_attach (GTK_TABLE (table3), label14, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label14), 7.45058e-09, 0.5);

  rxcolorpicker = gnome_color_picker_new ();
  gtk_widget_ref (rxcolorpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rxcolorpicker", rxcolorpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxcolorpicker);
  gtk_table_attach (GTK_TABLE (table3), rxcolorpicker, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 2);
  gnome_color_picker_set_title (GNOME_COLOR_PICKER (rxcolorpicker), "Pick a color");

  label29 = gtk_label_new ("RX window background color");
  gtk_widget_ref (label29);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label29", label29,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label29);
  gtk_table_attach (GTK_TABLE (table3), label29, 3, 4, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label29), 0, 0.5);

  label30 = gtk_label_new ("TX window background color");
  gtk_widget_ref (label30);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label30", label30,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label30);
  gtk_table_attach (GTK_TABLE (table3), label30, 3, 4, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label30), 0, 0.5);

  txwincolorpicker = gnome_color_picker_new ();
  gtk_widget_ref (txwincolorpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "txwincolorpicker", txwincolorpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txwincolorpicker);
  gtk_table_attach (GTK_TABLE (table3), txwincolorpicker, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gnome_color_picker_set_title (GNOME_COLOR_PICKER (txwincolorpicker), "Pick a color");

  rxwincolorpicker = gnome_color_picker_new ();
  gtk_widget_ref (rxwincolorpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rxwincolorpicker", rxwincolorpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxwincolorpicker);
  gtk_table_attach (GTK_TABLE (table3), rxwincolorpicker, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gnome_color_picker_set_title (GNOME_COLOR_PICKER (rxwincolorpicker), "Pick a color");

  frame3 = gtk_frame_new ("Fonts");
  gtk_widget_ref (frame3);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame3", frame3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame3);
  gtk_box_pack_start (GTK_BOX (vbox3), frame3, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame3), 2);

  table4 = gtk_table_new (2, 2, FALSE);
  gtk_widget_ref (table4);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "table4", table4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table4);
  gtk_container_add (GTK_CONTAINER (frame3), table4);

  rxfontpicker = gnome_font_picker_new ();
  gtk_widget_ref (rxfontpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rxfontpicker", rxfontpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rxfontpicker);
  gtk_table_attach (GTK_TABLE (table4), rxfontpicker, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 2);
  gnome_font_picker_set_title (GNOME_FONT_PICKER (rxfontpicker), "Pick a Font");

  txfontpicker = gnome_font_picker_new ();
  gtk_widget_ref (txfontpicker);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "txfontpicker", txfontpicker,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (txfontpicker);
  gtk_table_attach (GTK_TABLE (table4), txfontpicker, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 4, 2);
  gnome_font_picker_set_title (GNOME_FONT_PICKER (txfontpicker), "Pick a Font");

  label17 = gtk_label_new ("Received text font");
  gtk_widget_ref (label17);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label17", label17,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label17);
  gtk_table_attach (GTK_TABLE (table4), label17, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label17), 7.45058e-09, 0.5);

  label18 = gtk_label_new ("Transmitted text font");
  gtk_widget_ref (label18);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label18", label18,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label18);
  gtk_table_attach (GTK_TABLE (table4), label18, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 4, 0);
  gtk_misc_set_alignment (GTK_MISC (label18), 7.45058e-09, 0.5);

  label7 = gtk_label_new ("Colors & Fonts");
  gtk_widget_ref (label7);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label7", label7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label7);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 2), label7);

  hbox19 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox19);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hbox19", hbox19,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox19);
  gtk_container_add (GTK_CONTAINER (notebook2), hbox19);

  frame8 = gtk_frame_new ("Sensitivity");
  gtk_widget_ref (frame8);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame8", frame8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame8);
  gtk_box_pack_start (GTK_BOX (hbox19), frame8, FALSE, FALSE, 0);
  gtk_widget_set_usize (frame8, 80, -2);
  gtk_container_set_border_width (GTK_CONTAINER (frame8), 2);

  sensitivityscale = gtk_vscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (50, 0, 100, 1, 10, 0)));
  gtk_widget_ref (sensitivityscale);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "sensitivityscale", sensitivityscale,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (sensitivityscale);
  gtk_container_add (GTK_CONTAINER (frame8), sensitivityscale);
  gtk_scale_set_digits (GTK_SCALE (sensitivityscale), 0);

  frame11 = gtk_frame_new ("Window function");
  gtk_widget_ref (frame11);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame11", frame11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame11);
  gtk_box_pack_start (GTK_BOX (hbox19), frame11, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame11), 2);

  vbox11 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox11);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox11", vbox11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox11);
  gtk_container_add (GTK_CONTAINER (frame11), vbox11);

  rectradiobutton = gtk_radio_button_new_with_label (winbutton_group, "Rectangular");
  winbutton_group = gtk_radio_button_group (GTK_RADIO_BUTTON (rectradiobutton));
  gtk_widget_ref (rectradiobutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rectradiobutton", rectradiobutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rectradiobutton);
  gtk_box_pack_start (GTK_BOX (vbox11), rectradiobutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (rectradiobutton), 4);

  triaradiobutton = gtk_radio_button_new_with_label (winbutton_group, "Triangular");
  winbutton_group = gtk_radio_button_group (GTK_RADIO_BUTTON (triaradiobutton));
  gtk_widget_ref (triaradiobutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "triaradiobutton", triaradiobutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (triaradiobutton);
  gtk_box_pack_start (GTK_BOX (vbox11), triaradiobutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (triaradiobutton), 4);

  hammradiobutton = gtk_radio_button_new_with_label (winbutton_group, "Hamming");
  winbutton_group = gtk_radio_button_group (GTK_RADIO_BUTTON (hammradiobutton));
  gtk_widget_ref (hammradiobutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hammradiobutton", hammradiobutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hammradiobutton);
  gtk_box_pack_start (GTK_BOX (vbox11), hammradiobutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hammradiobutton), 4);

  label33 = gtk_label_new ("Waterfall");
  gtk_widget_ref (label33);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label33", label33,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label33);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 3), label33);

  table7 = gtk_table_new (7, 2, FALSE);
  gtk_widget_ref (table7);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "table7", table7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table7);
  gtk_container_add (GTK_CONTAINER (notebook2), table7);

  rttyshiftcombo = gtk_combo_new ();
  gtk_widget_ref (rttyshiftcombo);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rttyshiftcombo", rttyshiftcombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rttyshiftcombo);
  gtk_table_attach (GTK_TABLE (table7), rttyshiftcombo, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (rttyshiftcombo), 2);
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "23");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "85");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "160");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "170");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "182");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "200");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "240");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "350");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "425");
  rttyshiftcombo_items = g_list_append (rttyshiftcombo_items, (gpointer) "850");
  gtk_combo_set_popdown_strings (GTK_COMBO (rttyshiftcombo), rttyshiftcombo_items);
  g_list_free (rttyshiftcombo_items);

  rttyshiftentry = GTK_COMBO (rttyshiftcombo)->entry;
  gtk_widget_ref (rttyshiftentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rttyshiftentry", rttyshiftentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rttyshiftentry);
  gtk_entry_set_text (GTK_ENTRY (rttyshiftentry), "23");

  rttybaudcombo = gtk_combo_new ();
  gtk_widget_ref (rttybaudcombo);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rttybaudcombo", rttybaudcombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rttybaudcombo);
  gtk_table_attach (GTK_TABLE (table7), rttybaudcombo, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (rttybaudcombo), 2);
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "45");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "45.45");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "50");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "56");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "75");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "100");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "110");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "150");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "200");
  rttybaudcombo_items = g_list_append (rttybaudcombo_items, (gpointer) "300");
  gtk_combo_set_popdown_strings (GTK_COMBO (rttybaudcombo), rttybaudcombo_items);
  g_list_free (rttybaudcombo_items);

  rttybaudentry = GTK_COMBO (rttybaudcombo)->entry;
  gtk_widget_ref (rttybaudentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rttybaudentry", rttybaudentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rttybaudentry);
  gtk_entry_set_text (GTK_ENTRY (rttybaudentry), "45");

  parityoptionmenu = gtk_option_menu_new ();
  gtk_widget_ref (parityoptionmenu);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "parityoptionmenu", parityoptionmenu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (parityoptionmenu);
  gtk_table_attach (GTK_TABLE (table7), parityoptionmenu, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (parityoptionmenu), 2);
  parityoptionmenu_menu = gtk_menu_new ();
  glade_menuitem = gtk_menu_item_new_with_label ("none");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (parityoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("even");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (parityoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("odd");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (parityoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("zero");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (parityoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("one");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (parityoptionmenu_menu), glade_menuitem);
  gtk_option_menu_set_menu (GTK_OPTION_MENU (parityoptionmenu), parityoptionmenu_menu);

  stopoptionmenu = gtk_option_menu_new ();
  gtk_widget_ref (stopoptionmenu);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "stopoptionmenu", stopoptionmenu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (stopoptionmenu);
  gtk_table_attach (GTK_TABLE (table7), stopoptionmenu, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (stopoptionmenu), 2);
  stopoptionmenu_menu = gtk_menu_new ();
  glade_menuitem = gtk_menu_item_new_with_label ("1");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (stopoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("1.5");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (stopoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("2");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (stopoptionmenu_menu), glade_menuitem);
  gtk_option_menu_set_menu (GTK_OPTION_MENU (stopoptionmenu), stopoptionmenu_menu);

  label35 = gtk_label_new ("Shift");
  gtk_widget_ref (label35);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label35", label35,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label35);
  gtk_table_attach (GTK_TABLE (table7), label35, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_widget_set_usize (label35, 70, -2);
  gtk_misc_set_alignment (GTK_MISC (label35), 0, 0.5);

  label36 = gtk_label_new ("Baudrate");
  gtk_widget_ref (label36);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label36", label36,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label36);
  gtk_table_attach (GTK_TABLE (table7), label36, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_misc_set_alignment (GTK_MISC (label36), 0, 0.5);

  label37 = gtk_label_new ("Bits");
  gtk_widget_ref (label37);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label37", label37,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label37);
  gtk_table_attach (GTK_TABLE (table7), label37, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_misc_set_alignment (GTK_MISC (label37), 0, 0.5);

  label38 = gtk_label_new ("Parity");
  gtk_widget_ref (label38);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label38", label38,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label38);
  gtk_table_attach (GTK_TABLE (table7), label38, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_misc_set_alignment (GTK_MISC (label38), 0, 0.5);

  label39 = gtk_label_new ("Stopbits");
  gtk_widget_ref (label39);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label39", label39,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label39);
  gtk_table_attach (GTK_TABLE (table7), label39, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_misc_set_alignment (GTK_MISC (label39), 0, 0.5);

  bitsoptionmenu = gtk_option_menu_new ();
  gtk_widget_ref (bitsoptionmenu);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "bitsoptionmenu", bitsoptionmenu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (bitsoptionmenu);
  gtk_table_attach (GTK_TABLE (table7), bitsoptionmenu, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_container_set_border_width (GTK_CONTAINER (bitsoptionmenu), 2);
  gtk_widget_set_events (bitsoptionmenu, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
  bitsoptionmenu_menu = gtk_menu_new ();
  glade_menuitem = gtk_menu_item_new_with_label ("5 (BAUDOT)");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (bitsoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("7 (ASCII)");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (bitsoptionmenu_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("8 (ASCII)");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (bitsoptionmenu_menu), glade_menuitem);
  gtk_option_menu_set_menu (GTK_OPTION_MENU (bitsoptionmenu), bitsoptionmenu_menu);

  label40 = gtk_label_new ("Reverse");
  gtk_widget_ref (label40);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label40", label40,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label40);
  gtk_table_attach (GTK_TABLE (table7), label40, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_misc_set_alignment (GTK_MISC (label40), 0, 0.5);

  reversecheckbutton = gtk_check_button_new_with_label ("");
  gtk_widget_ref (reversecheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "reversecheckbutton", reversecheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (reversecheckbutton);
  gtk_table_attach (GTK_TABLE (table7), reversecheckbutton, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_container_set_border_width (GTK_CONTAINER (reversecheckbutton), 2);
  gtk_tooltips_set_tip (tooltips, reversecheckbutton, "If tones should be reversed for RTTY", NULL);

  label41 = gtk_label_new ("MSB first");
  gtk_widget_ref (label41);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label41", label41,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label41);
  gtk_table_attach (GTK_TABLE (table7), label41, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_misc_set_alignment (GTK_MISC (label41), 0, 0.5);

  msbcheckbutton = gtk_check_button_new_with_label ("");
  gtk_widget_ref (msbcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "msbcheckbutton", msbcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (msbcheckbutton);
  gtk_table_attach (GTK_TABLE (table7), msbcheckbutton, 1, 2, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 2, 0);
  gtk_container_set_border_width (GTK_CONTAINER (msbcheckbutton), 2);
  gtk_tooltips_set_tip (tooltips, msbcheckbutton, "If most significant bit should the transmitted first", NULL);

  label34 = gtk_label_new ("RTTY");
  gtk_widget_ref (label34);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label34", label34,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label34);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 4), label34);

  vbox5 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox5);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox5", vbox5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox5);
  gtk_container_add (GTK_CONTAINER (notebook2), vbox5);

  frame5 = gtk_frame_new ("Sound settings");
  gtk_widget_ref (frame5);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame5", frame5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame5);
  gtk_box_pack_start (GTK_BOX (vbox5), frame5, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame5), 4);

  vbox6 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox6);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox6", vbox6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox6);
  gtk_container_add (GTK_CONTAINER (frame5), vbox6);

  hbox14 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox14);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hbox14", hbox14,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox14);
  gtk_box_pack_start (GTK_BOX (vbox6), hbox14, FALSE, FALSE, 0);

  label28 = gtk_label_new ("Sound card device");
  gtk_widget_ref (label28);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label28", label28,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label28);
  gtk_box_pack_start (GTK_BOX (hbox14), label28, FALSE, FALSE, 8);
  gtk_misc_set_alignment (GTK_MISC (label28), 0, 0.5);

  soundcombo = gtk_combo_new ();
  gtk_widget_ref (soundcombo);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "soundcombo", soundcombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (soundcombo);
  gtk_box_pack_start (GTK_BOX (hbox14), soundcombo, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (soundcombo), 8);
  soundcombo_items = g_list_append (soundcombo_items, (gpointer) "/dev/dsp");
  soundcombo_items = g_list_append (soundcombo_items, (gpointer) "/dev/dsp0");
  soundcombo_items = g_list_append (soundcombo_items, (gpointer) "/dev/dsp1");
  soundcombo_items = g_list_append (soundcombo_items, (gpointer) "/dev/dsp2");
  gtk_combo_set_popdown_strings (GTK_COMBO (soundcombo), soundcombo_items);
  g_list_free (soundcombo_items);

  soundentry = GTK_COMBO (soundcombo)->entry;
  gtk_widget_ref (soundentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "soundentry", soundentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (soundentry);

  eightbitcheckbutton = gtk_check_button_new_with_label ("8-bit sound I/O");
  gtk_widget_ref (eightbitcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "eightbitcheckbutton", eightbitcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eightbitcheckbutton);
  gtk_box_pack_start (GTK_BOX (vbox6), eightbitcheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (eightbitcheckbutton), 4);

  rwcheckbutton = gtk_check_button_new_with_label ("Full duplex mode (never use this!)");
  gtk_widget_ref (rwcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "rwcheckbutton", rwcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (rwcheckbutton);
  gtk_box_pack_start (GTK_BOX (vbox6), rwcheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (rwcheckbutton), 4);

  testcheckbutton = gtk_check_button_new_with_label ("Test mode (stdin/out)");
  gtk_widget_ref (testcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "testcheckbutton", testcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (testcheckbutton);
  gtk_box_pack_start (GTK_BOX (vbox6), testcheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (testcheckbutton), 4);

  label8 = gtk_label_new ("Sound");
  gtk_widget_ref (label8);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label8", label8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label8);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 5), label8);

  frame6 = gtk_frame_new ("PTT settings");
  gtk_widget_ref (frame6);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "frame6", frame6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frame6);
  gtk_container_add (GTK_CONTAINER (notebook2), frame6);
  gtk_container_set_border_width (GTK_CONTAINER (frame6), 4);

  vbox7 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox7);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "vbox7", vbox7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox7);
  gtk_container_add (GTK_CONTAINER (frame6), vbox7);

  hbox15 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox15);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "hbox15", hbox15,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox15);
  gtk_box_pack_start (GTK_BOX (vbox7), hbox15, FALSE, FALSE, 0);

  label32 = gtk_label_new ("PTT device");
  gtk_widget_ref (label32);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label32", label32,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label32);
  gtk_box_pack_start (GTK_BOX (hbox15), label32, FALSE, FALSE, 8);

  pttcombo = gtk_combo_new ();
  gtk_widget_ref (pttcombo);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "pttcombo", pttcombo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pttcombo);
  gtk_box_pack_start (GTK_BOX (hbox15), pttcombo, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (pttcombo), 8);
  pttcombo_items = g_list_append (pttcombo_items, (gpointer) "none");
  pttcombo_items = g_list_append (pttcombo_items, (gpointer) "/dev/ttyS0");
  pttcombo_items = g_list_append (pttcombo_items, (gpointer) "/dev/ttyS1");
  pttcombo_items = g_list_append (pttcombo_items, (gpointer) "/dev/ttyS2");
  pttcombo_items = g_list_append (pttcombo_items, (gpointer) "/dev/ttyS3");
  gtk_combo_set_popdown_strings (GTK_COMBO (pttcombo), pttcombo_items);
  g_list_free (pttcombo_items);

  pttentry = GTK_COMBO (pttcombo)->entry;
  gtk_widget_ref (pttentry);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "pttentry", pttentry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pttentry);

  pttinvcheckbutton = gtk_check_button_new_with_label ("Use inverted PTT logic");
  gtk_widget_ref (pttinvcheckbutton);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "pttinvcheckbutton", pttinvcheckbutton,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (pttinvcheckbutton);
  gtk_box_pack_start (GTK_BOX (vbox7), pttinvcheckbutton, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (pttinvcheckbutton), 4);

  label31 = gtk_label_new ("PTT");
  gtk_widget_ref (label31);
  gtk_object_set_data_full (GTK_OBJECT (propertybox), "label31", label31,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label31);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 6), label31);

  gtk_signal_connect (GTK_OBJECT (propertybox), "apply",
                      GTK_SIGNAL_FUNC (on_propertybox_apply),
                      NULL);

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

  return propertybox;
}

static GnomeUIInfo popupmenu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, "Callsign",
    NULL,
    (gpointer) on_callsign1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Name",
    NULL,
    (gpointer) on_name1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "QTH",
    NULL,
    (gpointer) on_qth1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Received RST",
    NULL,
    (gpointer) on_received_rst1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Sent RST",
    NULL,
    (gpointer) on_sent_rst1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Notes",
    NULL,
    (gpointer) on_notes1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, "Band",
    NULL,
    (gpointer) on_band1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

GtkWidget*
create_popupmenu (void)
{
  GtkWidget *popupmenu;

  popupmenu = gtk_menu_new ();
  gtk_object_set_data (GTK_OBJECT (popupmenu), "popupmenu", popupmenu);
  gnome_app_fill_menu (GTK_MENU_SHELL (popupmenu), popupmenu_uiinfo,
                       NULL, FALSE, 0);

  gtk_widget_ref (popupmenu_uiinfo[0].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "callsign1",
                            popupmenu_uiinfo[0].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (popupmenu_uiinfo[1].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "name1",
                            popupmenu_uiinfo[1].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (popupmenu_uiinfo[2].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "qth1",
                            popupmenu_uiinfo[2].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (popupmenu_uiinfo[3].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "received_rst1",
                            popupmenu_uiinfo[3].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (popupmenu_uiinfo[4].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "sent_rst1",
                            popupmenu_uiinfo[4].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (popupmenu_uiinfo[5].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "notes1",
                            popupmenu_uiinfo[5].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  gtk_widget_ref (popupmenu_uiinfo[6].widget);
  gtk_object_set_data_full (GTK_OBJECT (popupmenu), "band1",
                            popupmenu_uiinfo[6].widget,
                            (GtkDestroyNotify) gtk_widget_unref);

  return popupmenu;
}

GtkWidget*
create_txfileselection (void)
{
  GtkWidget *txfileselection;
  GtkWidget *txfileselect_ok_button;
  GtkWidget *txfileselect_cancel_button;

  txfileselection = gtk_file_selection_new ("Select File to Transmit");
  gtk_object_set_data (GTK_OBJECT (txfileselection), "txfileselection", txfileselection);
  gtk_container_set_border_width (GTK_CONTAINER (txfileselection), 10);

  txfileselect_ok_button = GTK_FILE_SELECTION (txfileselection)->ok_button;
  gtk_object_set_data (GTK_OBJECT (txfileselection), "txfileselect_ok_button", txfileselect_ok_button);
  gtk_widget_show (txfileselect_ok_button);
  GTK_WIDGET_SET_FLAGS (txfileselect_ok_button, GTK_CAN_DEFAULT);

  txfileselect_cancel_button = GTK_FILE_SELECTION (txfileselection)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (txfileselection), "txfileselect_cancel_button", txfileselect_cancel_button);
  gtk_widget_show (txfileselect_cancel_button);
  GTK_WIDGET_SET_FLAGS (txfileselect_cancel_button, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (txfileselection), "delete_event",
                      GTK_SIGNAL_FUNC (on_txfileselection_delete_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (txfileselect_ok_button), "clicked",
                      GTK_SIGNAL_FUNC (on_txfileselect_ok_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (txfileselect_cancel_button), "clicked",
                      GTK_SIGNAL_FUNC (on_txfileselect_cancel_button_clicked),
                      NULL);

  return txfileselection;
}

GtkWidget*
create_rxfileselection (void)
{
  GtkWidget *rxfileselection;
  GtkWidget *rxfileselect_ok_button;
  GtkWidget *rxfileselect_cancel_button;

  rxfileselection = gtk_file_selection_new ("Select File to Log into");
  gtk_object_set_data (GTK_OBJECT (rxfileselection), "rxfileselection", rxfileselection);
  gtk_container_set_border_width (GTK_CONTAINER (rxfileselection), 10);

  rxfileselect_ok_button = GTK_FILE_SELECTION (rxfileselection)->ok_button;
  gtk_object_set_data (GTK_OBJECT (rxfileselection), "rxfileselect_ok_button", rxfileselect_ok_button);
  gtk_widget_show (rxfileselect_ok_button);
  GTK_WIDGET_SET_FLAGS (rxfileselect_ok_button, GTK_CAN_DEFAULT);

  rxfileselect_cancel_button = GTK_FILE_SELECTION (rxfileselection)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (rxfileselection), "rxfileselect_cancel_button", rxfileselect_cancel_button);
  gtk_widget_show (rxfileselect_cancel_button);
  GTK_WIDGET_SET_FLAGS (rxfileselect_cancel_button, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (rxfileselection), "delete_event",
                      GTK_SIGNAL_FUNC (on_rxfileselection_delete_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rxfileselect_ok_button), "clicked",
                      GTK_SIGNAL_FUNC (on_rxfileselect_ok_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (rxfileselect_cancel_button), "clicked",
                      GTK_SIGNAL_FUNC (on_rxfileselect_cancel_button_clicked),
                      NULL);

  return rxfileselection;
}

