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

interface.c

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

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

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

#include <bonobo.h>
#include <gnome.h>

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

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
  g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  g_object_set_data (G_OBJECT (component), name, widget)

static GnomeUIInfo file1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Attachment"),
    NULL,
    (gpointer) on_attachment1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-file",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_MENU_CLOSE_ITEM (on_close1_activate, NULL),
  GNOMEUIINFO_END
};

static GnomeUIInfo sort_filter1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 1"),
    NULL,
    (gpointer) on_menu_set_priority_as_1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 2"),
    NULL,
    (gpointer) on_menu_set_priority_as_2_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 3"),
    NULL,
    (gpointer) on_menu_set_priority_as_3_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 4"),
    NULL,
    (gpointer) on_menu_set_priority_as_4_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set them as default"),
    NULL,
    (gpointer) on_menu_set_them_as_default_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set them invisible item"),
    NULL,
    (gpointer) on_menu_set_them_invisible_item_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("Show invisible items"),
    NULL,
    (gpointer) on_menu_show_invisible_items_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set all as default"),
    NULL,
    (gpointer) on_menu_set_all_as_default_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo edit1_menu_uiinfo[] =
{
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, NULL),
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_SUBTREE, N_("Sort filter"),
    N_("Set priority of entries"),
    sort_filter1_menu_uiinfo, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-sort-ascending",
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("User list view config"),
    N_("Set user list configurations."),
    (gpointer) on_menu_user_list_view_config_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-preferences",
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Save list headers state"),
    N_("Save current setting about user list."),
    (gpointer) on_menu_save_list_headers_state_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-apply",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("security configuration"),
    N_("Set security relevant configuration"),
    (gpointer) on_menu_security_configuration_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-preferences",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo update1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Update"),
    NULL,
    (gpointer) on_update2_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-refresh",
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("get version"),
    NULL,
    (gpointer) on_get_version1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-dialog-question",
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("get absence info"),
    NULL,
    (gpointer) on_absence_info1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-dialog-question",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

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

static GnomeUIInfo menubar1_uiinfo[] =
{
  GNOMEUIINFO_MENU_FILE_TREE (file1_menu_uiinfo),
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_MENU_SETTINGS_TREE (edit1_menu_uiinfo),
  GNOMEUIINFO_MENU_VIEW_TREE (update1_menu_uiinfo),
  GNOMEUIINFO_MENU_HELP_TREE (help1_menu_uiinfo),
  GNOMEUIINFO_END
};

GtkWidget*
create_messageWindow (void)
{
  GtkWidget *messageWindow;
  GdkPixbuf *messageWindow_icon_pixbuf;
  GtkWidget *bonobodock1;
  GtkWidget *vbox1;
  GtkWidget *vpaned1;
  GtkWidget *hbox21;
  GtkWidget *scrolledwindow13;
  GtkWidget *messageUserTree;
  GtkWidget *vbox17;
  GtkWidget *frame15;
  GtkWidget *alignment19;
  GtkWidget *messageWinUsersEntry;
  GtkWidget *messageWinUserNumFrameLabel;
  GtkWidget *messageWinUpdateBtn;
  GtkWidget *scrolledwindow11;
  GtkWidget *textview1;
  GtkWidget *hbox1;
  GtkWidget *messageWinCloseBtn;
  GtkWidget *sendBtn;
  GtkWidget *hbox20;
  GtkWidget *encloseCheckBtn;
  GtkWidget *lockChkBtn;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  messageWindow = gnome_app_new ("G2ipmsg", _("g2ipmsg"));
  gtk_widget_set_extension_events (messageWindow, GDK_EXTENSION_EVENTS_ALL);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (messageWindow), TRUE);
  messageWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (messageWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (messageWindow), messageWindow_icon_pixbuf);
      gdk_pixbuf_unref (messageWindow_icon_pixbuf);
    }

  bonobodock1 = GNOME_APP (messageWindow)->dock;
  gtk_widget_show (bonobodock1);

  gnome_app_create_menus (GNOME_APP (messageWindow), menubar1_uiinfo);

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox1);
  gnome_app_set_contents (GNOME_APP (messageWindow), vbox1);

  vpaned1 = gtk_vpaned_new ();
  gtk_widget_show (vpaned1);
  gtk_box_pack_start (GTK_BOX (vbox1), vpaned1, TRUE, TRUE, 0);
  gtk_paned_set_position (GTK_PANED (vpaned1), 134);

  hbox21 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox21);
  gtk_paned_pack1 (GTK_PANED (vpaned1), hbox21, TRUE, TRUE);

  scrolledwindow13 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow13);
  gtk_box_pack_start (GTK_BOX (hbox21), scrolledwindow13, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow13), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow13), GTK_SHADOW_IN);

  messageUserTree = gtk_tree_view_new ();
  gtk_widget_show (messageUserTree);
  gtk_container_add (GTK_CONTAINER (scrolledwindow13), messageUserTree);
  gtk_container_set_border_width (GTK_CONTAINER (messageUserTree), 2);
  gtk_tooltips_set_tip (tooltips, messageUserTree, _("Please select receivers or drop attachment files."), NULL);
  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (messageUserTree), TRUE);

  vbox17 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox17);
  gtk_box_pack_start (GTK_BOX (hbox21), vbox17, FALSE, FALSE, 4);

  frame15 = gtk_frame_new (NULL);
  gtk_widget_show (frame15);
  gtk_box_pack_start (GTK_BOX (vbox17), frame15, FALSE, FALSE, 0);
  gtk_widget_set_size_request (frame15, 40, 78);
  gtk_container_set_border_width (GTK_CONTAINER (frame15), 1);

  alignment19 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment19);
  gtk_container_add (GTK_CONTAINER (frame15), alignment19);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment19), 0, 0, 12, 0);

  messageWinUsersEntry = gtk_entry_new ();
  gtk_widget_show (messageWinUsersEntry);
  gtk_container_add (GTK_CONTAINER (alignment19), messageWinUsersEntry);
  gtk_tooltips_set_tip (tooltips, messageWinUsersEntry, _("current users"), NULL);
  gtk_editable_set_editable (GTK_EDITABLE (messageWinUsersEntry), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (messageWinUsersEntry), 8226);

  messageWinUserNumFrameLabel = gtk_label_new (_("<b>Users</b>"));
  gtk_widget_show (messageWinUserNumFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame15), messageWinUserNumFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (messageWinUserNumFrameLabel), TRUE);

  messageWinUpdateBtn = gtk_button_new_from_stock ("gtk-refresh");
  gtk_widget_show (messageWinUpdateBtn);
  gtk_box_pack_start (GTK_BOX (vbox17), messageWinUpdateBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, messageWinUpdateBtn, _("Please push this button to update the user list."), NULL);

  scrolledwindow11 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow11);
  gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow11, TRUE, TRUE);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow11), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow11), GTK_SHADOW_IN);

  textview1 = gtk_text_view_new ();
  gtk_widget_show (textview1);
  gtk_container_add (GTK_CONTAINER (scrolledwindow11), textview1);
  gtk_widget_set_size_request (textview1, -1, 120);
  gtk_tooltips_set_tip (tooltips, textview1, _("Please edit your message or drop attachment files."), NULL);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textview1), GTK_WRAP_CHAR);

  hbox1 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox1);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
  gtk_widget_set_size_request (hbox1, -1, 40);

  messageWinCloseBtn = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (messageWinCloseBtn);
  gtk_box_pack_start (GTK_BOX (hbox1), messageWinCloseBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, messageWinCloseBtn, _("Please push this button to close this window."), NULL);

  sendBtn = gtk_button_new_with_mnemonic (_("SEND"));
  gtk_widget_show (sendBtn);
  gtk_box_pack_start (GTK_BOX (hbox1), sendBtn, FALSE, FALSE, 0);
  gtk_widget_set_size_request (sendBtn, 80, -1);
  gtk_tooltips_set_tip (tooltips, sendBtn, _("Please push this button to send the message."), NULL);

  hbox20 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox20);
  gtk_box_pack_start (GTK_BOX (hbox1), hbox20, TRUE, TRUE, 0);

  encloseCheckBtn = gtk_check_button_new_with_mnemonic (_("enclose message"));
  gtk_widget_show (encloseCheckBtn);
  gtk_box_pack_start (GTK_BOX (hbox20), encloseCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, encloseCheckBtn, _("Check here to make this message sealed."), NULL);

  lockChkBtn = gtk_check_button_new_with_mnemonic (_("lock"));
  gtk_widget_show (lockChkBtn);
  gtk_box_pack_start (GTK_BOX (hbox20), lockChkBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, lockChkBtn, _("Check here to lock this message(need to enclose the message)."), NULL);

  g_signal_connect ((gpointer) messageWindow, "drag_data_received",
                    G_CALLBACK (on_app1_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) messageWindow, "destroy",
                    G_CALLBACK (on_app1_destroy),
                    NULL);
  g_signal_connect ((gpointer) messageWindow, "show",
                    G_CALLBACK (on_messageWindow_show),
                    NULL);
  g_signal_connect ((gpointer) messageWindow, "size_allocate",
                    G_CALLBACK (on_messageWindow_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) messageWindow, "key_release_event",
                    G_CALLBACK (on_messageWindow_key_release_event),
                    NULL);
  g_signal_connect ((gpointer) vpaned1, "drag_data_received",
                    G_CALLBACK (on_vpaned1_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) messageUserTree, "drag_data_received",
                    G_CALLBACK (on_messageUserTree_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) messageWinUpdateBtn, "clicked",
                    G_CALLBACK (on_messageWinUpdateBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) textview1, "drag_data_received",
                    G_CALLBACK (on_textview1_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) textview1, "button_press_event",
                    G_CALLBACK (on_textview1_button_press_event),
                    NULL);
  g_signal_connect ((gpointer) messageWinCloseBtn, "clicked",
                    G_CALLBACK (on_messageWinCloseBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) sendBtn, "clicked",
                    G_CALLBACK (on_sendBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) encloseCheckBtn, "toggled",
                    G_CALLBACK (on_encloseCheckBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) lockChkBtn, "toggled",
                    G_CALLBACK (on_lockChkBtn_toggled),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (messageWindow, messageWindow, "messageWindow");
  GLADE_HOOKUP_OBJECT (messageWindow, bonobodock1, "bonobodock1");
  GLADE_HOOKUP_OBJECT (messageWindow, menubar1_uiinfo[0].widget, "file1");
  GLADE_HOOKUP_OBJECT (messageWindow, file1_menu_uiinfo[0].widget, "attachment1");
  GLADE_HOOKUP_OBJECT (messageWindow, file1_menu_uiinfo[1].widget, "_______________1");
  GLADE_HOOKUP_OBJECT (messageWindow, file1_menu_uiinfo[2].widget, "__________c_1");
  GLADE_HOOKUP_OBJECT (messageWindow, menubar1_uiinfo[1].widget, "separator1");
  GLADE_HOOKUP_OBJECT (messageWindow, menubar1_uiinfo[2].widget, "edit1");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[0].widget, "separator3");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[1].widget, "preferences1");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[2].widget, "_______________4");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[3].widget, "sort_filter1");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[0].widget, "menu_set_priority_as_1");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[1].widget, "menu_set_priority_as_2");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[2].widget, "menu_set_priority_as_3");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[3].widget, "menu_set_priority_as_4");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[4].widget, "menu_set_them_as_default");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[5].widget, "menu_set_them_invisible_item");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[6].widget, "_______________5");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[7].widget, "menu_show_invisible_items");
  GLADE_HOOKUP_OBJECT (messageWindow, sort_filter1_menu_uiinfo[8].widget, "menu_set_all_as_default");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[4].widget, "menu_user_list_view_config");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[5].widget, "menu_save_list_headers_state");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[6].widget, "_______________6");
  GLADE_HOOKUP_OBJECT (messageWindow, edit1_menu_uiinfo[7].widget, "menu_security_configuration");
  GLADE_HOOKUP_OBJECT (messageWindow, menubar1_uiinfo[3].widget, "update1");
  GLADE_HOOKUP_OBJECT (messageWindow, update1_menu_uiinfo[0].widget, "update2");
  GLADE_HOOKUP_OBJECT (messageWindow, update1_menu_uiinfo[1].widget, "get_version1");
  GLADE_HOOKUP_OBJECT (messageWindow, update1_menu_uiinfo[2].widget, "absence_info1");
  GLADE_HOOKUP_OBJECT (messageWindow, menubar1_uiinfo[4].widget, "help1");
  GLADE_HOOKUP_OBJECT (messageWindow, help1_menu_uiinfo[0].widget, "about1");
  GLADE_HOOKUP_OBJECT (messageWindow, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (messageWindow, vpaned1, "vpaned1");
  GLADE_HOOKUP_OBJECT (messageWindow, hbox21, "hbox21");
  GLADE_HOOKUP_OBJECT (messageWindow, scrolledwindow13, "scrolledwindow13");
  GLADE_HOOKUP_OBJECT (messageWindow, messageUserTree, "messageUserTree");
  GLADE_HOOKUP_OBJECT (messageWindow, vbox17, "vbox17");
  GLADE_HOOKUP_OBJECT (messageWindow, frame15, "frame15");
  GLADE_HOOKUP_OBJECT (messageWindow, alignment19, "alignment19");
  GLADE_HOOKUP_OBJECT (messageWindow, messageWinUsersEntry, "messageWinUsersEntry");
  GLADE_HOOKUP_OBJECT (messageWindow, messageWinUserNumFrameLabel, "messageWinUserNumFrameLabel");
  GLADE_HOOKUP_OBJECT (messageWindow, messageWinUpdateBtn, "messageWinUpdateBtn");
  GLADE_HOOKUP_OBJECT (messageWindow, scrolledwindow11, "scrolledwindow11");
  GLADE_HOOKUP_OBJECT (messageWindow, textview1, "textview1");
  GLADE_HOOKUP_OBJECT (messageWindow, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (messageWindow, messageWinCloseBtn, "messageWinCloseBtn");
  GLADE_HOOKUP_OBJECT (messageWindow, sendBtn, "sendBtn");
  GLADE_HOOKUP_OBJECT (messageWindow, hbox20, "hbox20");
  GLADE_HOOKUP_OBJECT (messageWindow, encloseCheckBtn, "encloseCheckBtn");
  GLADE_HOOKUP_OBJECT (messageWindow, lockChkBtn, "lockChkBtn");
  GLADE_HOOKUP_OBJECT_NO_REF (messageWindow, tooltips, "tooltips");

  return messageWindow;
}

GtkWidget*
create_configWindow1 (void)
{
  GtkWidget *configWindow1;
  GdkPixbuf *configWindow1_icon_pixbuf;
  GtkWidget *vbox2;
  GtkWidget *hbox3;
  GtkWidget *frame1;
  GtkWidget *alignment1;
  GtkWidget *entry2;
  GtkWidget *configUserFrameLabel;
  GtkWidget *frame2;
  GtkWidget *alignment2;
  GtkWidget *hbox12;
  GtkWidget *comboboxentry1;
  GtkWidget *configWindowAddGroupBtn;
  GtkWidget *configGroupFrameLabel;
  GtkWidget *hbox4;
  GtkWidget *frame3;
  GtkWidget *alignment3;
  GtkWidget *vbox3;
  GtkWidget *configOpenCheckChkBtn;
  GtkWidget *configNonPopupCheckBtn;
  GtkWidget *configNoSoundCheckBtn;
  GtkWidget *configEncloseEnableCheckBtn;
  GtkWidget *configCitationCheckBtn;
  GtkWidget *configIPV6CheckBtn;
  GtkWidget *configDialUpCheckBtn;
  GtkWidget *configIconifyCheckBtn;
  GtkWidget *hbox28;
  GtkWidget *configEncodingLabel;
  GtkWidget *configEncodingComboBox;
  GtkWidget *configOptionLabel;
  GtkWidget *frame4;
  GtkWidget *alignment4;
  GtkWidget *table1;
  GtkWidget *logFileDialogBtn;
  GtkWidget *alignment6;
  GtkWidget *hbox6;
  GtkWidget *image1;
  GtkWidget *label6;
  GtkWidget *entry1;
  GtkWidget *enableLogToggle;
  GtkWidget *loggingOptionFrame;
  GtkWidget *alignment18;
  GtkWidget *vbox16;
  GtkWidget *loginNameLoggingToggle;
  GtkWidget *logIPAddrToggle;
  GtkWidget *logLockToggle;
  GtkWidget *logfileSubMenuLabel;
  GtkWidget *configLogFileFrameLabel;
  GtkWidget *frame5;
  GtkWidget *alignment5;
  GtkWidget *hbox7;
  GtkWidget *entry3;
  GtkWidget *vbuttonbox1;
  GtkWidget *configAddBcastBtn;
  GtkWidget *configRemoveBcastBtn;
  GtkWidget *scrolledwindow3;
  GtkWidget *treeview4;
  GtkWidget *configBcastFrameLabel;
  GtkWidget *hbox5;
  GtkWidget *configApplySettingBtn;
  GtkWidget *configCancelBtn;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  configWindow1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (configWindow1), _("configuration"));
  gtk_window_set_resizable (GTK_WINDOW (configWindow1), FALSE);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (configWindow1), TRUE);
  configWindow1_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (configWindow1_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (configWindow1), configWindow1_icon_pixbuf);
      gdk_pixbuf_unref (configWindow1_icon_pixbuf);
    }

  vbox2 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox2);
  gtk_container_add (GTK_CONTAINER (configWindow1), vbox2);

  hbox3 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox3);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox3, TRUE, TRUE, 1);

  frame1 = gtk_frame_new (NULL);
  gtk_widget_show (frame1);
  gtk_box_pack_start (GTK_BOX (hbox3), frame1, TRUE, TRUE, 0);

  alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment1);
  gtk_container_add (GTK_CONTAINER (frame1), alignment1);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0);

  entry2 = gtk_entry_new ();
  gtk_widget_show (entry2);
  gtk_container_add (GTK_CONTAINER (alignment1), entry2);
  gtk_tooltips_set_tip (tooltips, entry2, _("Enter your nick name."), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry2), 8226);

  configUserFrameLabel = gtk_label_new (_("<b>User Name</b>"));
  gtk_widget_show (configUserFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame1), configUserFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (configUserFrameLabel), TRUE);

  frame2 = gtk_frame_new (NULL);
  gtk_widget_show (frame2);
  gtk_box_pack_start (GTK_BOX (hbox3), frame2, TRUE, TRUE, 0);

  alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment2);
  gtk_container_add (GTK_CONTAINER (frame2), alignment2);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 0, 12, 0);

  hbox12 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox12);
  gtk_container_add (GTK_CONTAINER (alignment2), hbox12);

  comboboxentry1 = gtk_combo_box_entry_new_text ();
  gtk_widget_show (comboboxentry1);
  gtk_box_pack_start (GTK_BOX (hbox12), comboboxentry1, TRUE, TRUE, 0);

  configWindowAddGroupBtn = gtk_button_new_with_mnemonic (_("Add"));
  gtk_widget_show (configWindowAddGroupBtn);
  gtk_box_pack_start (GTK_BOX (hbox12), configWindowAddGroupBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configWindowAddGroupBtn, _("Please push here to add your group name."), NULL);

  configGroupFrameLabel = gtk_label_new (_("<b>Group Name</b>"));
  gtk_widget_show (configGroupFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame2), configGroupFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (configGroupFrameLabel), TRUE);

  hbox4 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox4);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox4, TRUE, TRUE, 0);

  frame3 = gtk_frame_new (NULL);
  gtk_widget_show (frame3);
  gtk_box_pack_start (GTK_BOX (hbox4), frame3, TRUE, TRUE, 0);

  alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment3);
  gtk_container_add (GTK_CONTAINER (frame3), alignment3);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment3), 0, 0, 12, 0);

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox3);
  gtk_container_add (GTK_CONTAINER (alignment3), vbox3);

  configOpenCheckChkBtn = gtk_check_button_new_with_mnemonic (_("enable open check"));
  gtk_widget_show (configOpenCheckChkBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configOpenCheckChkBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configOpenCheckChkBtn, _("Please check here to receive read notification from receiver."), NULL);

  configNonPopupCheckBtn = gtk_check_button_new_with_mnemonic (_("Non-popup receive"));
  gtk_widget_show (configNonPopupCheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configNonPopupCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configNonPopupCheckBtn, _("Refrain automatic popuped receive window creation."), NULL);

  configNoSoundCheckBtn = gtk_check_button_new_with_mnemonic (_("No sound"));
  gtk_widget_show (configNoSoundCheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configNoSoundCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configNoSoundCheckBtn, _("Please check here to refrain from playing sounds."), NULL);

  configEncloseEnableCheckBtn = gtk_check_button_new_with_mnemonic (_("check enclose message as default"));
  gtk_widget_show (configEncloseEnableCheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configEncloseEnableCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configEncloseEnableCheckBtn, _("Please check here if you want to send sealed messages as default."), NULL);

  configCitationCheckBtn = gtk_check_button_new_with_mnemonic (_("check citation as default"));
  gtk_widget_show (configCitationCheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configCitationCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configCitationCheckBtn, _("Please check here if you want to edit reply message with citation of original message."), NULL);

  configIPV6CheckBtn = gtk_check_button_new_with_mnemonic (_("enable IP V6 only mode (Need restart)"));
  gtk_widget_show (configIPV6CheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configIPV6CheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configIPV6CheckBtn, _("Please check here to use this software on the IP V6 environment."), NULL);

  configDialUpCheckBtn = gtk_check_button_new_with_mnemonic (_("enable dial up connection mode"));
  gtk_widget_show (configDialUpCheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configDialUpCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configDialUpCheckBtn, _("Please check here to use this software on the dial up environment."), NULL);

  configIconifyCheckBtn = gtk_check_button_new_with_mnemonic (_("iconfy read confirmation dialog"));
  gtk_widget_show (configIconifyCheckBtn);
  gtk_box_pack_start (GTK_BOX (vbox3), configIconifyCheckBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, configIconifyCheckBtn, _("Please check here to iconify read confirmation dialog window."), NULL);

  hbox28 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox28);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox28, TRUE, TRUE, 0);

  configEncodingLabel = gtk_label_new (_("External representation of IPMSG character code"));
  gtk_widget_show (configEncodingLabel);
  gtk_box_pack_start (GTK_BOX (hbox28), configEncodingLabel, FALSE, FALSE, 0);

  configEncodingComboBox = gtk_combo_box_new_text ();
  gtk_widget_show (configEncodingComboBox);
  gtk_box_pack_start (GTK_BOX (hbox28), configEncodingComboBox, TRUE, TRUE, 0);

  configOptionLabel = gtk_label_new (_("<b>Options</b>"));
  gtk_widget_show (configOptionLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame3), configOptionLabel);
  gtk_label_set_use_markup (GTK_LABEL (configOptionLabel), TRUE);

  frame4 = gtk_frame_new (NULL);
  gtk_widget_show (frame4);
  gtk_box_pack_start (GTK_BOX (hbox4), frame4, TRUE, TRUE, 0);

  alignment4 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment4);
  gtk_container_add (GTK_CONTAINER (frame4), alignment4);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment4), 0, 0, 12, 0);

  table1 = gtk_table_new (2, 2, FALSE);
  gtk_widget_show (table1);
  gtk_container_add (GTK_CONTAINER (alignment4), table1);

  logFileDialogBtn = gtk_button_new ();
  gtk_widget_show (logFileDialogBtn);
  gtk_table_attach (GTK_TABLE (table1), logFileDialogBtn, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, logFileDialogBtn, _("Please push this button to choose the log-file."), NULL);

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

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

  image1 = gtk_image_new_from_stock ("gtk-floppy", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image1);
  gtk_box_pack_start (GTK_BOX (hbox6), image1, FALSE, FALSE, 0);

  label6 = gtk_label_new_with_mnemonic (_("log file"));
  gtk_widget_show (label6);
  gtk_box_pack_start (GTK_BOX (hbox6), label6, FALSE, FALSE, 0);

  entry1 = gtk_entry_new ();
  gtk_widget_show (entry1);
  gtk_table_attach (GTK_TABLE (table1), entry1, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, entry1, _("This entry show log-file path, please edit here to specify your log-file path."), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry1), 8226);

  enableLogToggle = gtk_check_button_new_with_mnemonic (_("enable logging"));
  gtk_widget_show (enableLogToggle);
  gtk_table_attach (GTK_TABLE (table1), enableLogToggle, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, enableLogToggle, _("Please check here to enable logging facility."), NULL);

  loggingOptionFrame = gtk_frame_new (NULL);
  gtk_widget_show (loggingOptionFrame);
  gtk_table_attach (GTK_TABLE (table1), loggingOptionFrame, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  alignment18 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment18);
  gtk_container_add (GTK_CONTAINER (loggingOptionFrame), alignment18);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment18), 0, 0, 12, 0);

  vbox16 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox16);
  gtk_container_add (GTK_CONTAINER (alignment18), vbox16);

  loginNameLoggingToggle = gtk_check_button_new_with_mnemonic (_("logging logon name"));
  gtk_widget_show (loginNameLoggingToggle);
  gtk_box_pack_start (GTK_BOX (vbox16), loginNameLoggingToggle, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (loginNameLoggingToggle), 2);
  gtk_tooltips_set_tip (tooltips, loginNameLoggingToggle, _("Please check here to log user's logon name into the log-file."), NULL);

  logIPAddrToggle = gtk_check_button_new_with_mnemonic (_("logging IP Addresses"));
  gtk_widget_show (logIPAddrToggle);
  gtk_box_pack_start (GTK_BOX (vbox16), logIPAddrToggle, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (logIPAddrToggle), 2);
  gtk_tooltips_set_tip (tooltips, logIPAddrToggle, _("Please check here to log user's IP addresses into the log-file."), NULL);

  logLockToggle = gtk_check_button_new_with_mnemonic (_("logging locked messages after opening the message."));
  gtk_widget_show (logLockToggle);
  gtk_box_pack_start (GTK_BOX (vbox16), logLockToggle, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, logLockToggle, _("Please check here if you want to log the content of the message after the message is opened when the message is locked."), NULL);

  logfileSubMenuLabel = gtk_label_new (_("<b>Logging Option</b>"));
  gtk_widget_show (logfileSubMenuLabel);
  gtk_frame_set_label_widget (GTK_FRAME (loggingOptionFrame), logfileSubMenuLabel);
  gtk_label_set_use_markup (GTK_LABEL (logfileSubMenuLabel), TRUE);

  configLogFileFrameLabel = gtk_label_new (_("<b>Logfile</b>"));
  gtk_widget_show (configLogFileFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame4), configLogFileFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (configLogFileFrameLabel), TRUE);

  frame5 = gtk_frame_new (NULL);
  gtk_widget_show (frame5);
  gtk_box_pack_start (GTK_BOX (vbox2), frame5, TRUE, TRUE, 1);

  alignment5 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment5);
  gtk_container_add (GTK_CONTAINER (frame5), alignment5);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment5), 0, 0, 12, 0);

  hbox7 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox7);
  gtk_container_add (GTK_CONTAINER (alignment5), hbox7);

  entry3 = gtk_entry_new ();
  gtk_widget_show (entry3);
  gtk_box_pack_start (GTK_BOX (hbox7), entry3, TRUE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, entry3, _("Please input broad cast address."), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (entry3), 8226);

  vbuttonbox1 = gtk_vbutton_box_new ();
  gtk_widget_show (vbuttonbox1);
  gtk_box_pack_start (GTK_BOX (hbox7), vbuttonbox1, TRUE, FALSE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (vbuttonbox1), GTK_BUTTONBOX_SPREAD);

  configAddBcastBtn = gtk_button_new_with_mnemonic (_(">>"));
  gtk_widget_show (configAddBcastBtn);
  gtk_container_add (GTK_CONTAINER (vbuttonbox1), configAddBcastBtn);
  GTK_WIDGET_SET_FLAGS (configAddBcastBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, configAddBcastBtn, _("Please push this button to add the broad cast address to broad cast address list."), NULL);

  configRemoveBcastBtn = gtk_button_new_with_mnemonic (_("<<"));
  gtk_widget_show (configRemoveBcastBtn);
  gtk_container_add (GTK_CONTAINER (vbuttonbox1), configRemoveBcastBtn);
  GTK_WIDGET_SET_FLAGS (configRemoveBcastBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, configRemoveBcastBtn, _("Please push this button to remove the broad cast address from broad cast address list."), NULL);

  scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow3);
  gtk_box_pack_start (GTK_BOX (hbox7), scrolledwindow3, TRUE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow3), 1);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_SHADOW_IN);

  treeview4 = gtk_tree_view_new ();
  gtk_widget_show (treeview4);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3), treeview4);
  gtk_widget_set_size_request (treeview4, 200, 168);
  gtk_tooltips_set_tip (tooltips, treeview4, _("This list shows broad cast addresses for entry/absence status notification."), NULL);

  configBcastFrameLabel = gtk_label_new (_("<b>Broadcast address setting</b>"));
  gtk_widget_show (configBcastFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame5), configBcastFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (configBcastFrameLabel), TRUE);

  hbox5 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox5);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox5, TRUE, TRUE, 0);

  configApplySettingBtn = gtk_button_new_from_stock ("gtk-yes");
  gtk_widget_show (configApplySettingBtn);
  gtk_box_pack_start (GTK_BOX (hbox5), configApplySettingBtn, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, configApplySettingBtn, _("Please push this button to apply this configuration."), NULL);

  configCancelBtn = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (configCancelBtn);
  gtk_box_pack_start (GTK_BOX (hbox5), configCancelBtn, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, configCancelBtn, _("Please push this button to discard this configuration"), NULL);

  g_signal_connect ((gpointer) configWindow1, "destroy",
                    G_CALLBACK (on_configWindow_destroy),
                    NULL);
  g_signal_connect ((gpointer) configWindow1, "show",
                    G_CALLBACK (on_configWindow_show),
                    NULL);
  g_signal_connect ((gpointer) entry2, "activate",
                    G_CALLBACK (on_entry2_activate),
                    NULL);
  g_signal_connect ((gpointer) comboboxentry1, "editing_done",
                    G_CALLBACK (on_comboboxentry1_editing_done),
                    NULL);
  g_signal_connect ((gpointer) configWindowAddGroupBtn, "clicked",
                    G_CALLBACK (on_configWindowAddGroupBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configOpenCheckChkBtn, "toggled",
                    G_CALLBACK (on_configOpenCheckChkBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) configNonPopupCheckBtn, "toggled",
                    G_CALLBACK (on_configNonPopupCheckBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) configNoSoundCheckBtn, "toggled",
                    G_CALLBACK (on_configNoSoundCheckBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) configEncloseEnableCheckBtn, "toggled",
                    G_CALLBACK (on_configEncloseEnableCheckBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) configCitationCheckBtn, "toggled",
                    G_CALLBACK (on_configCitationCheckBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) configIPV6CheckBtn, "toggled",
                    G_CALLBACK (on_configIPV6CheckBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) logFileDialogBtn, "pressed",
                    G_CALLBACK (on_logFileDialogBtn_pressed),
                    NULL);
  g_signal_connect ((gpointer) logFileDialogBtn, "released",
                    G_CALLBACK (on_logFileDialogBtn_released),
                    NULL);
  g_signal_connect ((gpointer) logFileDialogBtn, "clicked",
                    G_CALLBACK (on_logFileDialogBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) entry1, "editing_done",
                    G_CALLBACK (on_entry1_editing_done),
                    NULL);
  g_signal_connect ((gpointer) entry1, "activate",
                    G_CALLBACK (on_entry1_activate),
                    NULL);
  g_signal_connect ((gpointer) enableLogToggle, "toggled",
                    G_CALLBACK (on_enableLogToggle_toggled),
                    NULL);
  g_signal_connect ((gpointer) entry3, "activate",
                    G_CALLBACK (on_entry3_activate),
                    NULL);
  g_signal_connect ((gpointer) entry3, "changed",
                    G_CALLBACK (on_entry3_changed),
                    NULL);
  g_signal_connect ((gpointer) configAddBcastBtn, "clicked",
                    G_CALLBACK (on_configAddBcastBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configRemoveBcastBtn, "pressed",
                    G_CALLBACK (on_configRemoveBcastBtn_pressed),
                    NULL);
  g_signal_connect ((gpointer) configRemoveBcastBtn, "released",
                    G_CALLBACK (on_configRemoveBcastBtn_released),
                    NULL);
  g_signal_connect ((gpointer) configRemoveBcastBtn, "clicked",
                    G_CALLBACK (on_configRemoveBcastBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configApplySettingBtn, "clicked",
                    G_CALLBACK (on_configApplySettingBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configApplySettingBtn, "pressed",
                    G_CALLBACK (on_configApplySettingBtn_pressed),
                    NULL);
  g_signal_connect ((gpointer) configApplySettingBtn, "released",
                    G_CALLBACK (on_configApplySettingBtn_released),
                    NULL);
  g_signal_connect ((gpointer) configCancelBtn, "pressed",
                    G_CALLBACK (on_configCancelBtn_pressed),
                    NULL);
  g_signal_connect ((gpointer) configCancelBtn, "released",
                    G_CALLBACK (on_configCancelBtn_released),
                    NULL);
  g_signal_connect ((gpointer) configCancelBtn, "clicked",
                    G_CALLBACK (on_configCancelBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (configWindow1, configWindow1, "configWindow1");
  GLADE_HOOKUP_OBJECT (configWindow1, vbox2, "vbox2");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox3, "hbox3");
  GLADE_HOOKUP_OBJECT (configWindow1, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment1, "alignment1");
  GLADE_HOOKUP_OBJECT (configWindow1, entry2, "entry2");
  GLADE_HOOKUP_OBJECT (configWindow1, configUserFrameLabel, "configUserFrameLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, frame2, "frame2");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox12, "hbox12");
  GLADE_HOOKUP_OBJECT (configWindow1, comboboxentry1, "comboboxentry1");
  GLADE_HOOKUP_OBJECT (configWindow1, configWindowAddGroupBtn, "configWindowAddGroupBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configGroupFrameLabel, "configGroupFrameLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox4, "hbox4");
  GLADE_HOOKUP_OBJECT (configWindow1, frame3, "frame3");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment3, "alignment3");
  GLADE_HOOKUP_OBJECT (configWindow1, vbox3, "vbox3");
  GLADE_HOOKUP_OBJECT (configWindow1, configOpenCheckChkBtn, "configOpenCheckChkBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configNonPopupCheckBtn, "configNonPopupCheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configNoSoundCheckBtn, "configNoSoundCheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configEncloseEnableCheckBtn, "configEncloseEnableCheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configCitationCheckBtn, "configCitationCheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configIPV6CheckBtn, "configIPV6CheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configDialUpCheckBtn, "configDialUpCheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configIconifyCheckBtn, "configIconifyCheckBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox28, "hbox28");
  GLADE_HOOKUP_OBJECT (configWindow1, configEncodingLabel, "configEncodingLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, configEncodingComboBox, "configEncodingComboBox");
  GLADE_HOOKUP_OBJECT (configWindow1, configOptionLabel, "configOptionLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, frame4, "frame4");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment4, "alignment4");
  GLADE_HOOKUP_OBJECT (configWindow1, table1, "table1");
  GLADE_HOOKUP_OBJECT (configWindow1, logFileDialogBtn, "logFileDialogBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment6, "alignment6");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox6, "hbox6");
  GLADE_HOOKUP_OBJECT (configWindow1, image1, "image1");
  GLADE_HOOKUP_OBJECT (configWindow1, label6, "label6");
  GLADE_HOOKUP_OBJECT (configWindow1, entry1, "entry1");
  GLADE_HOOKUP_OBJECT (configWindow1, enableLogToggle, "enableLogToggle");
  GLADE_HOOKUP_OBJECT (configWindow1, loggingOptionFrame, "loggingOptionFrame");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment18, "alignment18");
  GLADE_HOOKUP_OBJECT (configWindow1, vbox16, "vbox16");
  GLADE_HOOKUP_OBJECT (configWindow1, loginNameLoggingToggle, "loginNameLoggingToggle");
  GLADE_HOOKUP_OBJECT (configWindow1, logIPAddrToggle, "logIPAddrToggle");
  GLADE_HOOKUP_OBJECT (configWindow1, logLockToggle, "logLockToggle");
  GLADE_HOOKUP_OBJECT (configWindow1, logfileSubMenuLabel, "logfileSubMenuLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, configLogFileFrameLabel, "configLogFileFrameLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, frame5, "frame5");
  GLADE_HOOKUP_OBJECT (configWindow1, alignment5, "alignment5");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox7, "hbox7");
  GLADE_HOOKUP_OBJECT (configWindow1, entry3, "entry3");
  GLADE_HOOKUP_OBJECT (configWindow1, vbuttonbox1, "vbuttonbox1");
  GLADE_HOOKUP_OBJECT (configWindow1, configAddBcastBtn, "configAddBcastBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configRemoveBcastBtn, "configRemoveBcastBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, scrolledwindow3, "scrolledwindow3");
  GLADE_HOOKUP_OBJECT (configWindow1, treeview4, "treeview4");
  GLADE_HOOKUP_OBJECT (configWindow1, configBcastFrameLabel, "configBcastFrameLabel");
  GLADE_HOOKUP_OBJECT (configWindow1, hbox5, "hbox5");
  GLADE_HOOKUP_OBJECT (configWindow1, configApplySettingBtn, "configApplySettingBtn");
  GLADE_HOOKUP_OBJECT (configWindow1, configCancelBtn, "configCancelBtn");
  GLADE_HOOKUP_OBJECT_NO_REF (configWindow1, tooltips, "tooltips");

  return configWindow1;
}

GtkWidget*
create_initialWindow (void)
{
  GtkWidget *initialWindow;
  GdkPixbuf *initialWindow_icon_pixbuf;
  GtkWidget *bonobodock2;
  GtkWidget *startBtn;
  GtkWidget *image3;
  GtkWidget *appbar2;

  initialWindow = gnome_app_new ("G2ipmsg", _("g2ipmsg"));
  gtk_window_set_position (GTK_WINDOW (initialWindow), GTK_WIN_POS_CENTER);
  initialWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (initialWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (initialWindow), initialWindow_icon_pixbuf);
      gdk_pixbuf_unref (initialWindow_icon_pixbuf);
    }

  bonobodock2 = GNOME_APP (initialWindow)->dock;
  gtk_widget_show (bonobodock2);

  startBtn = gtk_button_new ();
  gtk_widget_show (startBtn);
  gnome_app_set_contents (GNOME_APP (initialWindow), startBtn);
  gtk_widget_set_size_request (startBtn, 34, 34);

  image3 = create_pixmap (initialWindow, "g2ipmsg/ipmsg.xpm");
  gtk_widget_show (image3);
  gtk_container_add (GTK_CONTAINER (startBtn), image3);

  appbar2 = gnome_appbar_new (TRUE, TRUE, GNOME_PREFERENCES_NEVER);
  gtk_widget_show (appbar2);
  gnome_app_set_statusbar (GNOME_APP (initialWindow), appbar2);

  g_signal_connect ((gpointer) initialWindow, "destroy",
                    G_CALLBACK (on_initialWindow_destroy),
                    NULL);
  g_signal_connect ((gpointer) initialWindow, "show",
                    G_CALLBACK (on_initialWindow_show),
                    NULL);
  g_signal_connect ((gpointer) initialWindow, "check_resize",
                    G_CALLBACK (on_initialWindow_check_resize),
                    NULL);
  g_signal_connect ((gpointer) initialWindow, "size_allocate",
                    G_CALLBACK (on_initialWindow_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) startBtn, "clicked",
                    G_CALLBACK (on_startBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (initialWindow, initialWindow, "initialWindow");
  GLADE_HOOKUP_OBJECT (initialWindow, bonobodock2, "bonobodock2");
  GLADE_HOOKUP_OBJECT (initialWindow, startBtn, "startBtn");
  GLADE_HOOKUP_OBJECT (initialWindow, image3, "image3");
  GLADE_HOOKUP_OBJECT (initialWindow, appbar2, "appbar2");

  return initialWindow;
}

GtkWidget*
create_downloadWindow (void)
{
  GtkWidget *downloadWindow;
  GdkPixbuf *downloadWindow_icon_pixbuf;
  GtkWidget *frame6;
  GtkWidget *alignment7;
  GtkWidget *viewport1;
  GtkWidget *fixed1;
  GtkWidget *DownLoadDirectoryEntry;
  GtkWidget *DownLoadDirectoryLabel;
  GtkWidget *DownLoadOpenBtn;
  GtkWidget *DownLoadOKBtn;
  GtkWidget *DownLoadCancelBtn;
  GtkWidget *scrolledwindow12;
  GtkWidget *DownLoadFileTree;
  GtkWidget *DownLoadAllCheckBtn;
  GtkWidget *downloadManagerFrameLabel;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  downloadWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_size_request (downloadWindow, 733, 395);
  gtk_window_set_title (GTK_WINDOW (downloadWindow), _("DownLoad"));
  gtk_window_set_resizable (GTK_WINDOW (downloadWindow), FALSE);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (downloadWindow), TRUE);
  downloadWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (downloadWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (downloadWindow), downloadWindow_icon_pixbuf);
      gdk_pixbuf_unref (downloadWindow_icon_pixbuf);
    }

  frame6 = gtk_frame_new (NULL);
  gtk_widget_show (frame6);
  gtk_container_add (GTK_CONTAINER (downloadWindow), frame6);
  gtk_frame_set_shadow_type (GTK_FRAME (frame6), GTK_SHADOW_NONE);

  alignment7 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment7);
  gtk_container_add (GTK_CONTAINER (frame6), alignment7);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment7), 0, 0, 12, 0);

  viewport1 = gtk_viewport_new (NULL, NULL);
  gtk_widget_show (viewport1);
  gtk_container_add (GTK_CONTAINER (alignment7), viewport1);

  fixed1 = gtk_fixed_new ();
  gtk_widget_show (fixed1);
  gtk_container_add (GTK_CONTAINER (viewport1), fixed1);

  DownLoadDirectoryEntry = gtk_entry_new ();
  gtk_widget_show (DownLoadDirectoryEntry);
  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadDirectoryEntry, 136, 320);
  gtk_widget_set_size_request (DownLoadDirectoryEntry, 288, 40);
  gtk_tooltips_set_tip (tooltips, DownLoadDirectoryEntry, _("This entry show where files are stored."), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (DownLoadDirectoryEntry), 8226);

  DownLoadDirectoryLabel = gtk_label_new (_("Down load directory"));
  gtk_widget_show (DownLoadDirectoryLabel);
  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadDirectoryLabel, 8, 288);
  gtk_widget_set_size_request (DownLoadDirectoryLabel, 232, 32);

  DownLoadOpenBtn = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (DownLoadOpenBtn);
  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadOpenBtn, 32, 320);
  gtk_widget_set_size_request (DownLoadOpenBtn, 96, 40);
  gtk_tooltips_set_tip (tooltips, DownLoadOpenBtn, _("Please push this button to choose download directory."), NULL);

  DownLoadOKBtn = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (DownLoadOKBtn);
  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadOKBtn, 448, 320);
  gtk_widget_set_size_request (DownLoadOKBtn, 104, 40);
  gtk_tooltips_set_tip (tooltips, DownLoadOKBtn, _("Please push this button to start downloads."), NULL);

  DownLoadCancelBtn = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (DownLoadCancelBtn);
  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadCancelBtn, 560, 320);
  gtk_widget_set_size_request (DownLoadCancelBtn, 144, 40);
  gtk_tooltips_set_tip (tooltips, DownLoadCancelBtn, _("Please push this button to discard download files."), NULL);

  scrolledwindow12 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow12);
  gtk_fixed_put (GTK_FIXED (fixed1), scrolledwindow12, 0, 0);
  gtk_widget_set_size_request (scrolledwindow12, 712, 248);

  DownLoadFileTree = gtk_tree_view_new ();
  gtk_widget_show (DownLoadFileTree);
  gtk_container_add (GTK_CONTAINER (scrolledwindow12), DownLoadFileTree);
  gtk_widget_set_size_request (DownLoadFileTree, 680, 256);
  gtk_tooltips_set_tip (tooltips, DownLoadFileTree, _("Please select files to be saved."), NULL);

  DownLoadAllCheckBtn = gtk_check_button_new_with_mnemonic (_("down load all at once"));
  gtk_widget_show (DownLoadAllCheckBtn);
  gtk_fixed_put (GTK_FIXED (fixed1), DownLoadAllCheckBtn, 8, 264);
  gtk_widget_set_size_request (DownLoadAllCheckBtn, 216, 24);
  gtk_tooltips_set_tip (tooltips, DownLoadAllCheckBtn, _("Please check here if you want to download all of selected files at once."), NULL);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (DownLoadAllCheckBtn), TRUE);

  downloadManagerFrameLabel = gtk_label_new (_("<b>DownLoad files</b>"));
  gtk_widget_show (downloadManagerFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame6), downloadManagerFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (downloadManagerFrameLabel), TRUE);

  g_signal_connect ((gpointer) downloadWindow, "destroy",
                    G_CALLBACK (on_downloadWindow_destroy),
                    NULL);
  g_signal_connect ((gpointer) downloadWindow, "check_resize",
                    G_CALLBACK (on_downloadWindow_check_resize),
                    NULL);
  g_signal_connect ((gpointer) downloadWindow, "size_allocate",
                    G_CALLBACK (on_downloadWindow_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) DownLoadOpenBtn, "clicked",
                    G_CALLBACK (on_DownLoadOpenBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) DownLoadOKBtn, "clicked",
                    G_CALLBACK (on_DownLoadOKBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) DownLoadCancelBtn, "clicked",
                    G_CALLBACK (on_DownLoadCancelBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (downloadWindow, downloadWindow, "downloadWindow");
  GLADE_HOOKUP_OBJECT (downloadWindow, frame6, "frame6");
  GLADE_HOOKUP_OBJECT (downloadWindow, alignment7, "alignment7");
  GLADE_HOOKUP_OBJECT (downloadWindow, viewport1, "viewport1");
  GLADE_HOOKUP_OBJECT (downloadWindow, fixed1, "fixed1");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadDirectoryEntry, "DownLoadDirectoryEntry");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadDirectoryLabel, "DownLoadDirectoryLabel");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadOpenBtn, "DownLoadOpenBtn");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadOKBtn, "DownLoadOKBtn");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadCancelBtn, "DownLoadCancelBtn");
  GLADE_HOOKUP_OBJECT (downloadWindow, scrolledwindow12, "scrolledwindow12");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadFileTree, "DownLoadFileTree");
  GLADE_HOOKUP_OBJECT (downloadWindow, DownLoadAllCheckBtn, "DownLoadAllCheckBtn");
  GLADE_HOOKUP_OBJECT (downloadWindow, downloadManagerFrameLabel, "downloadManagerFrameLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadWindow, tooltips, "tooltips");

  return downloadWindow;
}

GtkWidget*
create_downloadDialog (void)
{
  GtkWidget *downloadDialog;
  GdkPixbuf *downloadDialog_icon_pixbuf;
  GtkWidget *dialog_vbox1;
  GtkWidget *scrolledwindow5;
  GtkWidget *treeview2;
  GtkWidget *dialog_action_area1;
  GtkWidget *downloadDialogSaveBtn;
  GtkWidget *downloadDialogCloseBtn;

  downloadDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (downloadDialog), _("download dialog"));
  gtk_window_set_modal (GTK_WINDOW (downloadDialog), TRUE);
  downloadDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (downloadDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (downloadDialog), downloadDialog_icon_pixbuf);
      gdk_pixbuf_unref (downloadDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (downloadDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

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

  scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow5);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), scrolledwindow5, TRUE, TRUE, 0);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);

  treeview2 = gtk_tree_view_new ();
  gtk_widget_show (treeview2);
  gtk_container_add (GTK_CONTAINER (scrolledwindow5), treeview2);

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

  downloadDialogSaveBtn = gtk_button_new_from_stock ("gtk-save");
  gtk_widget_show (downloadDialogSaveBtn);
  gtk_dialog_add_action_widget (GTK_DIALOG (downloadDialog), downloadDialogSaveBtn, 0);
  GTK_WIDGET_SET_FLAGS (downloadDialogSaveBtn, GTK_CAN_DEFAULT);

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

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (downloadDialog, downloadDialog, "downloadDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadDialog, dialog_vbox1, "dialog_vbox1");
  GLADE_HOOKUP_OBJECT (downloadDialog, scrolledwindow5, "scrolledwindow5");
  GLADE_HOOKUP_OBJECT (downloadDialog, treeview2, "treeview2");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadDialog, dialog_action_area1, "dialog_action_area1");
  GLADE_HOOKUP_OBJECT (downloadDialog, downloadDialogSaveBtn, "downloadDialogSaveBtn");
  GLADE_HOOKUP_OBJECT (downloadDialog, downloadDialogCloseBtn, "downloadDialogCloseBtn");

  return downloadDialog;
}

GtkWidget*
create_downloadfilechooserdialog (void)
{
  GtkWidget *downloadfilechooserdialog;
  GdkPixbuf *downloadfilechooserdialog_icon_pixbuf;
  GtkWidget *dialog_vbox2;
  GtkWidget *dialog_action_area2;
  GtkWidget *button3;
  GtkWidget *button4;

  downloadfilechooserdialog = gtk_file_chooser_dialog_new (_("save down loaded file"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL);
  gtk_container_set_border_width (GTK_CONTAINER (downloadfilechooserdialog), 5);
  gtk_window_set_modal (GTK_WINDOW (downloadfilechooserdialog), TRUE);
  downloadfilechooserdialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (downloadfilechooserdialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (downloadfilechooserdialog), downloadfilechooserdialog_icon_pixbuf);
      gdk_pixbuf_unref (downloadfilechooserdialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (downloadfilechooserdialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox2 = GTK_DIALOG (downloadfilechooserdialog)->vbox;
  gtk_widget_show (dialog_vbox2);

  dialog_action_area2 = GTK_DIALOG (downloadfilechooserdialog)->action_area;
  gtk_widget_show (dialog_action_area2);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);

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

  button4 = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (button4);
  gtk_dialog_add_action_widget (GTK_DIALOG (downloadfilechooserdialog), button4, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (button4, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) downloadfilechooserdialog, "destroy",
                    G_CALLBACK (on_downloadfilechooserdialog_destroy),
                    NULL);
  g_signal_connect ((gpointer) downloadfilechooserdialog, "confirm_overwrite",
                    G_CALLBACK (on_downloadfilechooserdialog_confirm_overwrite),
                    NULL);
  g_signal_connect ((gpointer) downloadfilechooserdialog, "current_folder_changed",
                    G_CALLBACK (on_downloadfilechooserdialog_current_folder_changed),
                    NULL);
  g_signal_connect ((gpointer) downloadfilechooserdialog, "file_activated",
                    G_CALLBACK (on_downloadfilechooserdialog_file_activated),
                    NULL);
  g_signal_connect ((gpointer) downloadfilechooserdialog, "update_preview",
                    G_CALLBACK (on_downloadfilechooserdialog_update_preview),
                    NULL);
  g_signal_connect ((gpointer) downloadfilechooserdialog, "close",
                    G_CALLBACK (on_downloadfilechooserdialog_close),
                    NULL);
  g_signal_connect ((gpointer) downloadfilechooserdialog, "response",
                    G_CALLBACK (on_downloadfilechooserdialog_response),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (downloadfilechooserdialog, downloadfilechooserdialog, "downloadfilechooserdialog");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadfilechooserdialog, dialog_vbox2, "dialog_vbox2");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadfilechooserdialog, dialog_action_area2, "dialog_action_area2");
  GLADE_HOOKUP_OBJECT (downloadfilechooserdialog, button3, "button3");
  GLADE_HOOKUP_OBJECT (downloadfilechooserdialog, button4, "button4");

  gtk_widget_grab_default (button4);
  return downloadfilechooserdialog;
}

GtkWidget*
create_logfileChooserdialog (void)
{
  GtkWidget *logfileChooserdialog;
  GdkPixbuf *logfileChooserdialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *dialog_action_area3;
  GtkWidget *button5;
  GtkWidget *button6;

  logfileChooserdialog = gtk_file_chooser_dialog_new (_("LogFile"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL);
  gtk_container_set_border_width (GTK_CONTAINER (logfileChooserdialog), 5);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (logfileChooserdialog), TRUE);
  logfileChooserdialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (logfileChooserdialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (logfileChooserdialog), logfileChooserdialog_icon_pixbuf);
      gdk_pixbuf_unref (logfileChooserdialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (logfileChooserdialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox3 = GTK_DIALOG (logfileChooserdialog)->vbox;
  gtk_widget_show (dialog_vbox3);

  dialog_action_area3 = GTK_DIALOG (logfileChooserdialog)->action_area;
  gtk_widget_show (dialog_action_area3);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END);

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

  button6 = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (button6);
  gtk_dialog_add_action_widget (GTK_DIALOG (logfileChooserdialog), button6, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (logfileChooserdialog, logfileChooserdialog, "logfileChooserdialog");
  GLADE_HOOKUP_OBJECT_NO_REF (logfileChooserdialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT_NO_REF (logfileChooserdialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (logfileChooserdialog, button5, "button5");
  GLADE_HOOKUP_OBJECT (logfileChooserdialog, button6, "button6");

  gtk_widget_grab_default (button6);
  return logfileChooserdialog;
}

GtkWidget*
create_aboutdialog (void)
{
  GtkWidget *aboutdialog;
  const gchar *authors[] = {
    "Takeharu KATO",
    NULL
  };
  /* TRANSLATORS: Replace this string with your names, one name per line. */
  gchar *translators = "ZC Miao\n";
  GdkPixbuf *aboutdialog_logo_pixbuf;

  aboutdialog = gtk_about_dialog_new ();
  gtk_container_set_border_width (GTK_CONTAINER (aboutdialog), 1);
  gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (aboutdialog), VERSION);
  gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (aboutdialog), _("G2ipmsg"));
  gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (aboutdialog), _("Takeharu KATO"));
  gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (aboutdialog), _("Copyright (c)  2008, Takeharu KATO\nAll rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n \n THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGE."));
  gtk_about_dialog_set_wrap_license (GTK_ABOUT_DIALOG (aboutdialog), TRUE);
  gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (aboutdialog), authors);
  gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (aboutdialog), translators);
  aboutdialog_logo_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (aboutdialog), aboutdialog_logo_pixbuf);

  g_signal_connect ((gpointer) aboutdialog, "destroy",
                    G_CALLBACK (on_aboutdialog_destroy),
                    NULL);
  g_signal_connect ((gpointer) aboutdialog, "close",
                    G_CALLBACK (on_aboutdialog_close),
                    NULL);
  g_signal_connect ((gpointer) aboutdialog, "response",
                    G_CALLBACK (on_aboutdialog_response),
                    NULL);
  g_signal_connect ((gpointer) aboutdialog, "check_resize",
                    G_CALLBACK (on_aboutdialog_check_resize),
                    NULL);
  g_signal_connect ((gpointer) aboutdialog, "size_allocate",
                    G_CALLBACK (on_aboutdialog_size_allocate),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (aboutdialog, aboutdialog, "aboutdialog");

  return aboutdialog;
}

GtkWidget*
create_readNotifyDialog (void)
{
  GtkWidget *readNotifyDialog;
  GdkPixbuf *readNotifyDialog_icon_pixbuf;
  GtkWidget *dialog_vbox4;
  GtkWidget *vbox4;
  GtkWidget *readNotifyTitleLabel;
  GtkWidget *readNotifyDialogUserGroupLabel;
  GtkWidget *readNotifyLogonIPAddrLabel;
  GtkWidget *dialog_action_area4;
  GtkWidget *readNotifyDialogOKBtn;

  readNotifyDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (readNotifyDialog), _("Read Message"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (readNotifyDialog), TRUE);
  readNotifyDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (readNotifyDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (readNotifyDialog), readNotifyDialog_icon_pixbuf);
      gdk_pixbuf_unref (readNotifyDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (readNotifyDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox4 = GTK_DIALOG (readNotifyDialog)->vbox;
  gtk_widget_show (dialog_vbox4);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox4);
  gtk_box_pack_start (GTK_BOX (dialog_vbox4), vbox4, TRUE, TRUE, 0);

  readNotifyTitleLabel = gtk_label_new (_("Read Message"));
  gtk_widget_show (readNotifyTitleLabel);
  gtk_box_pack_start (GTK_BOX (vbox4), readNotifyTitleLabel, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (readNotifyTitleLabel), GTK_JUSTIFY_CENTER);

  readNotifyDialogUserGroupLabel = gtk_label_new ("");
  gtk_widget_show (readNotifyDialogUserGroupLabel);
  gtk_box_pack_start (GTK_BOX (vbox4), readNotifyDialogUserGroupLabel, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (readNotifyDialogUserGroupLabel), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (readNotifyDialogUserGroupLabel), TRUE);

  readNotifyLogonIPAddrLabel = gtk_label_new ("");
  gtk_widget_show (readNotifyLogonIPAddrLabel);
  gtk_box_pack_start (GTK_BOX (vbox4), readNotifyLogonIPAddrLabel, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (readNotifyLogonIPAddrLabel), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (readNotifyLogonIPAddrLabel), TRUE);

  dialog_action_area4 = GTK_DIALOG (readNotifyDialog)->action_area;
  gtk_widget_show (dialog_action_area4);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END);

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

  g_signal_connect ((gpointer) readNotifyDialog, "close",
                    G_CALLBACK (on_readNotifyDialog_close),
                    NULL);
  g_signal_connect ((gpointer) readNotifyDialog, "response",
                    G_CALLBACK (on_readNotifyDialog_response),
                    NULL);
  g_signal_connect ((gpointer) readNotifyDialog, "destroy",
                    G_CALLBACK (on_readNotifyDialog_destroy),
                    NULL);
  g_signal_connect ((gpointer) readNotifyDialog, "window_state_event",
                    G_CALLBACK (on_readNotifyDialog_window_state_event),
                    NULL);
  g_signal_connect ((gpointer) readNotifyDialogOKBtn, "pressed",
                    G_CALLBACK (on_readNotifyDialogOKBtn_pressed),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (readNotifyDialog, readNotifyDialog, "readNotifyDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (readNotifyDialog, dialog_vbox4, "dialog_vbox4");
  GLADE_HOOKUP_OBJECT (readNotifyDialog, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (readNotifyDialog, readNotifyTitleLabel, "readNotifyTitleLabel");
  GLADE_HOOKUP_OBJECT (readNotifyDialog, readNotifyDialogUserGroupLabel, "readNotifyDialogUserGroupLabel");
  GLADE_HOOKUP_OBJECT (readNotifyDialog, readNotifyLogonIPAddrLabel, "readNotifyLogonIPAddrLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (readNotifyDialog, dialog_action_area4, "dialog_action_area4");
  GLADE_HOOKUP_OBJECT (readNotifyDialog, readNotifyDialogOKBtn, "readNotifyDialogOKBtn");

  return readNotifyDialog;
}

GtkWidget*
create_viewWindow (void)
{
  GtkWidget *viewWindow;
  GdkPixbuf *viewWindow_icon_pixbuf;
  GtkWidget *vbox5;
  GtkWidget *frame7;
  GtkWidget *alignment8;
  GtkWidget *vbox6;
  GtkWidget *viewwindowUserInfoLabel;
  GtkWidget *viewwindowDateLabel;
  GtkWidget *viewwindowFrameLabel;
  GtkWidget *scrolledwindow6;
  GtkWidget *viewwindowTextView;
  GtkWidget *hbox10;
  GtkWidget *viewwindowCloseBtn;
  GtkWidget *viewwindowReplyBtn;
  GtkWidget *alignment9;
  GtkWidget *hbox11;
  GtkWidget *image9;
  GtkWidget *label10;
  GtkWidget *viewWinOptionHbox;
  GtkWidget *viewwindowCitationCheck;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  viewWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (viewWindow), _("Receive message"));
  viewWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (viewWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (viewWindow), viewWindow_icon_pixbuf);
      gdk_pixbuf_unref (viewWindow_icon_pixbuf);
    }

  vbox5 = gtk_vbox_new (FALSE, 2);
  gtk_widget_show (vbox5);
  gtk_container_add (GTK_CONTAINER (viewWindow), vbox5);

  frame7 = gtk_frame_new (NULL);
  gtk_widget_show (frame7);
  gtk_box_pack_start (GTK_BOX (vbox5), frame7, FALSE, FALSE, 0);

  alignment8 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment8);
  gtk_container_add (GTK_CONTAINER (frame7), alignment8);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment8), 0, 0, 12, 0);

  vbox6 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox6);
  gtk_container_add (GTK_CONTAINER (alignment8), vbox6);

  viewwindowUserInfoLabel = gtk_label_new ("");
  gtk_widget_show (viewwindowUserInfoLabel);
  gtk_box_pack_start (GTK_BOX (vbox6), viewwindowUserInfoLabel, TRUE, TRUE, 0);
  gtk_widget_set_size_request (viewwindowUserInfoLabel, -1, 35);

  viewwindowDateLabel = gtk_label_new ("");
  gtk_widget_show (viewwindowDateLabel);
  gtk_box_pack_start (GTK_BOX (vbox6), viewwindowDateLabel, TRUE, TRUE, 0);
  gtk_widget_set_size_request (viewwindowDateLabel, -1, 25);

  viewwindowFrameLabel = gtk_label_new (_("<b>Message from ...</b>"));
  gtk_widget_show (viewwindowFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame7), viewwindowFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (viewwindowFrameLabel), TRUE);

  scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow6);
  gtk_box_pack_start (GTK_BOX (vbox5), scrolledwindow6, TRUE, TRUE, 0);
  gtk_widget_set_size_request (scrolledwindow6, 340, 200);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_SHADOW_IN);

  viewwindowTextView = gtk_text_view_new ();
  gtk_widget_show (viewwindowTextView);
  gtk_container_add (GTK_CONTAINER (scrolledwindow6), viewwindowTextView);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (viewwindowTextView), FALSE);
  gtk_text_view_set_accepts_tab (GTK_TEXT_VIEW (viewwindowTextView), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (viewwindowTextView), GTK_WRAP_CHAR);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (viewwindowTextView), FALSE);

  hbox10 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox10);
  gtk_box_pack_start (GTK_BOX (vbox5), hbox10, FALSE, FALSE, 0);
  gtk_widget_set_size_request (hbox10, -1, 50);

  viewwindowCloseBtn = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (viewwindowCloseBtn);
  gtk_box_pack_start (GTK_BOX (hbox10), viewwindowCloseBtn, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, viewwindowCloseBtn, _("Please push this button to close this window."), NULL);

  viewwindowReplyBtn = gtk_button_new ();
  gtk_widget_show (viewwindowReplyBtn);
  gtk_box_pack_start (GTK_BOX (hbox10), viewwindowReplyBtn, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, viewwindowReplyBtn, _("Please push this button to reply."), NULL);

  alignment9 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment9);
  gtk_container_add (GTK_CONTAINER (viewwindowReplyBtn), alignment9);

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

  image9 = gtk_image_new_from_stock ("gnome-stock-book-open", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image9);
  gtk_box_pack_start (GTK_BOX (hbox11), image9, FALSE, FALSE, 0);

  label10 = gtk_label_new_with_mnemonic (_("Reply"));
  gtk_widget_show (label10);
  gtk_box_pack_start (GTK_BOX (hbox11), label10, FALSE, FALSE, 0);

  viewWinOptionHbox = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (viewWinOptionHbox);
  gtk_box_pack_start (GTK_BOX (hbox10), viewWinOptionHbox, FALSE, TRUE, 0);

  viewwindowCitationCheck = gtk_check_button_new_with_mnemonic (_("Cite"));
  gtk_widget_show (viewwindowCitationCheck);
  gtk_box_pack_start (GTK_BOX (viewWinOptionHbox), viewwindowCitationCheck, TRUE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, viewwindowCitationCheck, _("Please check here to cite original message to reply."), NULL);

  g_signal_connect ((gpointer) viewWindow, "destroy",
                    G_CALLBACK (on_viewWindow_destroy),
                    NULL);
  g_signal_connect ((gpointer) viewWindow, "show",
                    G_CALLBACK (on_viewWindow_show),
                    NULL);
  g_signal_connect ((gpointer) viewWindow, "check_resize",
                    G_CALLBACK (on_viewWindow_check_resize),
                    NULL);
  g_signal_connect ((gpointer) viewWindow, "size_allocate",
                    G_CALLBACK (on_viewWindow_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) viewwindowTextView, "button_press_event",
                    G_CALLBACK (on_viewwindowTextView_button_press_event),
                    NULL);
  g_signal_connect ((gpointer) viewwindowCloseBtn, "clicked",
                    G_CALLBACK (on_viewwindowCloseBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) viewwindowReplyBtn, "clicked",
                    G_CALLBACK (on_viewwindowReplyBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (viewWindow, viewWindow, "viewWindow");
  GLADE_HOOKUP_OBJECT (viewWindow, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (viewWindow, frame7, "frame7");
  GLADE_HOOKUP_OBJECT (viewWindow, alignment8, "alignment8");
  GLADE_HOOKUP_OBJECT (viewWindow, vbox6, "vbox6");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowUserInfoLabel, "viewwindowUserInfoLabel");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowDateLabel, "viewwindowDateLabel");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowFrameLabel, "viewwindowFrameLabel");
  GLADE_HOOKUP_OBJECT (viewWindow, scrolledwindow6, "scrolledwindow6");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowTextView, "viewwindowTextView");
  GLADE_HOOKUP_OBJECT (viewWindow, hbox10, "hbox10");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowCloseBtn, "viewwindowCloseBtn");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowReplyBtn, "viewwindowReplyBtn");
  GLADE_HOOKUP_OBJECT (viewWindow, alignment9, "alignment9");
  GLADE_HOOKUP_OBJECT (viewWindow, hbox11, "hbox11");
  GLADE_HOOKUP_OBJECT (viewWindow, image9, "image9");
  GLADE_HOOKUP_OBJECT (viewWindow, label10, "label10");
  GLADE_HOOKUP_OBJECT (viewWindow, viewWinOptionHbox, "viewWinOptionHbox");
  GLADE_HOOKUP_OBJECT (viewWindow, viewwindowCitationCheck, "viewwindowCitationCheck");
  GLADE_HOOKUP_OBJECT_NO_REF (viewWindow, tooltips, "tooltips");

  return viewWindow;
}

GtkWidget*
create_sendFailDialog (void)
{
  GtkWidget *sendFailDialog;
  GdkPixbuf *sendFailDialog_icon_pixbuf;
  GtkWidget *dialog_vbox5;
  GtkWidget *vbox7;
  GtkWidget *SendFailDialogNotifyLabel;
  GtkWidget *SendFailDialogUserLabel;
  GtkWidget *SendFailDialogConfirmLabel;
  GtkWidget *dialog_action_area5;
  GtkWidget *cancelbutton1;
  GtkWidget *okbutton1;

  sendFailDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (sendFailDialog), _("SendFail"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (sendFailDialog), TRUE);
  sendFailDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (sendFailDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (sendFailDialog), sendFailDialog_icon_pixbuf);
      gdk_pixbuf_unref (sendFailDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (sendFailDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox5 = GTK_DIALOG (sendFailDialog)->vbox;
  gtk_widget_show (dialog_vbox5);

  vbox7 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox7);
  gtk_box_pack_start (GTK_BOX (dialog_vbox5), vbox7, TRUE, TRUE, 0);

  SendFailDialogNotifyLabel = gtk_label_new (_("Can not send message"));
  gtk_widget_show (SendFailDialogNotifyLabel);
  gtk_box_pack_start (GTK_BOX (vbox7), SendFailDialogNotifyLabel, TRUE, TRUE, 0);

  SendFailDialogUserLabel = gtk_label_new ("");
  gtk_widget_show (SendFailDialogUserLabel);
  gtk_box_pack_start (GTK_BOX (vbox7), SendFailDialogUserLabel, TRUE, TRUE, 0);

  SendFailDialogConfirmLabel = gtk_label_new (_("Retry?"));
  gtk_widget_show (SendFailDialogConfirmLabel);
  gtk_box_pack_start (GTK_BOX (vbox7), SendFailDialogConfirmLabel, TRUE, TRUE, 0);

  dialog_action_area5 = GTK_DIALOG (sendFailDialog)->action_area;
  gtk_widget_show (dialog_action_area5);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area5), GTK_BUTTONBOX_END);

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

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

  g_signal_connect ((gpointer) sendFailDialog, "show",
                    G_CALLBACK (on_sendFailDialog_show),
                    NULL);
  g_signal_connect ((gpointer) sendFailDialog, "destroy",
                    G_CALLBACK (on_sendFailDialog_destroy),
                    NULL);
  g_signal_connect ((gpointer) sendFailDialog, "response",
                    G_CALLBACK (on_sendFailDialog_response),
                    NULL);
  g_signal_connect ((gpointer) sendFailDialog, "close",
                    G_CALLBACK (on_sendFailDialog_close),
                    NULL);
  g_signal_connect ((gpointer) cancelbutton1, "clicked",
                    G_CALLBACK (on_cancelbutton1_clicked),
                    NULL);
  g_signal_connect ((gpointer) okbutton1, "clicked",
                    G_CALLBACK (on_okbutton1_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (sendFailDialog, sendFailDialog, "sendFailDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (sendFailDialog, dialog_vbox5, "dialog_vbox5");
  GLADE_HOOKUP_OBJECT (sendFailDialog, vbox7, "vbox7");
  GLADE_HOOKUP_OBJECT (sendFailDialog, SendFailDialogNotifyLabel, "SendFailDialogNotifyLabel");
  GLADE_HOOKUP_OBJECT (sendFailDialog, SendFailDialogUserLabel, "SendFailDialogUserLabel");
  GLADE_HOOKUP_OBJECT (sendFailDialog, SendFailDialogConfirmLabel, "SendFailDialogConfirmLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (sendFailDialog, dialog_action_area5, "dialog_action_area5");
  GLADE_HOOKUP_OBJECT (sendFailDialog, cancelbutton1, "cancelbutton1");
  GLADE_HOOKUP_OBJECT (sendFailDialog, okbutton1, "okbutton1");

  return sendFailDialog;
}

GtkWidget*
create_attachFileEditor (void)
{
  GtkWidget *attachFileEditor;
  GdkPixbuf *attachFileEditor_icon_pixbuf;
  GtkWidget *attachFileEditorMainFrame;
  GtkWidget *alignment10;
  GtkWidget *hbox14;
  GtkWidget *frame9;
  GtkWidget *alignment11;
  GtkWidget *table2;
  GtkWidget *AttachFileFileChooseBtn;
  GtkWidget *AttachNullLabelRightTop;
  GtkWidget *attachNullLabelLeftTop;
  GtkWidget *attachNullLabelLeftBottom;
  GtkWidget *attachNullLabelRightBottom;
  GtkWidget *AttachFilePathEntry;
  GtkWidget *AttachSelectFileFrame;
  GtkWidget *vbuttonbox2;
  GtkWidget *AttachFIleAddBtn;
  GtkWidget *AttachFileRemoveBtn;
  GtkWidget *frame10;
  GtkWidget *alignment12;
  GtkWidget *attachedViewWindow;
  GtkWidget *attachedFilesView;
  GtkWidget *AttachFileListFrame;
  GtkWidget *attachFileEditorMainFrameLabel;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  attachFileEditor = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (attachFileEditor), _("Edit Attachments"));
  attachFileEditor_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (attachFileEditor_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (attachFileEditor), attachFileEditor_icon_pixbuf);
      gdk_pixbuf_unref (attachFileEditor_icon_pixbuf);
    }

  attachFileEditorMainFrame = gtk_frame_new (NULL);
  gtk_widget_show (attachFileEditorMainFrame);
  gtk_container_add (GTK_CONTAINER (attachFileEditor), attachFileEditorMainFrame);

  alignment10 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment10);
  gtk_container_add (GTK_CONTAINER (attachFileEditorMainFrame), alignment10);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment10), 0, 0, 12, 0);

  hbox14 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox14);
  gtk_container_add (GTK_CONTAINER (alignment10), hbox14);

  frame9 = gtk_frame_new (NULL);
  gtk_widget_show (frame9);
  gtk_box_pack_start (GTK_BOX (hbox14), frame9, FALSE, FALSE, 0);

  alignment11 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment11);
  gtk_container_add (GTK_CONTAINER (frame9), alignment11);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment11), 0, 0, 12, 0);

  table2 = gtk_table_new (3, 2, FALSE);
  gtk_widget_show (table2);
  gtk_container_add (GTK_CONTAINER (alignment11), table2);
  gtk_table_set_col_spacings (GTK_TABLE (table2), 2);

  AttachFileFileChooseBtn = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (AttachFileFileChooseBtn);
  gtk_table_attach (GTK_TABLE (table2), AttachFileFileChooseBtn, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 28);
  gtk_tooltips_set_tip (tooltips, AttachFileFileChooseBtn, _("Please push here to choose an attachment file."), NULL);

  AttachNullLabelRightTop = gtk_label_new ("");
  gtk_widget_show (AttachNullLabelRightTop);
  gtk_table_attach (GTK_TABLE (table2), AttachNullLabelRightTop, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (AttachNullLabelRightTop), 0, 0.5);

  attachNullLabelLeftTop = gtk_label_new ("");
  gtk_widget_show (attachNullLabelLeftTop);
  gtk_table_attach (GTK_TABLE (table2), attachNullLabelLeftTop, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (attachNullLabelLeftTop), 0, 0.5);

  attachNullLabelLeftBottom = gtk_label_new ("");
  gtk_widget_show (attachNullLabelLeftBottom);
  gtk_table_attach (GTK_TABLE (table2), attachNullLabelLeftBottom, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (attachNullLabelLeftBottom), 0, 0.5);

  attachNullLabelRightBottom = gtk_label_new ("");
  gtk_widget_show (attachNullLabelRightBottom);
  gtk_table_attach (GTK_TABLE (table2), attachNullLabelRightBottom, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (attachNullLabelRightBottom), 0, 0.5);

  AttachFilePathEntry = gtk_entry_new ();
  gtk_widget_show (AttachFilePathEntry);
  gtk_table_attach (GTK_TABLE (table2), AttachFilePathEntry, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, AttachFilePathEntry, _("This entry show the attachment file path."), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (AttachFilePathEntry), 8226);

  AttachSelectFileFrame = gtk_label_new (_("<b>FileChooser</b>"));
  gtk_widget_show (AttachSelectFileFrame);
  gtk_frame_set_label_widget (GTK_FRAME (frame9), AttachSelectFileFrame);
  gtk_label_set_use_markup (GTK_LABEL (AttachSelectFileFrame), TRUE);

  vbuttonbox2 = gtk_vbutton_box_new ();
  gtk_widget_show (vbuttonbox2);
  gtk_box_pack_start (GTK_BOX (hbox14), vbuttonbox2, TRUE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbuttonbox2), 4);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (vbuttonbox2), GTK_BUTTONBOX_SPREAD);

  AttachFIleAddBtn = gtk_button_new_with_mnemonic (_(">>"));
  gtk_widget_show (AttachFIleAddBtn);
  gtk_container_add (GTK_CONTAINER (vbuttonbox2), AttachFIleAddBtn);
  GTK_WIDGET_SET_FLAGS (AttachFIleAddBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, AttachFIleAddBtn, _("Please push this button to add the file into attachment file list."), NULL);

  AttachFileRemoveBtn = gtk_button_new_with_mnemonic (_("<<"));
  gtk_widget_show (AttachFileRemoveBtn);
  gtk_container_add (GTK_CONTAINER (vbuttonbox2), AttachFileRemoveBtn);
  GTK_WIDGET_SET_FLAGS (AttachFileRemoveBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, AttachFileRemoveBtn, _("Please push this button to remove the file from attachment file list."), NULL);

  frame10 = gtk_frame_new (NULL);
  gtk_widget_show (frame10);
  gtk_box_pack_start (GTK_BOX (hbox14), frame10, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame10), GTK_SHADOW_IN);

  alignment12 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment12);
  gtk_container_add (GTK_CONTAINER (frame10), alignment12);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment12), 0, 0, 12, 0);

  attachedViewWindow = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (attachedViewWindow);
  gtk_container_add (GTK_CONTAINER (alignment12), attachedViewWindow);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (attachedViewWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (attachedViewWindow), GTK_SHADOW_IN);

  attachedFilesView = gtk_tree_view_new ();
  gtk_widget_show (attachedFilesView);
  gtk_container_add (GTK_CONTAINER (attachedViewWindow), attachedFilesView);
  gtk_widget_set_size_request (attachedFilesView, 200, 100);
  gtk_container_set_border_width (GTK_CONTAINER (attachedFilesView), 1);
  gtk_tooltips_set_tip (tooltips, attachedFilesView, _("This list shows attachment files of the message."), NULL);
  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (attachedFilesView), TRUE);

  AttachFileListFrame = gtk_label_new (_("<b>Attached files</b>"));
  gtk_widget_show (AttachFileListFrame);
  gtk_frame_set_label_widget (GTK_FRAME (frame10), AttachFileListFrame);
  gtk_label_set_use_markup (GTK_LABEL (AttachFileListFrame), TRUE);

  attachFileEditorMainFrameLabel = gtk_label_new (_("<b>Attachment Editor</b>"));
  gtk_widget_show (attachFileEditorMainFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (attachFileEditorMainFrame), attachFileEditorMainFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (attachFileEditorMainFrameLabel), TRUE);

  g_signal_connect ((gpointer) attachFileEditor, "destroy",
                    G_CALLBACK (on_attachFileEditor_destroy),
                    NULL);
  g_signal_connect ((gpointer) attachFileEditor, "show",
                    G_CALLBACK (on_attachFileEditor_show),
                    NULL);
  g_signal_connect ((gpointer) attachFileEditor, "check_resize",
                    G_CALLBACK (on_attachFileEditor_check_resize),
                    NULL);
  g_signal_connect ((gpointer) attachFileEditor, "size_allocate",
                    G_CALLBACK (on_attachFileEditor_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) attachFileEditorMainFrame, "drag_data_received",
                    G_CALLBACK (on_attachFileEditorMainFrame_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) AttachFileFileChooseBtn, "clicked",
                    G_CALLBACK (on_AttachFileFileChooseBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) AttachFilePathEntry, "activate",
                    G_CALLBACK (on_AttachFilePathEntry_activate),
                    NULL);
  g_signal_connect ((gpointer) AttachFilePathEntry, "changed",
                    G_CALLBACK (on_AttachFilePathEntry_changed),
                    NULL);
  g_signal_connect ((gpointer) AttachFilePathEntry, "drag_data_received",
                    G_CALLBACK (on_AttachFilePathEntry_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) AttachFIleAddBtn, "clicked",
                    G_CALLBACK (on_AttachFIleAddBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) AttachFileRemoveBtn, "clicked",
                    G_CALLBACK (on_AttachFileRemoveBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) attachedFilesView, "drag_data_received",
                    G_CALLBACK (on_attachedFilesView_drag_data_received),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (attachFileEditor, attachFileEditor, "attachFileEditor");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachFileEditorMainFrame, "attachFileEditorMainFrame");
  GLADE_HOOKUP_OBJECT (attachFileEditor, alignment10, "alignment10");
  GLADE_HOOKUP_OBJECT (attachFileEditor, hbox14, "hbox14");
  GLADE_HOOKUP_OBJECT (attachFileEditor, frame9, "frame9");
  GLADE_HOOKUP_OBJECT (attachFileEditor, alignment11, "alignment11");
  GLADE_HOOKUP_OBJECT (attachFileEditor, table2, "table2");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachFileFileChooseBtn, "AttachFileFileChooseBtn");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachNullLabelRightTop, "AttachNullLabelRightTop");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachNullLabelLeftTop, "attachNullLabelLeftTop");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachNullLabelLeftBottom, "attachNullLabelLeftBottom");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachNullLabelRightBottom, "attachNullLabelRightBottom");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachFilePathEntry, "AttachFilePathEntry");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachSelectFileFrame, "AttachSelectFileFrame");
  GLADE_HOOKUP_OBJECT (attachFileEditor, vbuttonbox2, "vbuttonbox2");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachFIleAddBtn, "AttachFIleAddBtn");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachFileRemoveBtn, "AttachFileRemoveBtn");
  GLADE_HOOKUP_OBJECT (attachFileEditor, frame10, "frame10");
  GLADE_HOOKUP_OBJECT (attachFileEditor, alignment12, "alignment12");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachedViewWindow, "attachedViewWindow");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachedFilesView, "attachedFilesView");
  GLADE_HOOKUP_OBJECT (attachFileEditor, AttachFileListFrame, "AttachFileListFrame");
  GLADE_HOOKUP_OBJECT (attachFileEditor, attachFileEditorMainFrameLabel, "attachFileEditorMainFrameLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (attachFileEditor, tooltips, "tooltips");

  return attachFileEditor;
}

GtkWidget*
create_ipmsgDownloadOverWrite (void)
{
  GtkWidget *ipmsgDownloadOverWrite;
  GdkPixbuf *ipmsgDownloadOverWrite_icon_pixbuf;
  GtkWidget *dialog_vbox6;
  GtkWidget *frame11;
  GtkWidget *alignment13;
  GtkWidget *vbox8;
  GtkWidget *ovwerwriteLabel1;
  GtkWidget *overwriteFileNameLabel;
  GtkWidget *overwriteConfirmMsgLabel;
  GtkWidget *downloadConfirmLabel;
  GtkWidget *dialog_action_area6;
  GtkWidget *cancelbutton2;
  GtkWidget *okbutton2;

  ipmsgDownloadOverWrite = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (ipmsgDownloadOverWrite), _("Overwrite comfirmation"));
  ipmsgDownloadOverWrite_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (ipmsgDownloadOverWrite_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (ipmsgDownloadOverWrite), ipmsgDownloadOverWrite_icon_pixbuf);
      gdk_pixbuf_unref (ipmsgDownloadOverWrite_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (ipmsgDownloadOverWrite), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox6 = GTK_DIALOG (ipmsgDownloadOverWrite)->vbox;
  gtk_widget_show (dialog_vbox6);

  frame11 = gtk_frame_new (NULL);
  gtk_widget_show (frame11);
  gtk_box_pack_start (GTK_BOX (dialog_vbox6), frame11, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame11), GTK_SHADOW_IN);

  alignment13 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment13);
  gtk_container_add (GTK_CONTAINER (frame11), alignment13);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment13), 0, 0, 12, 0);

  vbox8 = gtk_vbox_new (TRUE, 0);
  gtk_widget_show (vbox8);
  gtk_container_add (GTK_CONTAINER (alignment13), vbox8);

  ovwerwriteLabel1 = gtk_label_new (_("Following file already exist:"));
  gtk_widget_show (ovwerwriteLabel1);
  gtk_box_pack_start (GTK_BOX (vbox8), ovwerwriteLabel1, FALSE, FALSE, 0);

  overwriteFileNameLabel = gtk_label_new (_("FilePath"));
  gtk_widget_show (overwriteFileNameLabel);
  gtk_box_pack_start (GTK_BOX (vbox8), overwriteFileNameLabel, FALSE, FALSE, 0);

  overwriteConfirmMsgLabel = gtk_label_new (_("Over Write?"));
  gtk_widget_show (overwriteConfirmMsgLabel);
  gtk_box_pack_start (GTK_BOX (vbox8), overwriteConfirmMsgLabel, FALSE, FALSE, 0);

  downloadConfirmLabel = gtk_label_new (_("<b>Over write confirmation</b>"));
  gtk_widget_show (downloadConfirmLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame11), downloadConfirmLabel);
  gtk_label_set_use_markup (GTK_LABEL (downloadConfirmLabel), TRUE);

  dialog_action_area6 = GTK_DIALOG (ipmsgDownloadOverWrite)->action_area;
  gtk_widget_show (dialog_action_area6);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);

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

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

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (ipmsgDownloadOverWrite, ipmsgDownloadOverWrite, "ipmsgDownloadOverWrite");
  GLADE_HOOKUP_OBJECT_NO_REF (ipmsgDownloadOverWrite, dialog_vbox6, "dialog_vbox6");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, frame11, "frame11");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, alignment13, "alignment13");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, vbox8, "vbox8");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, ovwerwriteLabel1, "ovwerwriteLabel1");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, overwriteFileNameLabel, "overwriteFileNameLabel");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, overwriteConfirmMsgLabel, "overwriteConfirmMsgLabel");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, downloadConfirmLabel, "downloadConfirmLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (ipmsgDownloadOverWrite, dialog_action_area6, "dialog_action_area6");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, cancelbutton2, "cancelbutton2");
  GLADE_HOOKUP_OBJECT (ipmsgDownloadOverWrite, okbutton2, "okbutton2");

  return ipmsgDownloadOverWrite;
}

GtkWidget*
create_downloadMonitor (void)
{
  GtkWidget *downloadMonitor;
  GdkPixbuf *downloadMonitor_icon_pixbuf;
  GtkWidget *fixed2;
  GtkWidget *hbuttonbox1;
  GtkWidget *deleteBtn;
  GtkWidget *updateBtn;
  GtkWidget *closeBtn;
  GtkWidget *frame12;
  GtkWidget *alignment14;
  GtkWidget *scrolledwindow9;
  GtkWidget *treeview5;
  GtkWidget *frameLabel;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  downloadMonitor = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (downloadMonitor), _("Down load monitor"));
  gtk_window_set_resizable (GTK_WINDOW (downloadMonitor), FALSE);
  downloadMonitor_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (downloadMonitor_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (downloadMonitor), downloadMonitor_icon_pixbuf);
      gdk_pixbuf_unref (downloadMonitor_icon_pixbuf);
    }

  fixed2 = gtk_fixed_new ();
  gtk_widget_show (fixed2);
  gtk_container_add (GTK_CONTAINER (downloadMonitor), fixed2);

  hbuttonbox1 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox1);
  gtk_fixed_put (GTK_FIXED (fixed2), hbuttonbox1, 8, 256);
  gtk_widget_set_size_request (hbuttonbox1, 440, 36);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_SPREAD);

  deleteBtn = gtk_button_new_from_stock ("gtk-remove");
  gtk_widget_show (deleteBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), deleteBtn);
  GTK_WIDGET_SET_FLAGS (deleteBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, deleteBtn, _("Please push this button to revoke permission to down load the file."), NULL);

  updateBtn = gtk_button_new_from_stock ("gtk-refresh");
  gtk_widget_show (updateBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), updateBtn);
  GTK_WIDGET_SET_FLAGS (updateBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, updateBtn, _("Please push this button to update the download file list."), NULL);

  closeBtn = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (closeBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), closeBtn);
  GTK_WIDGET_SET_FLAGS (closeBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, closeBtn, _("Please push this button to close this window."), NULL);

  frame12 = gtk_frame_new (NULL);
  gtk_widget_show (frame12);
  gtk_fixed_put (GTK_FIXED (fixed2), frame12, 16, 8);
  gtk_widget_set_size_request (frame12, 536, 240);

  alignment14 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment14);
  gtk_container_add (GTK_CONTAINER (frame12), alignment14);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment14), 0, 0, 12, 0);

  scrolledwindow9 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow9);
  gtk_container_add (GTK_CONTAINER (alignment14), scrolledwindow9);

  treeview5 = gtk_tree_view_new ();
  gtk_widget_show (treeview5);
  gtk_container_add (GTK_CONTAINER (scrolledwindow9), treeview5);
  gtk_tooltips_set_tip (tooltips, treeview5, _("This list shows download files which you sent."), NULL);

  frameLabel = gtk_label_new (_("<b>download files</b>"));
  gtk_widget_show (frameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame12), frameLabel);
  gtk_label_set_use_markup (GTK_LABEL (frameLabel), TRUE);

  g_signal_connect ((gpointer) downloadMonitor, "destroy",
                    G_CALLBACK (on_downloadMonitor_destroy),
                    NULL);
  g_signal_connect ((gpointer) downloadMonitor, "show",
                    G_CALLBACK (on_downloadMonitor_show),
                    NULL);
  g_signal_connect ((gpointer) downloadMonitor, "check_resize",
                    G_CALLBACK (on_downloadMonitor_check_resize),
                    NULL);
  g_signal_connect ((gpointer) downloadMonitor, "size_allocate",
                    G_CALLBACK (on_downloadMonitor_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) deleteBtn, "clicked",
                    G_CALLBACK (on_deleteBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) updateBtn, "clicked",
                    G_CALLBACK (on_updateBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) closeBtn, "clicked",
                    G_CALLBACK (on_closeBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (downloadMonitor, downloadMonitor, "downloadMonitor");
  GLADE_HOOKUP_OBJECT (downloadMonitor, fixed2, "fixed2");
  GLADE_HOOKUP_OBJECT (downloadMonitor, hbuttonbox1, "hbuttonbox1");
  GLADE_HOOKUP_OBJECT (downloadMonitor, deleteBtn, "deleteBtn");
  GLADE_HOOKUP_OBJECT (downloadMonitor, updateBtn, "updateBtn");
  GLADE_HOOKUP_OBJECT (downloadMonitor, closeBtn, "closeBtn");
  GLADE_HOOKUP_OBJECT (downloadMonitor, frame12, "frame12");
  GLADE_HOOKUP_OBJECT (downloadMonitor, alignment14, "alignment14");
  GLADE_HOOKUP_OBJECT (downloadMonitor, scrolledwindow9, "scrolledwindow9");
  GLADE_HOOKUP_OBJECT (downloadMonitor, treeview5, "treeview5");
  GLADE_HOOKUP_OBJECT (downloadMonitor, frameLabel, "frameLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadMonitor, tooltips, "tooltips");

  return downloadMonitor;
}

GtkWidget*
create_passwdWindow (void)
{
  GtkWidget *passwdWindow;
  GdkPixbuf *passwdWindow_icon_pixbuf;
  GtkWidget *vbox9;
  GtkWidget *vbox10;
  GtkWidget *passWordWindowLabel;
  GtkWidget *hbox15;
  GtkWidget *oldPasswdLabel;
  GtkWidget *currentPassWordEntry;
  GtkWidget *hbox16;
  GtkWidget *passwdEntryLabel1;
  GtkWidget *passwdEntry1;
  GtkWidget *hbox24;
  GtkWidget *passwdEntryLabel2;
  GtkWidget *passwdEntry2;
  GtkWidget *hbuttonbox2;
  GtkWidget *passWordOKBtn;
  GtkWidget *PassWordCancelBtn;

  passwdWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (passwdWindow), _("password"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (passwdWindow), TRUE);
  passwdWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (passwdWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (passwdWindow), passwdWindow_icon_pixbuf);
      gdk_pixbuf_unref (passwdWindow_icon_pixbuf);
    }

  vbox9 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox9);
  gtk_container_add (GTK_CONTAINER (passwdWindow), vbox9);

  vbox10 = gtk_vbox_new (TRUE, 0);
  gtk_widget_show (vbox10);
  gtk_box_pack_start (GTK_BOX (vbox9), vbox10, TRUE, TRUE, 0);

  passWordWindowLabel = gtk_label_new ("");
  gtk_widget_show (passWordWindowLabel);
  gtk_box_pack_start (GTK_BOX (vbox10), passWordWindowLabel, TRUE, TRUE, 0);

  hbox15 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox15);
  gtk_box_pack_start (GTK_BOX (vbox10), hbox15, TRUE, TRUE, 0);

  oldPasswdLabel = gtk_label_new (_("current password"));
  gtk_widget_show (oldPasswdLabel);
  gtk_box_pack_start (GTK_BOX (hbox15), oldPasswdLabel, TRUE, TRUE, 0);

  currentPassWordEntry = gtk_entry_new ();
  gtk_widget_show (currentPassWordEntry);
  gtk_box_pack_start (GTK_BOX (hbox15), currentPassWordEntry, TRUE, TRUE, 0);
  gtk_entry_set_visibility (GTK_ENTRY (currentPassWordEntry), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (currentPassWordEntry), 8226);

  hbox16 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox16);
  gtk_box_pack_start (GTK_BOX (vbox10), hbox16, TRUE, TRUE, 0);

  passwdEntryLabel1 = gtk_label_new (_("password"));
  gtk_widget_show (passwdEntryLabel1);
  gtk_box_pack_start (GTK_BOX (hbox16), passwdEntryLabel1, TRUE, TRUE, 0);
  gtk_widget_set_size_request (passwdEntryLabel1, 130, -1);

  passwdEntry1 = gtk_entry_new ();
  gtk_widget_show (passwdEntry1);
  gtk_box_pack_start (GTK_BOX (hbox16), passwdEntry1, TRUE, TRUE, 0);
  gtk_entry_set_visibility (GTK_ENTRY (passwdEntry1), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (passwdEntry1), 8226);

  hbox24 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox24);
  gtk_box_pack_start (GTK_BOX (vbox10), hbox24, TRUE, TRUE, 0);

  passwdEntryLabel2 = gtk_label_new (_("confirm password"));
  gtk_widget_show (passwdEntryLabel2);
  gtk_box_pack_start (GTK_BOX (hbox24), passwdEntryLabel2, TRUE, TRUE, 0);
  gtk_widget_set_size_request (passwdEntryLabel2, 130, -1);

  passwdEntry2 = gtk_entry_new ();
  gtk_widget_show (passwdEntry2);
  gtk_box_pack_start (GTK_BOX (hbox24), passwdEntry2, TRUE, TRUE, 0);
  gtk_entry_set_visibility (GTK_ENTRY (passwdEntry2), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (passwdEntry2), 8226);

  hbuttonbox2 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox2);
  gtk_box_pack_start (GTK_BOX (vbox9), hbuttonbox2, TRUE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_SPREAD);

  passWordOKBtn = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (passWordOKBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox2), passWordOKBtn);
  GTK_WIDGET_SET_FLAGS (passWordOKBtn, GTK_CAN_DEFAULT);

  PassWordCancelBtn = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (PassWordCancelBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox2), PassWordCancelBtn);
  GTK_WIDGET_SET_FLAGS (PassWordCancelBtn, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) currentPassWordEntry, "changed",
                    G_CALLBACK (on_currentPassWordEntry_changed),
                    NULL);
  g_signal_connect ((gpointer) passwdEntry1, "changed",
                    G_CALLBACK (on_passwdEntry1_changed),
                    NULL);
  g_signal_connect ((gpointer) passwdEntry2, "changed",
                    G_CALLBACK (on_passwdEntry2_changed),
                    NULL);
  g_signal_connect ((gpointer) passWordOKBtn, "clicked",
                    G_CALLBACK (on_passWordOKBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) PassWordCancelBtn, "clicked",
                    G_CALLBACK (on_PassWordCancelBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (passwdWindow, passwdWindow, "passwdWindow");
  GLADE_HOOKUP_OBJECT (passwdWindow, vbox9, "vbox9");
  GLADE_HOOKUP_OBJECT (passwdWindow, vbox10, "vbox10");
  GLADE_HOOKUP_OBJECT (passwdWindow, passWordWindowLabel, "passWordWindowLabel");
  GLADE_HOOKUP_OBJECT (passwdWindow, hbox15, "hbox15");
  GLADE_HOOKUP_OBJECT (passwdWindow, oldPasswdLabel, "oldPasswdLabel");
  GLADE_HOOKUP_OBJECT (passwdWindow, currentPassWordEntry, "currentPassWordEntry");
  GLADE_HOOKUP_OBJECT (passwdWindow, hbox16, "hbox16");
  GLADE_HOOKUP_OBJECT (passwdWindow, passwdEntryLabel1, "passwdEntryLabel1");
  GLADE_HOOKUP_OBJECT (passwdWindow, passwdEntry1, "passwdEntry1");
  GLADE_HOOKUP_OBJECT (passwdWindow, hbox24, "hbox24");
  GLADE_HOOKUP_OBJECT (passwdWindow, passwdEntryLabel2, "passwdEntryLabel2");
  GLADE_HOOKUP_OBJECT (passwdWindow, passwdEntry2, "passwdEntry2");
  GLADE_HOOKUP_OBJECT (passwdWindow, hbuttonbox2, "hbuttonbox2");
  GLADE_HOOKUP_OBJECT (passwdWindow, passWordOKBtn, "passWordOKBtn");
  GLADE_HOOKUP_OBJECT (passwdWindow, PassWordCancelBtn, "PassWordCancelBtn");

  return passwdWindow;
}

GtkWidget*
create_absenceEditor (void)
{
  GtkWidget *absenceEditor;
  GdkPixbuf *absenceEditor_icon_pixbuf;
  GtkWidget *hbox17;
  GtkWidget *frame13;
  GtkWidget *alignment15;
  GtkWidget *scrolledwindow8;
  GtkWidget *absenseTitles;
  GtkWidget *AbsenceTitleFrameLabel;
  GtkWidget *vbox11;
  GtkWidget *vbox12;
  GtkWidget *frame14;
  GtkWidget *alignment16;
  GtkWidget *vbox13;
  GtkWidget *hbox19;
  GtkWidget *AbsenceTitleLabel;
  GtkWidget *AbsenceTitleEntry;
  GtkWidget *scrolledwindow7;
  GtkWidget *fuzaiText;
  GtkWidget *AbsenceEditFrameLabel;
  GtkWidget *hbuttonbox3;
  GtkWidget *applyAndAbsentBtn;
  GtkWidget *applyOnlyBtn;
  GtkWidget *absenceEditorCloseBtn;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  absenceEditor = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_size_request (absenceEditor, -1, 268);
  gtk_window_set_title (GTK_WINDOW (absenceEditor), _("Absence Notification"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (absenceEditor), TRUE);
  absenceEditor_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (absenceEditor_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (absenceEditor), absenceEditor_icon_pixbuf);
      gdk_pixbuf_unref (absenceEditor_icon_pixbuf);
    }

  hbox17 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox17);
  gtk_container_add (GTK_CONTAINER (absenceEditor), hbox17);

  frame13 = gtk_frame_new (NULL);
  gtk_widget_show (frame13);
  gtk_box_pack_start (GTK_BOX (hbox17), frame13, FALSE, FALSE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame13), GTK_SHADOW_IN);

  alignment15 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment15);
  gtk_container_add (GTK_CONTAINER (frame13), alignment15);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment15), 0, 0, 12, 0);

  scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow8);
  gtk_container_add (GTK_CONTAINER (alignment15), scrolledwindow8);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);

  absenseTitles = gtk_tree_view_new ();
  gtk_widget_show (absenseTitles);
  gtk_container_add (GTK_CONTAINER (scrolledwindow8), absenseTitles);
  gtk_tooltips_set_tip (tooltips, absenseTitles, _("This list shows absence message titiles."), NULL);
  gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (absenseTitles), FALSE);
  gtk_tree_view_set_reorderable (GTK_TREE_VIEW (absenseTitles), TRUE);

  AbsenceTitleFrameLabel = gtk_label_new (_("<b>Titles</b>"));
  gtk_widget_show (AbsenceTitleFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame13), AbsenceTitleFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (AbsenceTitleFrameLabel), TRUE);

  vbox11 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox11);
  gtk_box_pack_start (GTK_BOX (hbox17), vbox11, TRUE, TRUE, 0);

  vbox12 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox12);
  gtk_box_pack_start (GTK_BOX (vbox11), vbox12, TRUE, TRUE, 0);

  frame14 = gtk_frame_new (NULL);
  gtk_widget_show (frame14);
  gtk_box_pack_start (GTK_BOX (vbox12), frame14, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame14), GTK_SHADOW_IN);

  alignment16 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment16);
  gtk_container_add (GTK_CONTAINER (frame14), alignment16);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment16), 0, 0, 12, 0);

  vbox13 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox13);
  gtk_container_add (GTK_CONTAINER (alignment16), vbox13);

  hbox19 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox19);
  gtk_box_pack_start (GTK_BOX (vbox13), hbox19, TRUE, TRUE, 0);

  AbsenceTitleLabel = gtk_label_new (_("Title"));
  gtk_widget_show (AbsenceTitleLabel);
  gtk_box_pack_start (GTK_BOX (hbox19), AbsenceTitleLabel, FALSE, TRUE, 3);

  AbsenceTitleEntry = gtk_entry_new ();
  gtk_widget_show (AbsenceTitleEntry);
  gtk_box_pack_start (GTK_BOX (hbox19), AbsenceTitleEntry, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, AbsenceTitleEntry, _("This entry show absence message title, please edit this entry as you like."), NULL);
  gtk_entry_set_invisible_char (GTK_ENTRY (AbsenceTitleEntry), 8226);

  scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow7);
  gtk_box_pack_start (GTK_BOX (vbox13), scrolledwindow7, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);

  fuzaiText = gtk_text_view_new ();
  gtk_widget_show (fuzaiText);
  gtk_container_add (GTK_CONTAINER (scrolledwindow7), fuzaiText);
  gtk_tooltips_set_tip (tooltips, fuzaiText, _("Please edit this entry as you like to modify the absence message."), NULL);

  AbsenceEditFrameLabel = gtk_label_new (_("<b>Absence message</b>"));
  gtk_widget_show (AbsenceEditFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame14), AbsenceEditFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (AbsenceEditFrameLabel), TRUE);

  hbuttonbox3 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox3);
  gtk_box_pack_start (GTK_BOX (vbox11), hbuttonbox3, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox3), 1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox3), GTK_BUTTONBOX_SPREAD);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox3), 5);

  applyAndAbsentBtn = gtk_button_new_with_mnemonic (_("Set absent mode"));
  gtk_widget_show (applyAndAbsentBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox3), applyAndAbsentBtn);
  GTK_WIDGET_SET_FLAGS (applyAndAbsentBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, applyAndAbsentBtn, _("Please push this button to apply changes and to enter the absent mode."), NULL);

  applyOnlyBtn = gtk_button_new_with_mnemonic (_("Apply Only"));
  gtk_widget_show (applyOnlyBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox3), applyOnlyBtn);
  GTK_WIDGET_SET_FLAGS (applyOnlyBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, applyOnlyBtn, _("Push this button to apply changes on this absence message."), NULL);

  absenceEditorCloseBtn = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (absenceEditorCloseBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox3), absenceEditorCloseBtn);
  GTK_WIDGET_SET_FLAGS (absenceEditorCloseBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, absenceEditorCloseBtn, _("Please push this button to close this window."), NULL);

  g_signal_connect ((gpointer) absenceEditor, "destroy",
                    G_CALLBACK (on_absenceEditor_destroy),
                    NULL);
  g_signal_connect ((gpointer) absenceEditor, "show",
                    G_CALLBACK (on_absenceEditor_show),
                    NULL);
  g_signal_connect ((gpointer) absenceEditor, "size_allocate",
                    G_CALLBACK (on_absenceEditor_size_allocate),
                    NULL);
  g_signal_connect ((gpointer) applyAndAbsentBtn, "clicked",
                    G_CALLBACK (on_applyAndAbsentBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) applyOnlyBtn, "clicked",
                    G_CALLBACK (on_applyOnlyBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) absenceEditorCloseBtn, "clicked",
                    G_CALLBACK (on_absenceEditorCloseBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (absenceEditor, absenceEditor, "absenceEditor");
  GLADE_HOOKUP_OBJECT (absenceEditor, hbox17, "hbox17");
  GLADE_HOOKUP_OBJECT (absenceEditor, frame13, "frame13");
  GLADE_HOOKUP_OBJECT (absenceEditor, alignment15, "alignment15");
  GLADE_HOOKUP_OBJECT (absenceEditor, scrolledwindow8, "scrolledwindow8");
  GLADE_HOOKUP_OBJECT (absenceEditor, absenseTitles, "absenseTitles");
  GLADE_HOOKUP_OBJECT (absenceEditor, AbsenceTitleFrameLabel, "AbsenceTitleFrameLabel");
  GLADE_HOOKUP_OBJECT (absenceEditor, vbox11, "vbox11");
  GLADE_HOOKUP_OBJECT (absenceEditor, vbox12, "vbox12");
  GLADE_HOOKUP_OBJECT (absenceEditor, frame14, "frame14");
  GLADE_HOOKUP_OBJECT (absenceEditor, alignment16, "alignment16");
  GLADE_HOOKUP_OBJECT (absenceEditor, vbox13, "vbox13");
  GLADE_HOOKUP_OBJECT (absenceEditor, hbox19, "hbox19");
  GLADE_HOOKUP_OBJECT (absenceEditor, AbsenceTitleLabel, "AbsenceTitleLabel");
  GLADE_HOOKUP_OBJECT (absenceEditor, AbsenceTitleEntry, "AbsenceTitleEntry");
  GLADE_HOOKUP_OBJECT (absenceEditor, scrolledwindow7, "scrolledwindow7");
  GLADE_HOOKUP_OBJECT (absenceEditor, fuzaiText, "fuzaiText");
  GLADE_HOOKUP_OBJECT (absenceEditor, AbsenceEditFrameLabel, "AbsenceEditFrameLabel");
  GLADE_HOOKUP_OBJECT (absenceEditor, hbuttonbox3, "hbuttonbox3");
  GLADE_HOOKUP_OBJECT (absenceEditor, applyAndAbsentBtn, "applyAndAbsentBtn");
  GLADE_HOOKUP_OBJECT (absenceEditor, applyOnlyBtn, "applyOnlyBtn");
  GLADE_HOOKUP_OBJECT (absenceEditor, absenceEditorCloseBtn, "absenceEditorCloseBtn");
  GLADE_HOOKUP_OBJECT_NO_REF (absenceEditor, tooltips, "tooltips");

  return absenceEditor;
}

GtkWidget*
create_DownloadConfirmDialog (void)
{
  GtkWidget *DownloadConfirmDialog;
  GdkPixbuf *DownloadConfirmDialog_icon_pixbuf;
  GtkWidget *dialog_vbox7;
  GtkWidget *DownLoadCompleteFrame;
  GtkWidget *alignment17;
  GtkWidget *vbox14;
  GtkWidget *DownLoadCompleteFileLabel;
  GtkWidget *DownLoadConfirmFileSizeLabel;
  GtkWidget *DownLoadConfirmAppLabel;
  GtkWidget *DownLoadCompleteLabel;
  GtkWidget *dialog_action_area7;
  GtkWidget *DownLoadConfirmClose;
  GtkWidget *DownLoadConfirmOpen;
  GtkWidget *DownLoadConfirmExec;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  DownloadConfirmDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (DownloadConfirmDialog), _("Down load complete"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (DownloadConfirmDialog), TRUE);
  DownloadConfirmDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (DownloadConfirmDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (DownloadConfirmDialog), DownloadConfirmDialog_icon_pixbuf);
      gdk_pixbuf_unref (DownloadConfirmDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (DownloadConfirmDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox7 = GTK_DIALOG (DownloadConfirmDialog)->vbox;
  gtk_widget_show (dialog_vbox7);

  DownLoadCompleteFrame = gtk_frame_new (NULL);
  gtk_widget_show (DownLoadCompleteFrame);
  gtk_box_pack_start (GTK_BOX (dialog_vbox7), DownLoadCompleteFrame, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (DownLoadCompleteFrame), GTK_SHADOW_NONE);

  alignment17 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment17);
  gtk_container_add (GTK_CONTAINER (DownLoadCompleteFrame), alignment17);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment17), 0, 0, 12, 0);

  vbox14 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox14);
  gtk_container_add (GTK_CONTAINER (alignment17), vbox14);

  DownLoadCompleteFileLabel = gtk_label_new (_("FileName"));
  gtk_widget_show (DownLoadCompleteFileLabel);
  gtk_box_pack_start (GTK_BOX (vbox14), DownLoadCompleteFileLabel, FALSE, FALSE, 0);

  DownLoadConfirmFileSizeLabel = gtk_label_new (_("FileSize"));
  gtk_widget_show (DownLoadConfirmFileSizeLabel);
  gtk_box_pack_start (GTK_BOX (vbox14), DownLoadConfirmFileSizeLabel, FALSE, FALSE, 0);

  DownLoadConfirmAppLabel = gtk_label_new (_("appName"));
  gtk_widget_show (DownLoadConfirmAppLabel);
  gtk_box_pack_start (GTK_BOX (vbox14), DownLoadConfirmAppLabel, FALSE, FALSE, 0);

  DownLoadCompleteLabel = gtk_label_new (_("<b>Down Load Complete</b>"));
  gtk_widget_show (DownLoadCompleteLabel);
  gtk_frame_set_label_widget (GTK_FRAME (DownLoadCompleteFrame), DownLoadCompleteLabel);
  gtk_label_set_use_markup (GTK_LABEL (DownLoadCompleteLabel), TRUE);

  dialog_action_area7 = GTK_DIALOG (DownloadConfirmDialog)->action_area;
  gtk_widget_show (dialog_action_area7);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_END);

  DownLoadConfirmClose = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (DownLoadConfirmClose);
  gtk_dialog_add_action_widget (GTK_DIALOG (DownloadConfirmDialog), DownLoadConfirmClose, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (DownLoadConfirmClose, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, DownLoadConfirmClose, _("Please push this button to close this window."), NULL);

  DownLoadConfirmOpen = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (DownLoadConfirmOpen);
  gtk_dialog_add_action_widget (GTK_DIALOG (DownloadConfirmDialog), DownLoadConfirmOpen, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (DownLoadConfirmOpen, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, DownLoadConfirmOpen, _("Please push this button to open the directory which the downloaded file is stored."), NULL);

  DownLoadConfirmExec = gtk_button_new_from_stock ("gtk-execute");
  gtk_widget_show (DownLoadConfirmExec);
  gtk_dialog_add_action_widget (GTK_DIALOG (DownloadConfirmDialog), DownLoadConfirmExec, GTK_RESPONSE_ACCEPT);
  GTK_WIDGET_SET_FLAGS (DownLoadConfirmExec, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, DownLoadConfirmExec, _("Please push this button to handle the downloaded file."), NULL);

  g_signal_connect ((gpointer) DownloadConfirmDialog, "show",
                    G_CALLBACK (on_DownloadConfirmDialog_show),
                    NULL);
  g_signal_connect ((gpointer) DownloadConfirmDialog, "destroy",
                    G_CALLBACK (on_DownloadConfirmDialog_destroy),
                    NULL);
  g_signal_connect ((gpointer) DownLoadConfirmClose, "clicked",
                    G_CALLBACK (on_DownLoadConfirmClose_clicked),
                    NULL);
  g_signal_connect ((gpointer) DownLoadConfirmOpen, "clicked",
                    G_CALLBACK (on_DownLoadConfirmClose_clicked),
                    NULL);
  g_signal_connect ((gpointer) DownLoadConfirmExec, "clicked",
                    G_CALLBACK (on_DownLoadConfirmExec_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (DownloadConfirmDialog, DownloadConfirmDialog, "DownloadConfirmDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (DownloadConfirmDialog, dialog_vbox7, "dialog_vbox7");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadCompleteFrame, "DownLoadCompleteFrame");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, alignment17, "alignment17");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, vbox14, "vbox14");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadCompleteFileLabel, "DownLoadCompleteFileLabel");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadConfirmFileSizeLabel, "DownLoadConfirmFileSizeLabel");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadConfirmAppLabel, "DownLoadConfirmAppLabel");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadCompleteLabel, "DownLoadCompleteLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (DownloadConfirmDialog, dialog_action_area7, "dialog_action_area7");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadConfirmClose, "DownLoadConfirmClose");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadConfirmOpen, "DownLoadConfirmOpen");
  GLADE_HOOKUP_OBJECT (DownloadConfirmDialog, DownLoadConfirmExec, "DownLoadConfirmExec");
  GLADE_HOOKUP_OBJECT_NO_REF (DownloadConfirmDialog, tooltips, "tooltips");

  return DownloadConfirmDialog;
}

GtkWidget*
create_downLoadFailDialog (void)
{
  GtkWidget *downLoadFailDialog;
  GdkPixbuf *downLoadFailDialog_icon_pixbuf;
  GtkWidget *dialog_vbox8;
  GtkWidget *vbox15;
  GtkWidget *downloadFailLabel;
  GtkWidget *downLoadFailFileLabel;
  GtkWidget *downLoadFailRetryLabel;
  GtkWidget *dialog_action_area8;
  GtkWidget *cancelbutton3;
  GtkWidget *okbutton3;

  downLoadFailDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (downLoadFailDialog), _("Down load failed"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (downLoadFailDialog), TRUE);
  downLoadFailDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (downLoadFailDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (downLoadFailDialog), downLoadFailDialog_icon_pixbuf);
      gdk_pixbuf_unref (downLoadFailDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (downLoadFailDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox8 = GTK_DIALOG (downLoadFailDialog)->vbox;
  gtk_widget_show (dialog_vbox8);

  vbox15 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox15);
  gtk_box_pack_start (GTK_BOX (dialog_vbox8), vbox15, TRUE, TRUE, 0);

  downloadFailLabel = gtk_label_new (_("Can not receive the file properly."));
  gtk_widget_show (downloadFailLabel);
  gtk_box_pack_start (GTK_BOX (vbox15), downloadFailLabel, FALSE, FALSE, 0);

  downLoadFailFileLabel = gtk_label_new ("");
  gtk_widget_show (downLoadFailFileLabel);
  gtk_box_pack_start (GTK_BOX (vbox15), downLoadFailFileLabel, FALSE, FALSE, 0);

  downLoadFailRetryLabel = gtk_label_new (_("Retry this file?"));
  gtk_widget_show (downLoadFailRetryLabel);
  gtk_box_pack_start (GTK_BOX (vbox15), downLoadFailRetryLabel, FALSE, FALSE, 0);

  dialog_action_area8 = GTK_DIALOG (downLoadFailDialog)->action_area;
  gtk_widget_show (dialog_action_area8);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area8), GTK_BUTTONBOX_END);

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

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

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (downLoadFailDialog, downLoadFailDialog, "downLoadFailDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (downLoadFailDialog, dialog_vbox8, "dialog_vbox8");
  GLADE_HOOKUP_OBJECT (downLoadFailDialog, vbox15, "vbox15");
  GLADE_HOOKUP_OBJECT (downLoadFailDialog, downloadFailLabel, "downloadFailLabel");
  GLADE_HOOKUP_OBJECT (downLoadFailDialog, downLoadFailFileLabel, "downLoadFailFileLabel");
  GLADE_HOOKUP_OBJECT (downLoadFailDialog, downLoadFailRetryLabel, "downLoadFailRetryLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (downLoadFailDialog, dialog_action_area8, "dialog_action_area8");
  GLADE_HOOKUP_OBJECT (downLoadFailDialog, cancelbutton3, "cancelbutton3");
  GLADE_HOOKUP_OBJECT (downLoadFailDialog, okbutton3, "okbutton3");

  return downLoadFailDialog;
}

GtkWidget*
create_downloadOpenDirOnlydialog (void)
{
  GtkWidget *downloadOpenDirOnlydialog;
  GtkWidget *dialog_vbox9;
  GtkWidget *vbox18;
  GtkWidget *downloadOpenDirNotifyLabel;
  GtkWidget *downloadOpenDirDescLabel;
  GtkWidget *downloadOpenDirNameLabel;
  GtkWidget *dialog_action_area9;
  GtkWidget *cancelbutton4;
  GtkWidget *okbutton4;

  downloadOpenDirOnlydialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (downloadOpenDirOnlydialog), _("down load complete"));
  gtk_window_set_type_hint (GTK_WINDOW (downloadOpenDirOnlydialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox9 = GTK_DIALOG (downloadOpenDirOnlydialog)->vbox;
  gtk_widget_show (dialog_vbox9);

  vbox18 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox18);
  gtk_box_pack_start (GTK_BOX (dialog_vbox9), vbox18, TRUE, TRUE, 0);

  downloadOpenDirNotifyLabel = gtk_label_new (_("Down load complete"));
  gtk_widget_show (downloadOpenDirNotifyLabel);
  gtk_box_pack_start (GTK_BOX (vbox18), downloadOpenDirNotifyLabel, FALSE, FALSE, 0);

  downloadOpenDirDescLabel = gtk_label_new (_("Do you want to open the directory?"));
  gtk_widget_show (downloadOpenDirDescLabel);
  gtk_box_pack_start (GTK_BOX (vbox18), downloadOpenDirDescLabel, FALSE, FALSE, 0);

  downloadOpenDirNameLabel = gtk_label_new (_("Directory"));
  gtk_widget_show (downloadOpenDirNameLabel);
  gtk_box_pack_start (GTK_BOX (vbox18), downloadOpenDirNameLabel, FALSE, FALSE, 0);

  dialog_action_area9 = GTK_DIALOG (downloadOpenDirOnlydialog)->action_area;
  gtk_widget_show (dialog_action_area9);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area9), GTK_BUTTONBOX_END);

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

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

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (downloadOpenDirOnlydialog, downloadOpenDirOnlydialog, "downloadOpenDirOnlydialog");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadOpenDirOnlydialog, dialog_vbox9, "dialog_vbox9");
  GLADE_HOOKUP_OBJECT (downloadOpenDirOnlydialog, vbox18, "vbox18");
  GLADE_HOOKUP_OBJECT (downloadOpenDirOnlydialog, downloadOpenDirNotifyLabel, "downloadOpenDirNotifyLabel");
  GLADE_HOOKUP_OBJECT (downloadOpenDirOnlydialog, downloadOpenDirDescLabel, "downloadOpenDirDescLabel");
  GLADE_HOOKUP_OBJECT (downloadOpenDirOnlydialog, downloadOpenDirNameLabel, "downloadOpenDirNameLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (downloadOpenDirOnlydialog, dialog_action_area9, "dialog_action_area9");
  GLADE_HOOKUP_OBJECT (downloadOpenDirOnlydialog, cancelbutton4, "cancelbutton4");
  GLADE_HOOKUP_OBJECT (downloadOpenDirOnlydialog, okbutton4, "okbutton4");

  return downloadOpenDirOnlydialog;
}

GtkWidget*
create_viewConfigWindow (void)
{
  GtkWidget *viewConfigWindow;
  GdkPixbuf *viewConfigWindow_icon_pixbuf;
  GtkWidget *vbox19;
  GtkWidget *frame19;
  GtkWidget *alignment23;
  GtkWidget *vbox21;
  GtkWidget *vbox22;
  GtkWidget *table4;
  GtkWidget *viewConfigGroupChkBtn;
  GtkWidget *viewConfigHostChkBtn;
  GtkWidget *viewConfigIPAddrChkBtn;
  GtkWidget *viewConfigLogonChkBtn;
  GtkWidget *viewConfigPriorityChkBtn;
  GtkWidget *viewConfigGridChkBtn;
  GtkWidget *listheaderDescriptionText;
  GtkWidget *ViewSettingFrame;
  GtkWidget *frame16;
  GtkWidget *alignment20;
  GtkWidget *vbox20;
  GtkWidget *frame17;
  GtkWidget *alignment21;
  GtkWidget *hbox23;
  GtkWidget *groupSortCheckBtn;
  GtkWidget *groupInverseBtn;
  GtkWidget *groupSortFrame;
  GtkWidget *frame18;
  GtkWidget *alignment22;
  GtkWidget *table3;
  GtkWidget *secondKeyUserRBtn;
  GSList *secondKeyUserRBtn_group = NULL;
  GtkWidget *secondKeyMachineRBtn;
  GtkWidget *secondKeyIPAddrRBtn;
  GtkWidget *secondKeyInverseBtn;
  GtkWidget *secondSortFrame;
  GtkWidget *SortSettingFrame;
  GtkWidget *hbox22;
  GtkWidget *viewConfigCloseBtn;
  GtkWidget *configApplyBtn;

  viewConfigWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (viewConfigWindow), _("View Config"));
  gtk_window_set_resizable (GTK_WINDOW (viewConfigWindow), FALSE);
  viewConfigWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (viewConfigWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (viewConfigWindow), viewConfigWindow_icon_pixbuf);
      gdk_pixbuf_unref (viewConfigWindow_icon_pixbuf);
    }

  vbox19 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox19);
  gtk_container_add (GTK_CONTAINER (viewConfigWindow), vbox19);

  frame19 = gtk_frame_new (NULL);
  gtk_widget_show (frame19);
  gtk_box_pack_start (GTK_BOX (vbox19), frame19, TRUE, TRUE, 0);

  alignment23 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment23);
  gtk_container_add (GTK_CONTAINER (frame19), alignment23);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment23), 0, 0, 12, 0);

  vbox21 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox21);
  gtk_container_add (GTK_CONTAINER (alignment23), vbox21);

  vbox22 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox22);
  gtk_box_pack_start (GTK_BOX (vbox21), vbox22, TRUE, TRUE, 0);

  table4 = gtk_table_new (2, 3, FALSE);
  gtk_widget_show (table4);
  gtk_box_pack_start (GTK_BOX (vbox22), table4, TRUE, TRUE, 0);

  viewConfigGroupChkBtn = gtk_check_button_new_with_mnemonic (_("Group"));
  gtk_widget_show (viewConfigGroupChkBtn);
  gtk_table_attach (GTK_TABLE (table4), viewConfigGroupChkBtn, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  viewConfigHostChkBtn = gtk_check_button_new_with_mnemonic (_("Host Name"));
  gtk_widget_show (viewConfigHostChkBtn);
  gtk_table_attach (GTK_TABLE (table4), viewConfigHostChkBtn, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  viewConfigIPAddrChkBtn = gtk_check_button_new_with_mnemonic (_("IP Address"));
  gtk_widget_show (viewConfigIPAddrChkBtn);
  gtk_table_attach (GTK_TABLE (table4), viewConfigIPAddrChkBtn, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  viewConfigLogonChkBtn = gtk_check_button_new_with_mnemonic (_("Logon Name"));
  gtk_widget_show (viewConfigLogonChkBtn);
  gtk_table_attach (GTK_TABLE (table4), viewConfigLogonChkBtn, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  viewConfigPriorityChkBtn = gtk_check_button_new_with_mnemonic (_("Priority"));
  gtk_widget_show (viewConfigPriorityChkBtn);
  gtk_table_attach (GTK_TABLE (table4), viewConfigPriorityChkBtn, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  viewConfigGridChkBtn = gtk_check_button_new_with_mnemonic (_("Show Grid"));
  gtk_widget_show (viewConfigGridChkBtn);
  gtk_table_attach (GTK_TABLE (table4), viewConfigGridChkBtn, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  listheaderDescriptionText = gtk_text_view_new ();
  gtk_widget_show (listheaderDescriptionText);
  gtk_box_pack_start (GTK_BOX (vbox22), listheaderDescriptionText, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (listheaderDescriptionText), 10);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (listheaderDescriptionText), FALSE);
  gtk_text_view_set_accepts_tab (GTK_TEXT_VIEW (listheaderDescriptionText), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (listheaderDescriptionText), GTK_WRAP_WORD);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (listheaderDescriptionText), FALSE);
  gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (listheaderDescriptionText)), _("You can reorder list header by drag-and-drop the list header."), -1);

  ViewSettingFrame = gtk_label_new (_("<b>user list view relevant options</b>"));
  gtk_widget_show (ViewSettingFrame);
  gtk_frame_set_label_widget (GTK_FRAME (frame19), ViewSettingFrame);
  gtk_label_set_use_markup (GTK_LABEL (ViewSettingFrame), TRUE);

  frame16 = gtk_frame_new (NULL);
  gtk_widget_show (frame16);
  gtk_box_pack_start (GTK_BOX (vbox19), frame16, TRUE, TRUE, 0);

  alignment20 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment20);
  gtk_container_add (GTK_CONTAINER (frame16), alignment20);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment20), 0, 0, 12, 0);

  vbox20 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox20);
  gtk_container_add (GTK_CONTAINER (alignment20), vbox20);

  frame17 = gtk_frame_new (NULL);
  gtk_widget_show (frame17);
  gtk_box_pack_start (GTK_BOX (vbox20), frame17, TRUE, FALSE, 0);

  alignment21 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment21);
  gtk_container_add (GTK_CONTAINER (frame17), alignment21);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment21), 0, 0, 12, 0);

  hbox23 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox23);
  gtk_container_add (GTK_CONTAINER (alignment21), hbox23);

  groupSortCheckBtn = gtk_check_button_new_with_mnemonic (_("Sort with group"));
  gtk_widget_show (groupSortCheckBtn);
  gtk_box_pack_start (GTK_BOX (hbox23), groupSortCheckBtn, TRUE, FALSE, 0);

  groupInverseBtn = gtk_toggle_button_new_with_mnemonic (_("Descending Sort"));
  gtk_widget_show (groupInverseBtn);
  gtk_box_pack_start (GTK_BOX (hbox23), groupInverseBtn, TRUE, FALSE, 0);

  groupSortFrame = gtk_label_new (_("<b>Sort with group</b>"));
  gtk_widget_show (groupSortFrame);
  gtk_frame_set_label_widget (GTK_FRAME (frame17), groupSortFrame);
  gtk_label_set_use_markup (GTK_LABEL (groupSortFrame), TRUE);

  frame18 = gtk_frame_new (NULL);
  gtk_widget_show (frame18);
  gtk_box_pack_start (GTK_BOX (vbox20), frame18, TRUE, FALSE, 0);

  alignment22 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment22);
  gtk_container_add (GTK_CONTAINER (frame18), alignment22);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment22), 0, 0, 12, 0);

  table3 = gtk_table_new (2, 2, TRUE);
  gtk_widget_show (table3);
  gtk_container_add (GTK_CONTAINER (alignment22), table3);
  gtk_table_set_row_spacings (GTK_TABLE (table3), 2);
  gtk_table_set_col_spacings (GTK_TABLE (table3), 2);

  secondKeyUserRBtn = gtk_radio_button_new_with_mnemonic (NULL, _("User Name"));
  gtk_widget_show (secondKeyUserRBtn);
  gtk_table_attach (GTK_TABLE (table3), secondKeyUserRBtn, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (secondKeyUserRBtn), secondKeyUserRBtn_group);
  secondKeyUserRBtn_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (secondKeyUserRBtn));
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (secondKeyUserRBtn), TRUE);

  secondKeyMachineRBtn = gtk_radio_button_new_with_mnemonic (NULL, _("Machine Name"));
  gtk_widget_show (secondKeyMachineRBtn);
  gtk_table_attach (GTK_TABLE (table3), secondKeyMachineRBtn, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (secondKeyMachineRBtn), secondKeyUserRBtn_group);
  secondKeyUserRBtn_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (secondKeyMachineRBtn));

  secondKeyIPAddrRBtn = gtk_radio_button_new_with_mnemonic (NULL, _("IP Address"));
  gtk_widget_show (secondKeyIPAddrRBtn);
  gtk_table_attach (GTK_TABLE (table3), secondKeyIPAddrRBtn, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (secondKeyIPAddrRBtn), secondKeyUserRBtn_group);
  secondKeyUserRBtn_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (secondKeyIPAddrRBtn));

  secondKeyInverseBtn = gtk_toggle_button_new_with_mnemonic (_("Descending Sort"));
  gtk_widget_show (secondKeyInverseBtn);
  gtk_table_attach (GTK_TABLE (table3), secondKeyInverseBtn, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  secondSortFrame = gtk_label_new (_("<b>Sort with following key</b>"));
  gtk_widget_show (secondSortFrame);
  gtk_frame_set_label_widget (GTK_FRAME (frame18), secondSortFrame);
  gtk_label_set_use_markup (GTK_LABEL (secondSortFrame), TRUE);

  SortSettingFrame = gtk_label_new (_("<b>Sotring Configuration</b>"));
  gtk_widget_show (SortSettingFrame);
  gtk_frame_set_label_widget (GTK_FRAME (frame16), SortSettingFrame);
  gtk_label_set_use_markup (GTK_LABEL (SortSettingFrame), TRUE);

  hbox22 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox22);
  gtk_box_pack_start (GTK_BOX (vbox19), hbox22, FALSE, FALSE, 0);

  viewConfigCloseBtn = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (viewConfigCloseBtn);
  gtk_box_pack_start (GTK_BOX (hbox22), viewConfigCloseBtn, FALSE, FALSE, 0);

  configApplyBtn = gtk_button_new_from_stock ("gtk-apply");
  gtk_widget_show (configApplyBtn);
  gtk_box_pack_start (GTK_BOX (hbox22), configApplyBtn, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) groupInverseBtn, "toggled",
                    G_CALLBACK (on_groupInverseBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) secondKeyInverseBtn, "toggled",
                    G_CALLBACK (on_secondKeyInverseBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) viewConfigCloseBtn, "clicked",
                    G_CALLBACK (on_viewConfigCloseBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configApplyBtn, "clicked",
                    G_CALLBACK (on_configApplyBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (viewConfigWindow, viewConfigWindow, "viewConfigWindow");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, vbox19, "vbox19");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, frame19, "frame19");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, alignment23, "alignment23");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, vbox21, "vbox21");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, vbox22, "vbox22");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, table4, "table4");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigGroupChkBtn, "viewConfigGroupChkBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigHostChkBtn, "viewConfigHostChkBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigIPAddrChkBtn, "viewConfigIPAddrChkBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigLogonChkBtn, "viewConfigLogonChkBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigPriorityChkBtn, "viewConfigPriorityChkBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigGridChkBtn, "viewConfigGridChkBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, listheaderDescriptionText, "listheaderDescriptionText");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, ViewSettingFrame, "ViewSettingFrame");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, frame16, "frame16");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, alignment20, "alignment20");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, vbox20, "vbox20");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, frame17, "frame17");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, alignment21, "alignment21");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, hbox23, "hbox23");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, groupSortCheckBtn, "groupSortCheckBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, groupInverseBtn, "groupInverseBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, groupSortFrame, "groupSortFrame");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, frame18, "frame18");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, alignment22, "alignment22");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, table3, "table3");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, secondKeyUserRBtn, "secondKeyUserRBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, secondKeyMachineRBtn, "secondKeyMachineRBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, secondKeyIPAddrRBtn, "secondKeyIPAddrRBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, secondKeyInverseBtn, "secondKeyInverseBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, secondSortFrame, "secondSortFrame");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, SortSettingFrame, "SortSettingFrame");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, hbox22, "hbox22");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, viewConfigCloseBtn, "viewConfigCloseBtn");
  GLADE_HOOKUP_OBJECT (viewConfigWindow, configApplyBtn, "configApplyBtn");

  return viewConfigWindow;
}

static GnomeUIInfo sortfilter1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 1"),
    NULL,
    (gpointer) on_set_priority1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 2"),
    NULL,
    (gpointer) on_set_priority_as_2_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 3"),
    NULL,
    (gpointer) on_set_priority_as_3_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set priority as 4"),
    NULL,
    (gpointer) on_set_priority_as_4_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set them as default"),
    NULL,
    (gpointer) on_set_as_default_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set them invisible item"),
    NULL,
    (gpointer) on_set_invisible_item_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("Show invisible items"),
    NULL,
    (gpointer) on_show_invisible_items1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Set all as default"),
    NULL,
    (gpointer) on_set_all_as_default_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo userlistPopUpMenu_uiinfo[] =
{
  {
    GNOME_APP_UI_SUBTREE, N_("Sort filter"),
    NULL,
    sortfilter1_menu_uiinfo, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Group selection"),
    NULL,
    (gpointer) on_groupselection_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("AttachmentFile"),
    NULL,
    (gpointer) on_attachmentfile_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  {
    GNOME_APP_UI_ITEM, N_("Save list headers state"),
    NULL,
    (gpointer) on_save_list_headers_state1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("User list view config"),
    NULL,
    (gpointer) on_set_user_list_view_config_activate, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

GtkWidget*
create_userlistPopUpMenu (void)
{
  GtkWidget *userlistPopUpMenu;
  GtkAccelGroup *accel_group;

  accel_group = gtk_accel_group_new ();

  userlistPopUpMenu = gtk_menu_new ();
  gnome_app_fill_menu (GTK_MENU_SHELL (userlistPopUpMenu), userlistPopUpMenu_uiinfo,
                       accel_group, FALSE, 0);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (userlistPopUpMenu, userlistPopUpMenu, "userlistPopUpMenu");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, userlistPopUpMenu_uiinfo[0].widget, "sortfilter1");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[0].widget, "set_priority1");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[1].widget, "set_priority_as_2");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[2].widget, "set_priority_as_3");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[3].widget, "set_priority_as_4");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[4].widget, "set_as_default");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[5].widget, "set_invisible_item");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[6].widget, "_______________2");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[7].widget, "show_invisible_items1");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, sortfilter1_menu_uiinfo[8].widget, "set_all_as_default");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, userlistPopUpMenu_uiinfo[1].widget, "groupselection");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, userlistPopUpMenu_uiinfo[2].widget, "attachmentfile");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, userlistPopUpMenu_uiinfo[3].widget, "_______________3");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, userlistPopUpMenu_uiinfo[4].widget, "save_list_headers_state1");
  GLADE_HOOKUP_OBJECT (userlistPopUpMenu, userlistPopUpMenu_uiinfo[5].widget, "set_user_list_view_config");

  gtk_menu_set_accel_group (GTK_MENU (userlistPopUpMenu), accel_group);

  return userlistPopUpMenu;
}

GtkWidget*
create_clientInfoWindow (void)
{
  GtkWidget *clientInfoWindow;
  GdkPixbuf *clientInfoWindow_icon_pixbuf;
  GtkWidget *clientInfoFrame;
  GtkWidget *alignment24;
  GtkWidget *vbox25;
  GtkWidget *vbox26;
  GtkWidget *clientInfoTypeLabel;
  GtkWidget *clientInfoUserLabel;
  GtkWidget *scrolledwindow14;
  GtkWidget *clientInfoTextview;
  GtkWidget *clientInfoOKBtn;
  GtkWidget *clientInfoFrameLabel;

  clientInfoWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (clientInfoWindow), _("client information"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (clientInfoWindow), TRUE);
  clientInfoWindow_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.xpm");
  if (clientInfoWindow_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (clientInfoWindow), clientInfoWindow_icon_pixbuf);
      gdk_pixbuf_unref (clientInfoWindow_icon_pixbuf);
    }

  clientInfoFrame = gtk_frame_new (NULL);
  gtk_widget_show (clientInfoFrame);
  gtk_container_add (GTK_CONTAINER (clientInfoWindow), clientInfoFrame);

  alignment24 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment24);
  gtk_container_add (GTK_CONTAINER (clientInfoFrame), alignment24);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment24), 0, 0, 12, 0);

  vbox25 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox25);
  gtk_container_add (GTK_CONTAINER (alignment24), vbox25);

  vbox26 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox26);
  gtk_box_pack_start (GTK_BOX (vbox25), vbox26, FALSE, FALSE, 0);

  clientInfoTypeLabel = gtk_label_new ("");
  gtk_widget_show (clientInfoTypeLabel);
  gtk_box_pack_start (GTK_BOX (vbox26), clientInfoTypeLabel, FALSE, FALSE, 0);

  clientInfoUserLabel = gtk_label_new ("");
  gtk_widget_show (clientInfoUserLabel);
  gtk_box_pack_start (GTK_BOX (vbox26), clientInfoUserLabel, FALSE, FALSE, 0);

  scrolledwindow14 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow14);
  gtk_box_pack_start (GTK_BOX (vbox25), scrolledwindow14, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow14), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow14), GTK_SHADOW_IN);

  clientInfoTextview = gtk_text_view_new ();
  gtk_widget_show (clientInfoTextview);
  gtk_container_add (GTK_CONTAINER (scrolledwindow14), clientInfoTextview);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (clientInfoTextview), FALSE);

  clientInfoOKBtn = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (clientInfoOKBtn);
  gtk_box_pack_start (GTK_BOX (vbox25), clientInfoOKBtn, FALSE, FALSE, 0);

  clientInfoFrameLabel = gtk_label_new (_("<b>Client Information</b>"));
  gtk_widget_show (clientInfoFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (clientInfoFrame), clientInfoFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (clientInfoFrameLabel), TRUE);

  g_signal_connect ((gpointer) clientInfoOKBtn, "clicked",
                    G_CALLBACK (on_clientInfoOKBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (clientInfoWindow, clientInfoWindow, "clientInfoWindow");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, clientInfoFrame, "clientInfoFrame");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, alignment24, "alignment24");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, vbox25, "vbox25");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, vbox26, "vbox26");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, clientInfoTypeLabel, "clientInfoTypeLabel");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, clientInfoUserLabel, "clientInfoUserLabel");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, scrolledwindow14, "scrolledwindow14");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, clientInfoTextview, "clientInfoTextview");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, clientInfoOKBtn, "clientInfoOKBtn");
  GLADE_HOOKUP_OBJECT (clientInfoWindow, clientInfoFrameLabel, "clientInfoFrameLabel");

  return clientInfoWindow;
}

GtkWidget*
create_securityConfig (void)
{
  GtkWidget *securityConfig;
  GdkPixbuf *securityConfig_icon_pixbuf;
  GtkWidget *vbox28;
  GtkWidget *hostlistControlFrame;
  GtkWidget *alignment25;
  GtkWidget *vbox29;
  GtkWidget *sendHostListChkBtn;
  GtkWidget *obtainHostlistChkBtn;
  GtkWidget *hostlistControlFrameLabel;
  GtkWidget *ConfigCipherFrame;
  GtkWidget *alignment26;
  GtkWidget *table5;
  GtkWidget *configRC2Bit40Btn;
  GtkWidget *configRC2Bit128Btn;
  GtkWidget *configRC2Bit256Btn;
  GtkWidget *configBFBit128Btn;
  GtkWidget *configBFBit256Btn;
  GtkWidget *configMD5Btn;
  GtkWidget *configSHA1Btn;
  GtkWidget *configRSABit512Btn;
  GtkWidget *configRSABit1024Btn;
  GtkWidget *configRSABit2048Btn;
  GtkWidget *configAESBit128Btn;
  GtkWidget *configAESBit192Btn;
  GtkWidget *configAESBit256Btn;
  GtkWidget *ConfigCipherLabel;
  GtkWidget *configGenericSecurityFrame;
  GtkWidget *alignment27;
  GtkWidget *vbox32;
  GtkWidget *keySelectAlgoCBtn;
  GtkWidget *hbox26;
  GtkWidget *RSAKeyEncryptionCBtn;
  GtkWidget *pubkeyPWDBtn;
  GtkWidget *hbox25;
  GtkWidget *useLockCBtn;
  GtkWidget *lockPWDBtn;
  GtkWidget *ConfigGenericSecurityFLbl;
  GtkWidget *hbuttonbox4;
  GtkWidget *configSecurityOKBtn;
  GtkWidget *configSecurityCancelBtn;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  securityConfig = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (securityConfig), _("Host List Control/Security"));
  gtk_window_set_resizable (GTK_WINDOW (securityConfig), FALSE);
  securityConfig_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.png");
  if (securityConfig_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (securityConfig), securityConfig_icon_pixbuf);
      gdk_pixbuf_unref (securityConfig_icon_pixbuf);
    }

  vbox28 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox28);
  gtk_container_add (GTK_CONTAINER (securityConfig), vbox28);

  hostlistControlFrame = gtk_frame_new (NULL);
  gtk_widget_show (hostlistControlFrame);
  gtk_box_pack_start (GTK_BOX (vbox28), hostlistControlFrame, TRUE, TRUE, 0);

  alignment25 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment25);
  gtk_container_add (GTK_CONTAINER (hostlistControlFrame), alignment25);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment25), 0, 0, 12, 0);

  vbox29 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox29);
  gtk_container_add (GTK_CONTAINER (alignment25), vbox29);

  sendHostListChkBtn = gtk_check_button_new_with_mnemonic (_("Allow host list sending"));
  gtk_widget_show (sendHostListChkBtn);
  gtk_box_pack_start (GTK_BOX (vbox29), sendHostListChkBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, sendHostListChkBtn, _("Please check here if you want to send your host list to other hosts."), NULL);

  obtainHostlistChkBtn = gtk_check_button_new_with_mnemonic (_("Enable getting host list facility"));
  gtk_widget_show (obtainHostlistChkBtn);
  gtk_box_pack_start (GTK_BOX (vbox29), obtainHostlistChkBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, obtainHostlistChkBtn, _("Please check here if you want to obtain host lists from other hosts."), NULL);

  hostlistControlFrameLabel = gtk_label_new (_("<b>Host list</b>"));
  gtk_widget_show (hostlistControlFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (hostlistControlFrame), hostlistControlFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (hostlistControlFrameLabel), TRUE);

  ConfigCipherFrame = gtk_frame_new (NULL);
  gtk_widget_show (ConfigCipherFrame);
  gtk_box_pack_start (GTK_BOX (vbox28), ConfigCipherFrame, TRUE, TRUE, 0);

  alignment26 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment26);
  gtk_container_add (GTK_CONTAINER (ConfigCipherFrame), alignment26);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment26), 0, 0, 12, 0);

  table5 = gtk_table_new (5, 3, FALSE);
  gtk_widget_show (table5);
  gtk_container_add (GTK_CONTAINER (alignment26), table5);

  configRC2Bit40Btn = gtk_check_button_new_with_mnemonic (_("RC2 40 bits"));
  gtk_widget_show (configRC2Bit40Btn);
  gtk_table_attach (GTK_TABLE (table5), configRC2Bit40Btn, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configRC2Bit40Btn, _("Please check here if you want to use RC2 40 bits key for encryption."), NULL);

  configRC2Bit128Btn = gtk_check_button_new_with_mnemonic (_("RC2 128 bits"));
  gtk_widget_show (configRC2Bit128Btn);
  gtk_table_attach (GTK_TABLE (table5), configRC2Bit128Btn, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configRC2Bit128Btn, _("Please check here if you want to use RC2 128 bits key for encryption."), NULL);

  configRC2Bit256Btn = gtk_check_button_new_with_mnemonic (_("RC2 256 bits"));
  gtk_widget_show (configRC2Bit256Btn);
  gtk_table_attach (GTK_TABLE (table5), configRC2Bit256Btn, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configRC2Bit256Btn, _("Please check here if you want to use RC2 256 bits key for encryption."), NULL);

  configBFBit128Btn = gtk_check_button_new_with_mnemonic (_("Blowfish 128 bits"));
  gtk_widget_show (configBFBit128Btn);
  gtk_table_attach (GTK_TABLE (table5), configBFBit128Btn, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configBFBit128Btn, _("Please check here if you want to use blowfish 128 bits key for encryption."), NULL);

  configBFBit256Btn = gtk_check_button_new_with_mnemonic (_("Blowfish 256 bits"));
  gtk_widget_show (configBFBit256Btn);
  gtk_table_attach (GTK_TABLE (table5), configBFBit256Btn, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configBFBit256Btn, _("Please check here if you want to use blowfish 256 bits key for encryption."), NULL);

  configMD5Btn = gtk_check_button_new_with_mnemonic (_("MD5 sign"));
  gtk_widget_show (configMD5Btn);
  gtk_table_attach (GTK_TABLE (table5), configMD5Btn, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configMD5Btn, _("Please check here if you want to use MD5 hash function to sign your messages."), NULL);

  configSHA1Btn = gtk_check_button_new_with_mnemonic (_("SHA1 sign"));
  gtk_widget_show (configSHA1Btn);
  gtk_table_attach (GTK_TABLE (table5), configSHA1Btn, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configSHA1Btn, _("Please check here if you want to use SHA1 hash function to sign your messages."), NULL);

  configRSABit512Btn = gtk_check_button_new_with_mnemonic (_("RSA 512 bits"));
  gtk_widget_show (configRSABit512Btn);
  gtk_table_attach (GTK_TABLE (table5), configRSABit512Btn, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configRSABit512Btn, _("Please check here if you want to use RSA 512 bits key to encrypt the common key."), NULL);

  configRSABit1024Btn = gtk_check_button_new_with_mnemonic (_("RSA 1024 bits"));
  gtk_widget_show (configRSABit1024Btn);
  gtk_table_attach (GTK_TABLE (table5), configRSABit1024Btn, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configRSABit1024Btn, _("Please check here if you want to use RSA 1024 bits key to encrypt the common key."), NULL);

  configRSABit2048Btn = gtk_check_button_new_with_mnemonic (_("RSA 2048 bits"));
  gtk_widget_show (configRSABit2048Btn);
  gtk_table_attach (GTK_TABLE (table5), configRSABit2048Btn, 2, 3, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configRSABit2048Btn, _("Please check here if you want to use RSA 2048 bits key to encrypt the common key."), NULL);

  configAESBit128Btn = gtk_check_button_new_with_mnemonic (_("AES 128 bits"));
  gtk_widget_show (configAESBit128Btn);
  gtk_table_attach (GTK_TABLE (table5), configAESBit128Btn, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configAESBit128Btn, _("Please check here if you want to use AES 128 bits key for encryption."), NULL);

  configAESBit192Btn = gtk_check_button_new_with_mnemonic (_("AES 192 bits"));
  gtk_widget_show (configAESBit192Btn);
  gtk_table_attach (GTK_TABLE (table5), configAESBit192Btn, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configAESBit192Btn, _("Please check here if you want to use AES 192 bits key for encryption."), NULL);

  configAESBit256Btn = gtk_check_button_new_with_mnemonic (_("AES 256 bits"));
  gtk_widget_show (configAESBit256Btn);
  gtk_table_attach (GTK_TABLE (table5), configAESBit256Btn, 2, 3, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, configAESBit256Btn, _("Please check here if you want to use AES 256 bits key for encryption."), NULL);

  ConfigCipherLabel = gtk_label_new (_("<b>Cipher selection</b>"));
  gtk_widget_show (ConfigCipherLabel);
  gtk_frame_set_label_widget (GTK_FRAME (ConfigCipherFrame), ConfigCipherLabel);
  gtk_label_set_use_markup (GTK_LABEL (ConfigCipherLabel), TRUE);

  configGenericSecurityFrame = gtk_frame_new (NULL);
  gtk_widget_show (configGenericSecurityFrame);
  gtk_box_pack_start (GTK_BOX (vbox28), configGenericSecurityFrame, TRUE, TRUE, 0);

  alignment27 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment27);
  gtk_container_add (GTK_CONTAINER (configGenericSecurityFrame), alignment27);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment27), 0, 0, 12, 0);

  vbox32 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox32);
  gtk_container_add (GTK_CONTAINER (alignment27), vbox32);

  keySelectAlgoCBtn = gtk_check_button_new_with_mnemonic (_("Select the encrypt key according to its speed"));
  gtk_widget_show (keySelectAlgoCBtn);
  gtk_box_pack_start (GTK_BOX (vbox32), keySelectAlgoCBtn, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, keySelectAlgoCBtn, _("Please check here if you want to select the common key according to its coding speed.Please note that some clients can not handle arbitary combinations of keys(i.e. Windows client can handle RSA 1024 bits with Blowfish 128 bits or RSA 512 bits with RC2 40 bits)."), NULL);

  hbox26 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox26);
  gtk_box_pack_start (GTK_BOX (vbox32), hbox26, TRUE, TRUE, 0);

  RSAKeyEncryptionCBtn = gtk_check_button_new_with_mnemonic (_("Store encrypted public/private key pairs"));
  gtk_widget_show (RSAKeyEncryptionCBtn);
  gtk_box_pack_start (GTK_BOX (hbox26), RSAKeyEncryptionCBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, RSAKeyEncryptionCBtn, _("Please check here if you want to store public/private keys with encryption ."), NULL);

  pubkeyPWDBtn = gtk_button_new_with_mnemonic (_("set password"));
  gtk_widget_show (pubkeyPWDBtn);
  gtk_box_pack_start (GTK_BOX (hbox26), pubkeyPWDBtn, TRUE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, pubkeyPWDBtn, _("Please push this button to set password for private/public key encryption."), NULL);

  hbox25 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox25);
  gtk_box_pack_start (GTK_BOX (vbox32), hbox25, TRUE, TRUE, 0);

  useLockCBtn = gtk_check_button_new_with_mnemonic (_("Enable lock for enclosed messages"));
  gtk_widget_show (useLockCBtn);
  gtk_box_pack_start (GTK_BOX (hbox25), useLockCBtn, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, useLockCBtn, _("Please check here if you want to use the lock feature(Sent messages can be opened by receiver's password.)"), NULL);

  lockPWDBtn = gtk_button_new_with_mnemonic (_("set password"));
  gtk_widget_show (lockPWDBtn);
  gtk_box_pack_start (GTK_BOX (hbox25), lockPWDBtn, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, lockPWDBtn, _("Please push this button to set password for unlock messages."), NULL);

  ConfigGenericSecurityFLbl = gtk_label_new (_("<b>Security Relevant Options</b>"));
  gtk_widget_show (ConfigGenericSecurityFLbl);
  gtk_frame_set_label_widget (GTK_FRAME (configGenericSecurityFrame), ConfigGenericSecurityFLbl);
  gtk_label_set_use_markup (GTK_LABEL (ConfigGenericSecurityFLbl), TRUE);

  hbuttonbox4 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox4);
  gtk_box_pack_start (GTK_BOX (vbox28), hbuttonbox4, TRUE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox4), GTK_BUTTONBOX_SPREAD);

  configSecurityOKBtn = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (configSecurityOKBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox4), configSecurityOKBtn);
  GTK_WIDGET_SET_FLAGS (configSecurityOKBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, configSecurityOKBtn, _("Please push this button to apply the configuration."), NULL);

  configSecurityCancelBtn = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (configSecurityCancelBtn);
  gtk_container_add (GTK_CONTAINER (hbuttonbox4), configSecurityCancelBtn);
  GTK_WIDGET_SET_FLAGS (configSecurityCancelBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, configSecurityCancelBtn, _("Please push this button to discard the configuration."), NULL);

  g_signal_connect ((gpointer) RSAKeyEncryptionCBtn, "toggled",
                    G_CALLBACK (on_RSAKeyEncryptionCBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) pubkeyPWDBtn, "clicked",
                    G_CALLBACK (on_pubkeyPWDBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) useLockCBtn, "toggled",
                    G_CALLBACK (on_useLockCBtn_toggled),
                    NULL);
  g_signal_connect ((gpointer) lockPWDBtn, "clicked",
                    G_CALLBACK (on_lockPWDBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configSecurityOKBtn, "clicked",
                    G_CALLBACK (on_configSecurityOKBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) configSecurityCancelBtn, "clicked",
                    G_CALLBACK (on_configSecurityCancelBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (securityConfig, securityConfig, "securityConfig");
  GLADE_HOOKUP_OBJECT (securityConfig, vbox28, "vbox28");
  GLADE_HOOKUP_OBJECT (securityConfig, hostlistControlFrame, "hostlistControlFrame");
  GLADE_HOOKUP_OBJECT (securityConfig, alignment25, "alignment25");
  GLADE_HOOKUP_OBJECT (securityConfig, vbox29, "vbox29");
  GLADE_HOOKUP_OBJECT (securityConfig, sendHostListChkBtn, "sendHostListChkBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, obtainHostlistChkBtn, "obtainHostlistChkBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, hostlistControlFrameLabel, "hostlistControlFrameLabel");
  GLADE_HOOKUP_OBJECT (securityConfig, ConfigCipherFrame, "ConfigCipherFrame");
  GLADE_HOOKUP_OBJECT (securityConfig, alignment26, "alignment26");
  GLADE_HOOKUP_OBJECT (securityConfig, table5, "table5");
  GLADE_HOOKUP_OBJECT (securityConfig, configRC2Bit40Btn, "configRC2Bit40Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configRC2Bit128Btn, "configRC2Bit128Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configRC2Bit256Btn, "configRC2Bit256Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configBFBit128Btn, "configBFBit128Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configBFBit256Btn, "configBFBit256Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configMD5Btn, "configMD5Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configSHA1Btn, "configSHA1Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configRSABit512Btn, "configRSABit512Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configRSABit1024Btn, "configRSABit1024Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configRSABit2048Btn, "configRSABit2048Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configAESBit128Btn, "configAESBit128Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configAESBit192Btn, "configAESBit192Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, configAESBit256Btn, "configAESBit256Btn");
  GLADE_HOOKUP_OBJECT (securityConfig, ConfigCipherLabel, "ConfigCipherLabel");
  GLADE_HOOKUP_OBJECT (securityConfig, configGenericSecurityFrame, "configGenericSecurityFrame");
  GLADE_HOOKUP_OBJECT (securityConfig, alignment27, "alignment27");
  GLADE_HOOKUP_OBJECT (securityConfig, vbox32, "vbox32");
  GLADE_HOOKUP_OBJECT (securityConfig, keySelectAlgoCBtn, "keySelectAlgoCBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, hbox26, "hbox26");
  GLADE_HOOKUP_OBJECT (securityConfig, RSAKeyEncryptionCBtn, "RSAKeyEncryptionCBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, pubkeyPWDBtn, "pubkeyPWDBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, hbox25, "hbox25");
  GLADE_HOOKUP_OBJECT (securityConfig, useLockCBtn, "useLockCBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, lockPWDBtn, "lockPWDBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, ConfigGenericSecurityFLbl, "ConfigGenericSecurityFLbl");
  GLADE_HOOKUP_OBJECT (securityConfig, hbuttonbox4, "hbuttonbox4");
  GLADE_HOOKUP_OBJECT (securityConfig, configSecurityOKBtn, "configSecurityOKBtn");
  GLADE_HOOKUP_OBJECT (securityConfig, configSecurityCancelBtn, "configSecurityCancelBtn");
  GLADE_HOOKUP_OBJECT_NO_REF (securityConfig, tooltips, "tooltips");

  return securityConfig;
}

GtkWidget*
create_passwdDialog (void)
{
  GtkWidget *passwdDialog;
  GdkPixbuf *passwdDialog_icon_pixbuf;
  GtkWidget *dialog_vbox10;
  GtkWidget *hbox27;
  GtkWidget *PassWordDialogLabel;
  GtkWidget *passwordEntry;
  GtkWidget *dialog_action_area10;
  GtkWidget *passWordDialogCancelBtn;
  GtkWidget *passWordDialogCOKBtn;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  passwdDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (passwdDialog), _("Password"));
  gtk_window_set_resizable (GTK_WINDOW (passwdDialog), FALSE);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (passwdDialog), TRUE);
  passwdDialog_icon_pixbuf = create_pixbuf ("g2ipmsg/ipmsg.png");
  if (passwdDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (passwdDialog), passwdDialog_icon_pixbuf);
      gdk_pixbuf_unref (passwdDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (passwdDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox10 = GTK_DIALOG (passwdDialog)->vbox;
  gtk_widget_show (dialog_vbox10);

  hbox27 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox27);
  gtk_box_pack_start (GTK_BOX (dialog_vbox10), hbox27, TRUE, TRUE, 0);

  PassWordDialogLabel = gtk_label_new (_("password"));
  gtk_widget_show (PassWordDialogLabel);
  gtk_box_pack_start (GTK_BOX (hbox27), PassWordDialogLabel, TRUE, TRUE, 0);

  passwordEntry = gtk_entry_new ();
  gtk_widget_show (passwordEntry);
  gtk_box_pack_start (GTK_BOX (hbox27), passwordEntry, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, passwordEntry, _("Please input password here(push OK button to finish.)."), NULL);
  gtk_entry_set_visibility (GTK_ENTRY (passwordEntry), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (passwordEntry), 8226);

  dialog_action_area10 = GTK_DIALOG (passwdDialog)->action_area;
  gtk_widget_show (dialog_action_area10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END);

  passWordDialogCancelBtn = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (passWordDialogCancelBtn);
  gtk_dialog_add_action_widget (GTK_DIALOG (passwdDialog), passWordDialogCancelBtn, GTK_RESPONSE_CANCEL);
  GTK_WIDGET_SET_FLAGS (passWordDialogCancelBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, passWordDialogCancelBtn, _("Please push this button to discard your input."), NULL);

  passWordDialogCOKBtn = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (passWordDialogCOKBtn);
  gtk_dialog_add_action_widget (GTK_DIALOG (passwdDialog), passWordDialogCOKBtn, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (passWordDialogCOKBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, passWordDialogCOKBtn, _("Please push this button to finish inputing password."), NULL);

  g_signal_connect ((gpointer) passwordEntry, "activate",
                    G_CALLBACK (on_passwordEntry_activate),
                    NULL);
  g_signal_connect ((gpointer) passWordDialogCancelBtn, "clicked",
                    G_CALLBACK (on_passWordDialogCancelBtn_clicked),
                    NULL);
  g_signal_connect ((gpointer) passWordDialogCOKBtn, "clicked",
                    G_CALLBACK (on_passWordDialogCOKBtn_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (passwdDialog, passwdDialog, "passwdDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (passwdDialog, dialog_vbox10, "dialog_vbox10");
  GLADE_HOOKUP_OBJECT (passwdDialog, hbox27, "hbox27");
  GLADE_HOOKUP_OBJECT (passwdDialog, PassWordDialogLabel, "PassWordDialogLabel");
  GLADE_HOOKUP_OBJECT (passwdDialog, passwordEntry, "passwordEntry");
  GLADE_HOOKUP_OBJECT_NO_REF (passwdDialog, dialog_action_area10, "dialog_action_area10");
  GLADE_HOOKUP_OBJECT (passwdDialog, passWordDialogCancelBtn, "passWordDialogCancelBtn");
  GLADE_HOOKUP_OBJECT (passwdDialog, passWordDialogCOKBtn, "passWordDialogCOKBtn");
  GLADE_HOOKUP_OBJECT_NO_REF (passwdDialog, tooltips, "tooltips");

  return passwdDialog;
}

GtkWidget*
create_errorDialog (void)
{
  GtkWidget *errorDialog;
  GtkWidget *dialog_vbox12;
  GtkWidget *errorDialogvbox;
  GtkWidget *errorDialogErrorTitleLabel;
  GtkWidget *frame20;
  GtkWidget *alignment28;
  GtkWidget *table6;
  GtkWidget *errorDialogErrInfoFileLabel;
  GtkWidget *errorDialogErrInfoFuncLabel;
  GtkWidget *errorDialogErrInfoLineLabel;
  GtkWidget *errorDialogErrInfoFileNameContLabel;
  GtkWidget *errorDialogErrInfoFunctionContLabel;
  GtkWidget *errorDialogErrInfoFileLineContLabel;
  GtkWidget *errorDialogErrorInfoLabel;
  GtkWidget *errorDialogErrorMSGFrame;
  GtkWidget *alignment29;
  GtkWidget *scrolledwindow15;
  GtkWidget *errorDialogErrorTextView;
  GtkWidget *errorDialogErrorMSGFrameLabel;
  GtkWidget *dialog_action_area12;
  GtkWidget *errorDialogCloseBtn;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  errorDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (errorDialog), _("error"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (errorDialog), TRUE);
  gtk_window_set_icon_name (GTK_WINDOW (errorDialog), "gtk-dialog-error");
  gtk_window_set_type_hint (GTK_WINDOW (errorDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox12 = GTK_DIALOG (errorDialog)->vbox;
  gtk_widget_show (dialog_vbox12);

  errorDialogvbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (errorDialogvbox);
  gtk_box_pack_start (GTK_BOX (dialog_vbox12), errorDialogvbox, TRUE, TRUE, 0);

  errorDialogErrorTitleLabel = gtk_label_new (_("g2ipmsg detects an error"));
  gtk_widget_show (errorDialogErrorTitleLabel);
  gtk_box_pack_start (GTK_BOX (errorDialogvbox), errorDialogErrorTitleLabel, FALSE, FALSE, 0);

  frame20 = gtk_frame_new (NULL);
  gtk_widget_show (frame20);
  gtk_box_pack_start (GTK_BOX (errorDialogvbox), frame20, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame20), GTK_SHADOW_ETCHED_OUT);

  alignment28 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment28);
  gtk_container_add (GTK_CONTAINER (frame20), alignment28);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment28), 0, 0, 12, 0);

  table6 = gtk_table_new (3, 2, FALSE);
  gtk_widget_show (table6);
  gtk_container_add (GTK_CONTAINER (alignment28), table6);

  errorDialogErrInfoFileLabel = gtk_label_new (_("FileName"));
  gtk_widget_show (errorDialogErrInfoFileLabel);
  gtk_table_attach (GTK_TABLE (table6), errorDialogErrInfoFileLabel, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (errorDialogErrInfoFileLabel), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (errorDialogErrInfoFileLabel), 4, 4);

  errorDialogErrInfoFuncLabel = gtk_label_new (_("Function"));
  gtk_widget_show (errorDialogErrInfoFuncLabel);
  gtk_table_attach (GTK_TABLE (table6), errorDialogErrInfoFuncLabel, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (errorDialogErrInfoFuncLabel), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (errorDialogErrInfoFuncLabel), 4, 4);

  errorDialogErrInfoLineLabel = gtk_label_new (_("Line"));
  gtk_widget_show (errorDialogErrInfoLineLabel);
  gtk_table_attach (GTK_TABLE (table6), errorDialogErrInfoLineLabel, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (errorDialogErrInfoLineLabel), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (errorDialogErrInfoLineLabel), 4, 4);

  errorDialogErrInfoFileNameContLabel = gtk_label_new ("");
  gtk_widget_show (errorDialogErrInfoFileNameContLabel);
  gtk_table_attach (GTK_TABLE (table6), errorDialogErrInfoFileNameContLabel, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_label_set_justify (GTK_LABEL (errorDialogErrInfoFileNameContLabel), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (errorDialogErrInfoFileNameContLabel), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (errorDialogErrInfoFileNameContLabel), 4, 4);

  errorDialogErrInfoFunctionContLabel = gtk_label_new ("");
  gtk_widget_show (errorDialogErrInfoFunctionContLabel);
  gtk_table_attach (GTK_TABLE (table6), errorDialogErrInfoFunctionContLabel, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_label_set_justify (GTK_LABEL (errorDialogErrInfoFunctionContLabel), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (errorDialogErrInfoFunctionContLabel), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (errorDialogErrInfoFunctionContLabel), 4, 4);

  errorDialogErrInfoFileLineContLabel = gtk_label_new ("");
  gtk_widget_show (errorDialogErrInfoFileLineContLabel);
  gtk_table_attach (GTK_TABLE (table6), errorDialogErrInfoFileLineContLabel, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (errorDialogErrInfoFileLineContLabel), GTK_JUSTIFY_RIGHT);
  gtk_misc_set_alignment (GTK_MISC (errorDialogErrInfoFileLineContLabel), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (errorDialogErrInfoFileLineContLabel), 4, 4);

  errorDialogErrorInfoLabel = gtk_label_new (_("<b>Error Information</b>"));
  gtk_widget_show (errorDialogErrorInfoLabel);
  gtk_frame_set_label_widget (GTK_FRAME (frame20), errorDialogErrorInfoLabel);
  gtk_label_set_use_markup (GTK_LABEL (errorDialogErrorInfoLabel), TRUE);

  errorDialogErrorMSGFrame = gtk_frame_new (NULL);
  gtk_widget_show (errorDialogErrorMSGFrame);
  gtk_box_pack_start (GTK_BOX (errorDialogvbox), errorDialogErrorMSGFrame, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (errorDialogErrorMSGFrame), GTK_SHADOW_NONE);

  alignment29 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment29);
  gtk_container_add (GTK_CONTAINER (errorDialogErrorMSGFrame), alignment29);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment29), 0, 0, 12, 0);

  scrolledwindow15 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow15);
  gtk_container_add (GTK_CONTAINER (alignment29), scrolledwindow15);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow15), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow15), GTK_SHADOW_ETCHED_OUT);

  errorDialogErrorTextView = gtk_text_view_new ();
  gtk_widget_show (errorDialogErrorTextView);
  gtk_container_add (GTK_CONTAINER (scrolledwindow15), errorDialogErrorTextView);
  gtk_tooltips_set_tip (tooltips, errorDialogErrorTextView, _("Descriptions of the error."), NULL);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (errorDialogErrorTextView), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (errorDialogErrorTextView), GTK_WRAP_CHAR);

  errorDialogErrorMSGFrameLabel = gtk_label_new (_("<b>Error Message</b>"));
  gtk_widget_show (errorDialogErrorMSGFrameLabel);
  gtk_frame_set_label_widget (GTK_FRAME (errorDialogErrorMSGFrame), errorDialogErrorMSGFrameLabel);
  gtk_label_set_use_markup (GTK_LABEL (errorDialogErrorMSGFrameLabel), TRUE);

  dialog_action_area12 = GTK_DIALOG (errorDialog)->action_area;
  gtk_widget_show (dialog_action_area12);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area12), GTK_BUTTONBOX_END);

  errorDialogCloseBtn = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (errorDialogCloseBtn);
  gtk_dialog_add_action_widget (GTK_DIALOG (errorDialog), errorDialogCloseBtn, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (errorDialogCloseBtn, GTK_CAN_DEFAULT);
  gtk_tooltips_set_tip (tooltips, errorDialogCloseBtn, _("Please push this button to close this dialog."), NULL);

  g_signal_connect ((gpointer) errorDialogCloseBtn, "pressed",
                    G_CALLBACK (on_errorDialogCloseBtn_pressed),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (errorDialog, errorDialog, "errorDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (errorDialog, dialog_vbox12, "dialog_vbox12");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogvbox, "errorDialogvbox");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrorTitleLabel, "errorDialogErrorTitleLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, frame20, "frame20");
  GLADE_HOOKUP_OBJECT (errorDialog, alignment28, "alignment28");
  GLADE_HOOKUP_OBJECT (errorDialog, table6, "table6");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrInfoFileLabel, "errorDialogErrInfoFileLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrInfoFuncLabel, "errorDialogErrInfoFuncLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrInfoLineLabel, "errorDialogErrInfoLineLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrInfoFileNameContLabel, "errorDialogErrInfoFileNameContLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrInfoFunctionContLabel, "errorDialogErrInfoFunctionContLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrInfoFileLineContLabel, "errorDialogErrInfoFileLineContLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrorInfoLabel, "errorDialogErrorInfoLabel");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrorMSGFrame, "errorDialogErrorMSGFrame");
  GLADE_HOOKUP_OBJECT (errorDialog, alignment29, "alignment29");
  GLADE_HOOKUP_OBJECT (errorDialog, scrolledwindow15, "scrolledwindow15");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrorTextView, "errorDialogErrorTextView");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogErrorMSGFrameLabel, "errorDialogErrorMSGFrameLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (errorDialog, dialog_action_area12, "dialog_action_area12");
  GLADE_HOOKUP_OBJECT (errorDialog, errorDialogCloseBtn, "errorDialogCloseBtn");
  GLADE_HOOKUP_OBJECT_NO_REF (errorDialog, tooltips, "tooltips");

  return errorDialog;
}


Generated by  Doxygen 1.6.0   Back to index