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

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

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

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

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

GtkWidget*
create_window1 (void)
{
  GtkWidget *window1;
  GtkWidget *vbox1;
  GtkWidget *menubar1;
  GtkWidget *file1;
  GtkWidget *file1_menu;
  GtkAccelGroup *file1_menu_accels;
  GtkWidget *new1;
  GtkWidget *open1;
  GtkWidget *exit1;
  GtkWidget *edit1;
  GtkWidget *edit1_menu;
  GtkAccelGroup *edit1_menu_accels;
  GtkWidget *copy1;
  GtkWidget *paste1;
  GtkWidget *find1;
  GtkWidget *find_again1;
  GtkWidget *match1;
  GtkWidget *match1_menu;
  GtkAccelGroup *match1_menu_accels;
  GtkWidget *font1;
  GtkWidget *scroll_down1;
  GtkWidget *text2;
  GtkWidget *text2_menu;
  GtkAccelGroup *text2_menu_accels;
  GtkWidget *font2;
  GtkWidget *scroll_down2;
  GtkWidget *scroll_up1;
  GtkWidget *word1;
  GtkWidget *word1_menu;
  GtkAccelGroup *word1_menu_accels;
  GtkWidget *define1;
  GtkWidget *help1;
  GtkWidget *help1_menu;
  GtkAccelGroup *help1_menu_accels;
  GtkWidget *about1;
  GtkWidget *hbox1;
  GtkWidget *label1;
  GtkWidget *combo4;
  GtkWidget *combo_entry4;
  GtkWidget *label10;
  GtkWidget *combo3;
  GtkWidget *combo_entry3;
  GtkWidget *vpaned1;
  GtkWidget *scrolledwindow1;
  GtkWidget *viewport1;
  GtkWidget *tree1;
  GtkWidget *scrolledwindow2;
  GtkWidget *text1;
  GtkAccelGroup *accel_group;

  accel_group = gtk_accel_group_new ();

  window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (window1), "window1", window1);
  gtk_window_set_title (GTK_WINDOW (window1), _("Perspic"));

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

  menubar1 = gtk_menu_bar_new ();
  gtk_widget_ref (menubar1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "menubar1", menubar1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (menubar1);
  gtk_box_pack_start (GTK_BOX (vbox1), menubar1, FALSE, FALSE, 0);

  file1 = gtk_menu_item_new_with_label (_("File"));
  gtk_widget_ref (file1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "file1", file1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (file1);
  gtk_container_add (GTK_CONTAINER (menubar1), file1);

  file1_menu = gtk_menu_new ();
  gtk_widget_ref (file1_menu);
  gtk_object_set_data_full (GTK_OBJECT (window1), "file1_menu", file1_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (file1), file1_menu);
  file1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (file1_menu));

  new1 = gtk_menu_item_new_with_label (_("New"));
  gtk_widget_ref (new1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "new1", new1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (new1);
  gtk_container_add (GTK_CONTAINER (file1_menu), new1);

  open1 = gtk_menu_item_new_with_label (_("Open"));
  gtk_widget_ref (open1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "open1", open1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (open1);
  gtk_container_add (GTK_CONTAINER (file1_menu), open1);
  gtk_widget_add_accelerator (open1, "activate", accel_group,
                              GDK_o, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  exit1 = gtk_menu_item_new_with_label (_("Exit"));
  gtk_widget_ref (exit1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "exit1", exit1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (exit1);
  gtk_container_add (GTK_CONTAINER (file1_menu), exit1);

  edit1 = gtk_menu_item_new_with_label (_("Edit"));
  gtk_widget_ref (edit1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "edit1", edit1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (edit1);
  gtk_container_add (GTK_CONTAINER (menubar1), edit1);

  edit1_menu = gtk_menu_new ();
  gtk_widget_ref (edit1_menu);
  gtk_object_set_data_full (GTK_OBJECT (window1), "edit1_menu", edit1_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (edit1), edit1_menu);
  edit1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (edit1_menu));

  copy1 = gtk_menu_item_new_with_label (_("Copy"));
  gtk_widget_ref (copy1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "copy1", copy1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (copy1);
  gtk_container_add (GTK_CONTAINER (edit1_menu), copy1);

  paste1 = gtk_menu_item_new_with_label (_("Paste"));
  gtk_widget_ref (paste1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "paste1", paste1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (paste1);
  gtk_container_add (GTK_CONTAINER (edit1_menu), paste1);

  find1 = gtk_menu_item_new_with_label (_("Find"));
  gtk_widget_ref (find1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "find1", find1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (find1);
  gtk_container_add (GTK_CONTAINER (edit1_menu), find1);

  find_again1 = gtk_menu_item_new_with_label (_("Find again"));
  gtk_widget_ref (find_again1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "find_again1", find_again1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (find_again1);
  gtk_container_add (GTK_CONTAINER (edit1_menu), find_again1);

  match1 = gtk_menu_item_new_with_label (_("Match"));
  gtk_widget_ref (match1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "match1", match1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (match1);
  gtk_container_add (GTK_CONTAINER (menubar1), match1);

  match1_menu = gtk_menu_new ();
  gtk_widget_ref (match1_menu);
  gtk_object_set_data_full (GTK_OBJECT (window1), "match1_menu", match1_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (match1), match1_menu);
  match1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (match1_menu));

  font1 = gtk_menu_item_new_with_label (_("Font"));
  gtk_widget_ref (font1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "font1", font1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (font1);
  gtk_container_add (GTK_CONTAINER (match1_menu), font1);

  scroll_down1 = gtk_menu_item_new_with_label (_("Scroll Down"));
  gtk_widget_ref (scroll_down1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "scroll_down1", scroll_down1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scroll_down1);
  gtk_container_add (GTK_CONTAINER (match1_menu), scroll_down1);
  gtk_widget_add_accelerator (scroll_down1, "activate", accel_group,
                              GDK_n, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  text2 = gtk_menu_item_new_with_label (_("Text"));
  gtk_widget_ref (text2);
  gtk_object_set_data_full (GTK_OBJECT (window1), "text2", text2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (text2);
  gtk_container_add (GTK_CONTAINER (menubar1), text2);

  text2_menu = gtk_menu_new ();
  gtk_widget_ref (text2_menu);
  gtk_object_set_data_full (GTK_OBJECT (window1), "text2_menu", text2_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (text2), text2_menu);
  text2_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (text2_menu));

  font2 = gtk_menu_item_new_with_label (_("Font"));
  gtk_widget_ref (font2);
  gtk_object_set_data_full (GTK_OBJECT (window1), "font2", font2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (font2);
  gtk_container_add (GTK_CONTAINER (text2_menu), font2);

  scroll_down2 = gtk_menu_item_new_with_label (_("Scroll Down"));
  gtk_widget_ref (scroll_down2);
  gtk_object_set_data_full (GTK_OBJECT (window1), "scroll_down2", scroll_down2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scroll_down2);
  gtk_container_add (GTK_CONTAINER (text2_menu), scroll_down2);

  scroll_up1 = gtk_menu_item_new_with_label (_("Scroll up"));
  gtk_widget_ref (scroll_up1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "scroll_up1", scroll_up1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scroll_up1);
  gtk_container_add (GTK_CONTAINER (text2_menu), scroll_up1);

  word1 = gtk_menu_item_new_with_label (_("Word"));
  gtk_widget_ref (word1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "word1", word1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (word1);
  gtk_container_add (GTK_CONTAINER (menubar1), word1);

  word1_menu = gtk_menu_new ();
  gtk_widget_ref (word1_menu);
  gtk_object_set_data_full (GTK_OBJECT (window1), "word1_menu", word1_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (word1), word1_menu);
  word1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (word1_menu));

  define1 = gtk_menu_item_new_with_label (_("Define"));
  gtk_widget_ref (define1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "define1", define1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (define1);
  gtk_container_add (GTK_CONTAINER (word1_menu), define1);
  gtk_widget_add_accelerator (define1, "activate", accel_group,
                              GDK_d, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  help1 = gtk_menu_item_new_with_label (_("Help"));
  gtk_widget_ref (help1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "help1", help1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (help1);
  gtk_container_add (GTK_CONTAINER (menubar1), help1);

  help1_menu = gtk_menu_new ();
  gtk_widget_ref (help1_menu);
  gtk_object_set_data_full (GTK_OBJECT (window1), "help1_menu", help1_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (help1), help1_menu);
  help1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (help1_menu));

  about1 = gtk_menu_item_new_with_label (_("About"));
  gtk_widget_ref (about1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "about1", about1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (about1);
  gtk_container_add (GTK_CONTAINER (help1_menu), about1);

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

  label1 = gtk_label_new (_("Keyword: "));
  gtk_widget_ref (label1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "label1", label1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label1);
  gtk_box_pack_start (GTK_BOX (hbox1), label1, TRUE, TRUE, 0);

  combo4 = gtk_combo_new ();
  gtk_widget_ref (combo4);
  gtk_object_set_data_full (GTK_OBJECT (window1), "combo4", combo4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo4);
  gtk_box_pack_start (GTK_BOX (hbox1), combo4, TRUE, TRUE, 0);
  gtk_combo_set_case_sensitive (GTK_COMBO (combo4), TRUE);

  combo_entry4 = GTK_COMBO (combo4)->entry;
  gtk_widget_ref (combo_entry4);
  gtk_object_set_data_full (GTK_OBJECT (window1), "combo_entry4", combo_entry4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry4);

  label10 = gtk_label_new (_("Archive: "));
  gtk_widget_ref (label10);
  gtk_object_set_data_full (GTK_OBJECT (window1), "label10", label10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label10);
  gtk_box_pack_start (GTK_BOX (hbox1), label10, TRUE, TRUE, 0);

  combo3 = gtk_combo_new ();
  gtk_widget_ref (combo3);
  gtk_object_set_data_full (GTK_OBJECT (window1), "combo3", combo3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo3);
  gtk_box_pack_start (GTK_BOX (hbox1), combo3, TRUE, TRUE, 0);
  gtk_combo_set_value_in_list (GTK_COMBO (combo3), TRUE, TRUE);

  combo_entry3 = GTK_COMBO (combo3)->entry;
  gtk_widget_ref (combo_entry3);
  gtk_object_set_data_full (GTK_OBJECT (window1), "combo_entry3", combo_entry3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry3);
  gtk_entry_set_editable (GTK_ENTRY (combo_entry3), FALSE);

  vpaned1 = gtk_vpaned_new ();
  gtk_widget_ref (vpaned1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "vpaned1", vpaned1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vpaned1);
  gtk_box_pack_start (GTK_BOX (vbox1), vpaned1, TRUE, TRUE, 0);
  gtk_paned_set_position (GTK_PANED (vpaned1), 120);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "scrolledwindow1", scrolledwindow1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow1);
  gtk_paned_pack1 (GTK_PANED (vpaned1), scrolledwindow1, FALSE, TRUE);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  viewport1 = gtk_viewport_new (NULL, NULL);
  gtk_widget_ref (viewport1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "viewport1", viewport1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (viewport1);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), viewport1);

  tree1 = gtk_tree_new ();
  gtk_widget_ref (tree1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "tree1", tree1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (tree1);
  gtk_container_add (GTK_CONTAINER (viewport1), tree1);

  scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow2);
  gtk_object_set_data_full (GTK_OBJECT (window1), "scrolledwindow2", scrolledwindow2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow2);
  gtk_paned_pack2 (GTK_PANED (vpaned1), scrolledwindow2, TRUE, TRUE);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);

  text1 = gtk_text_new (NULL, NULL);
  gtk_widget_ref (text1);
  gtk_object_set_data_full (GTK_OBJECT (window1), "text1", text1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (text1);
  gtk_container_add (GTK_CONTAINER (scrolledwindow2), text1);
  gtk_widget_set_usize (text1, 600, 312);

  gtk_signal_connect (GTK_OBJECT (new1), "activate",
                      GTK_SIGNAL_FUNC (on_new1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (open1), "activate",
                      GTK_SIGNAL_FUNC (on_open1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (exit1), "activate",
                      GTK_SIGNAL_FUNC (on_exit1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (copy1), "activate",
                      GTK_SIGNAL_FUNC (on_copy1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (paste1), "activate",
                      GTK_SIGNAL_FUNC (on_paste1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (find1), "activate",
                      GTK_SIGNAL_FUNC (on_find1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (find_again1), "activate",
                      GTK_SIGNAL_FUNC (on_find_again1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (font1), "activate",
                      GTK_SIGNAL_FUNC (on_font1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (scroll_down1), "activate",
                      GTK_SIGNAL_FUNC (on_scroll_down1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (font2), "activate",
                      GTK_SIGNAL_FUNC (on_font2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (scroll_down2), "activate",
                      GTK_SIGNAL_FUNC (on_scroll_down2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (scroll_up1), "activate",
                      GTK_SIGNAL_FUNC (on_scroll_up1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (define1), "activate",
                      GTK_SIGNAL_FUNC (on_define1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (about1), "activate",
                      GTK_SIGNAL_FUNC (on_about1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (combo_entry4), "activate",
                      GTK_SIGNAL_FUNC (on_combo_entry4_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (text1), "button_release_event",
                      GTK_SIGNAL_FUNC (on_text1_button_release_event),
                      NULL);

  gtk_window_add_accel_group (GTK_WINDOW (window1), accel_group);

  return window1;
}

GtkWidget*
create_window2 (void)
{
  GtkWidget *window2;
  GtkWidget *vpaned2;
  GtkWidget *hbox2;
  GtkWidget *vbox2;
  GtkWidget *hbox3;
  GtkWidget *label4;
  GtkWidget *entry2;
  GtkWidget *hbox4;
  GSList *hbox4_group = NULL;
  GtkWidget *radiobutton1;
  GtkWidget *radiobutton2;
  GtkWidget *vseparator1;
  GtkWidget *vbox3;
  GtkWidget *hbox5;
  GtkWidget *label5;
  GtkWidget *entry3;
  GtkWidget *hbox6;
  GtkWidget *label6;
  GtkWidget *label7;
  GtkWidget *hbox7;
  GtkWidget *label8;
  GtkWidget *combo1;
  GtkWidget *combo_entry1;
  GtkWidget *hbox8;
  GtkWidget *label9;
  GtkWidget *combo2;
  GtkWidget *combo_entry2;
  GtkWidget *scrolledwindow3;
  GtkWidget *text2;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  window2 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (window2), "window2", window2);
  gtk_window_set_title (GTK_WINDOW (window2), _("Definition"));

  vpaned2 = gtk_vpaned_new ();
  gtk_widget_ref (vpaned2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "vpaned2", vpaned2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vpaned2);
  gtk_container_add (GTK_CONTAINER (window2), vpaned2);
  gtk_paned_set_position (GTK_PANED (vpaned2), 111);

  hbox2 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "hbox2", hbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox2);
  gtk_paned_pack1 (GTK_PANED (vpaned2), hbox2, FALSE, TRUE);

  vbox2 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "vbox2", vbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox2);
  gtk_box_pack_start (GTK_BOX (hbox2), vbox2, TRUE, TRUE, 0);

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

  label4 = gtk_label_new (_("Word: "));
  gtk_widget_ref (label4);
  gtk_object_set_data_full (GTK_OBJECT (window2), "label4", label4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label4);
  gtk_box_pack_start (GTK_BOX (hbox3), label4, FALSE, FALSE, 0);

  entry2 = gtk_entry_new ();
  gtk_widget_ref (entry2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "entry2", entry2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (entry2);
  gtk_box_pack_start (GTK_BOX (hbox3), entry2, TRUE, TRUE, 0);

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

  radiobutton1 = gtk_radio_button_new_with_label (hbox4_group, _("Define"));
  hbox4_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton1));
  gtk_widget_ref (radiobutton1);
  gtk_object_set_data_full (GTK_OBJECT (window2), "radiobutton1", radiobutton1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (radiobutton1);
  gtk_box_pack_start (GTK_BOX (hbox4), radiobutton1, FALSE, FALSE, 0);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton1), TRUE);

  radiobutton2 = gtk_radio_button_new_with_label (hbox4_group, _("Match"));
  hbox4_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton2));
  gtk_widget_ref (radiobutton2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "radiobutton2", radiobutton2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (radiobutton2);
  gtk_box_pack_start (GTK_BOX (hbox4), radiobutton2, FALSE, FALSE, 0);

  vseparator1 = gtk_vseparator_new ();
  gtk_widget_ref (vseparator1);
  gtk_object_set_data_full (GTK_OBJECT (window2), "vseparator1", vseparator1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vseparator1);
  gtk_box_pack_start (GTK_BOX (hbox2), vseparator1, TRUE, TRUE, 0);

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox3);
  gtk_object_set_data_full (GTK_OBJECT (window2), "vbox3", vbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox3);
  gtk_box_pack_start (GTK_BOX (hbox2), vbox3, TRUE, TRUE, 0);

  hbox5 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox5);
  gtk_object_set_data_full (GTK_OBJECT (window2), "hbox5", hbox5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox5);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox5, TRUE, TRUE, 0);

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

  entry3 = gtk_entry_new ();
  gtk_widget_ref (entry3);
  gtk_object_set_data_full (GTK_OBJECT (window2), "entry3", entry3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (entry3);
  gtk_box_pack_start (GTK_BOX (hbox5), entry3, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, entry3, _("Dictionary server.  You can speedup queries by installiing the dictd package, and using 'localhost' here."), NULL);
  gtk_entry_set_text (GTK_ENTRY (entry3), _("dict.org"));

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

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

  label7 = gtk_label_new (_("not connected"));
  gtk_widget_ref (label7);
  gtk_object_set_data_full (GTK_OBJECT (window2), "label7", label7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label7);
  gtk_box_pack_start (GTK_BOX (hbox6), label7, TRUE, TRUE, 0);

  hbox7 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox7);
  gtk_object_set_data_full (GTK_OBJECT (window2), "hbox7", hbox7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox7);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox7, TRUE, TRUE, 0);

  label8 = gtk_label_new (_("Database: "));
  gtk_widget_ref (label8);
  gtk_object_set_data_full (GTK_OBJECT (window2), "label8", label8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label8);
  gtk_box_pack_start (GTK_BOX (hbox7), label8, FALSE, FALSE, 0);

  combo1 = gtk_combo_new ();
  gtk_widget_ref (combo1);
  gtk_object_set_data_full (GTK_OBJECT (window2), "combo1", combo1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo1);
  gtk_box_pack_start (GTK_BOX (hbox7), combo1, TRUE, TRUE, 0);

  combo_entry1 = GTK_COMBO (combo1)->entry;
  gtk_widget_ref (combo_entry1);
  gtk_object_set_data_full (GTK_OBJECT (window2), "combo_entry1", combo_entry1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry1);
  gtk_entry_set_editable (GTK_ENTRY (combo_entry1), FALSE);
  gtk_entry_set_text (GTK_ENTRY (combo_entry1), _("*"));

  hbox8 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox8);
  gtk_object_set_data_full (GTK_OBJECT (window2), "hbox8", hbox8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox8);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox8, TRUE, TRUE, 0);

  label9 = gtk_label_new (_("Strategy:   "));
  gtk_widget_ref (label9);
  gtk_object_set_data_full (GTK_OBJECT (window2), "label9", label9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label9);
  gtk_box_pack_start (GTK_BOX (hbox8), label9, FALSE, FALSE, 0);

  combo2 = gtk_combo_new ();
  gtk_widget_ref (combo2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "combo2", combo2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo2);
  gtk_box_pack_start (GTK_BOX (hbox8), combo2, TRUE, TRUE, 0);

  combo_entry2 = GTK_COMBO (combo2)->entry;
  gtk_widget_ref (combo_entry2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "combo_entry2", combo_entry2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (combo_entry2);
  gtk_tooltips_set_tip (tooltips, combo_entry2, _("When executing a 'match', how to identify similar words"), NULL);
  gtk_entry_set_editable (GTK_ENTRY (combo_entry2), FALSE);

  scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow3);
  gtk_object_set_data_full (GTK_OBJECT (window2), "scrolledwindow3", scrolledwindow3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow3);
  gtk_paned_pack2 (GTK_PANED (vpaned2), scrolledwindow3, TRUE, TRUE);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  text2 = gtk_text_new (NULL, NULL);
  gtk_widget_ref (text2);
  gtk_object_set_data_full (GTK_OBJECT (window2), "text2", text2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (text2);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3), text2);
  gtk_widget_set_usize (text2, -2, 324);

  gtk_signal_connect (GTK_OBJECT (window2), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (entry2), "activate",
                      GTK_SIGNAL_FUNC (on_entry2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (radiobutton1), "toggled",
                      GTK_SIGNAL_FUNC (on_radiobutton1_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (entry3), "activate",
                      GTK_SIGNAL_FUNC (on_entry3_activate),
                      NULL);

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

  return window2;
}

GtkWidget*
create_fileselection1 (void)
{
  GtkWidget *fileselection1;
  GtkWidget *ok_button1;
  GtkWidget *cancel_button1;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  fileselection1 = gtk_file_selection_new (_("Select File"));
  gtk_object_set_data (GTK_OBJECT (fileselection1), "fileselection1", fileselection1);
  gtk_container_set_border_width (GTK_CONTAINER (fileselection1), 10);
  gtk_tooltips_set_tip (tooltips, fileselection1, _("Select a directory to open or build an archive of .txt files"), NULL);

  ok_button1 = GTK_FILE_SELECTION (fileselection1)->ok_button;
  gtk_object_set_data (GTK_OBJECT (fileselection1), "ok_button1", ok_button1);
  gtk_widget_show (ok_button1);
  GTK_WIDGET_SET_FLAGS (ok_button1, GTK_CAN_DEFAULT);

  cancel_button1 = GTK_FILE_SELECTION (fileselection1)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (fileselection1), "cancel_button1", cancel_button1);
  gtk_widget_show (cancel_button1);
  GTK_WIDGET_SET_FLAGS (cancel_button1, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (fileselection1), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (ok_button1), "pressed",
                      GTK_SIGNAL_FUNC (on_ok_button1_pressed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (cancel_button1), "pressed",
                      GTK_SIGNAL_FUNC (on_cancel_button1_pressed),
                      NULL);

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

  return fileselection1;
}

GtkWidget*
create_fontselectiondialog1 (void)
{
  GtkWidget *fontselectiondialog1;
  GtkWidget *ok_button2;
  GtkWidget *cancel_button2;
  GtkWidget *apply_button1;

  fontselectiondialog1 = gtk_font_selection_dialog_new (_("Select Font"));
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog1), "fontselectiondialog1", fontselectiondialog1);
  gtk_container_set_border_width (GTK_CONTAINER (fontselectiondialog1), 4);
  gtk_window_set_policy (GTK_WINDOW (fontselectiondialog1), FALSE, TRUE, TRUE);

  ok_button2 = GTK_FONT_SELECTION_DIALOG (fontselectiondialog1)->ok_button;
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog1), "ok_button2", ok_button2);
  gtk_widget_show (ok_button2);
  GTK_WIDGET_SET_FLAGS (ok_button2, GTK_CAN_DEFAULT);

  cancel_button2 = GTK_FONT_SELECTION_DIALOG (fontselectiondialog1)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog1), "cancel_button2", cancel_button2);
  gtk_widget_show (cancel_button2);
  GTK_WIDGET_SET_FLAGS (cancel_button2, GTK_CAN_DEFAULT);

  apply_button1 = GTK_FONT_SELECTION_DIALOG (fontselectiondialog1)->apply_button;
  gtk_object_set_data (GTK_OBJECT (fontselectiondialog1), "apply_button1", apply_button1);
  gtk_widget_show (apply_button1);
  GTK_WIDGET_SET_FLAGS (apply_button1, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (fontselectiondialog1), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (ok_button2), "pressed",
                      GTK_SIGNAL_FUNC (on_ok_button2_pressed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (cancel_button2), "pressed",
                      GTK_SIGNAL_FUNC (on_cancel_button2_pressed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (apply_button1), "pressed",
                      GTK_SIGNAL_FUNC (on_apply_button1_pressed),
                      NULL);

  return fontselectiondialog1;
}

GtkWidget*
create_window3 (void)
{
  GtkWidget *window3;
  GtkWidget *vbox4;
  GtkWidget *menubar2;
  GtkWidget *file2;
  GtkWidget *file2_menu;
  GtkAccelGroup *file2_menu_accels;
  GtkWidget *save1;
  GtkWidget *print1;
  GtkWidget *preview1;
  GtkWidget *close1;
  GtkWidget *edit2;
  GtkWidget *edit2_menu;
  GtkAccelGroup *edit2_menu_accels;
  GtkWidget *cut1;
  GtkWidget *copy2;
  GtkWidget *paste2;
  GtkWidget *find2;
  GtkWidget *find_again2;
  GtkWidget *settings1;
  GtkWidget *settings1_menu;
  GtkAccelGroup *settings1_menu_accels;
  GtkWidget *font3;
  GtkWidget *arabtex1;
  GtkWidget *scrolledwindow4;
  GtkWidget *text3;

  window3 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (window3), "window3", window3);
  gtk_window_set_title (GTK_WINDOW (window3), _("Quotations"));

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

  menubar2 = gtk_menu_bar_new ();
  gtk_widget_ref (menubar2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "menubar2", menubar2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (menubar2);
  gtk_box_pack_start (GTK_BOX (vbox4), menubar2, FALSE, FALSE, 0);

  file2 = gtk_menu_item_new_with_label (_("File"));
  gtk_widget_ref (file2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "file2", file2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (file2);
  gtk_container_add (GTK_CONTAINER (menubar2), file2);

  file2_menu = gtk_menu_new ();
  gtk_widget_ref (file2_menu);
  gtk_object_set_data_full (GTK_OBJECT (window3), "file2_menu", file2_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (file2), file2_menu);
  file2_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (file2_menu));

  save1 = gtk_menu_item_new_with_label (_("Save"));
  gtk_widget_ref (save1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "save1", save1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (save1);
  gtk_container_add (GTK_CONTAINER (file2_menu), save1);

  print1 = gtk_menu_item_new_with_label (_("Print"));
  gtk_widget_ref (print1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "print1", print1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (print1);
  gtk_container_add (GTK_CONTAINER (file2_menu), print1);

  preview1 = gtk_menu_item_new_with_label (_("Preview"));
  gtk_widget_ref (preview1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "preview1", preview1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preview1);
  gtk_container_add (GTK_CONTAINER (file2_menu), preview1);

  close1 = gtk_menu_item_new_with_label (_("Close"));
  gtk_widget_ref (close1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "close1", close1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (close1);
  gtk_container_add (GTK_CONTAINER (file2_menu), close1);

  edit2 = gtk_menu_item_new_with_label (_("Edit"));
  gtk_widget_ref (edit2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "edit2", edit2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (edit2);
  gtk_container_add (GTK_CONTAINER (menubar2), edit2);

  edit2_menu = gtk_menu_new ();
  gtk_widget_ref (edit2_menu);
  gtk_object_set_data_full (GTK_OBJECT (window3), "edit2_menu", edit2_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (edit2), edit2_menu);
  edit2_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (edit2_menu));

  cut1 = gtk_menu_item_new_with_label (_("Cut"));
  gtk_widget_ref (cut1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "cut1", cut1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (cut1);
  gtk_container_add (GTK_CONTAINER (edit2_menu), cut1);

  copy2 = gtk_menu_item_new_with_label (_("Copy"));
  gtk_widget_ref (copy2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "copy2", copy2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (copy2);
  gtk_container_add (GTK_CONTAINER (edit2_menu), copy2);

  paste2 = gtk_menu_item_new_with_label (_("Paste"));
  gtk_widget_ref (paste2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "paste2", paste2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (paste2);
  gtk_container_add (GTK_CONTAINER (edit2_menu), paste2);

  find2 = gtk_menu_item_new_with_label (_("Find"));
  gtk_widget_ref (find2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "find2", find2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (find2);
  gtk_container_add (GTK_CONTAINER (edit2_menu), find2);

  find_again2 = gtk_menu_item_new_with_label (_("Find again"));
  gtk_widget_ref (find_again2);
  gtk_object_set_data_full (GTK_OBJECT (window3), "find_again2", find_again2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (find_again2);
  gtk_container_add (GTK_CONTAINER (edit2_menu), find_again2);

  settings1 = gtk_menu_item_new_with_label (_("Settings"));
  gtk_widget_ref (settings1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "settings1", settings1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (settings1);
  gtk_container_add (GTK_CONTAINER (menubar2), settings1);

  settings1_menu = gtk_menu_new ();
  gtk_widget_ref (settings1_menu);
  gtk_object_set_data_full (GTK_OBJECT (window3), "settings1_menu", settings1_menu,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (settings1), settings1_menu);
  settings1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (settings1_menu));

  font3 = gtk_menu_item_new_with_label (_("Font"));
  gtk_widget_ref (font3);
  gtk_object_set_data_full (GTK_OBJECT (window3), "font3", font3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (font3);
  gtk_container_add (GTK_CONTAINER (settings1_menu), font3);

  arabtex1 = gtk_check_menu_item_new_with_label (_("ArabTeX"));
  gtk_widget_ref (arabtex1);
  gtk_object_set_data_full (GTK_OBJECT (window3), "arabtex1", arabtex1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (arabtex1);
  gtk_container_add (GTK_CONTAINER (settings1_menu), arabtex1);
  gtk_check_menu_item_set_show_toggle (GTK_CHECK_MENU_ITEM (arabtex1), TRUE);

  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow4);
  gtk_object_set_data_full (GTK_OBJECT (window3), "scrolledwindow4", scrolledwindow4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow4);
  gtk_box_pack_start (GTK_BOX (vbox4), scrolledwindow4, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  text3 = gtk_text_new (NULL, NULL);
  gtk_widget_ref (text3);
  gtk_object_set_data_full (GTK_OBJECT (window3), "text3", text3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (text3);
  gtk_container_add (GTK_CONTAINER (scrolledwindow4), text3);
  gtk_widget_set_usize (text3, 411, 360);
  gtk_text_set_editable (GTK_TEXT (text3), TRUE);

  gtk_signal_connect (GTK_OBJECT (window3), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (save1), "activate",
                      GTK_SIGNAL_FUNC (on_save1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (print1), "activate",
                      GTK_SIGNAL_FUNC (on_print1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (preview1), "activate",
                      GTK_SIGNAL_FUNC (on_preview1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (close1), "activate",
                      GTK_SIGNAL_FUNC (on_close1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (cut1), "activate",
                      GTK_SIGNAL_FUNC (on_cut1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (copy2), "activate",
                      GTK_SIGNAL_FUNC (on_copy2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (paste2), "activate",
                      GTK_SIGNAL_FUNC (on_paste2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (find2), "activate",
                      GTK_SIGNAL_FUNC (on_find2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (find_again2), "activate",
                      GTK_SIGNAL_FUNC (on_find_again2_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (font3), "activate",
                      GTK_SIGNAL_FUNC (on_font3_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (arabtex1), "activate",
                      GTK_SIGNAL_FUNC (on_arabtex1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (arabtex1), "toggled",
                      GTK_SIGNAL_FUNC (on_arabtex1_toggled),
                      NULL);

  return window3;
}

GtkWidget*
create_dialog1 (void)
{
  GtkWidget *dialog1;
  GtkWidget *dialog_vbox1;
  GtkWidget *scrolledwindow5;
  GtkWidget *text4;
  GtkWidget *dialog_action_area1;
  GtkWidget *button1;

  dialog1 = gtk_dialog_new ();
  gtk_object_set_data (GTK_OBJECT (dialog1), "dialog1", dialog1);
  gtk_window_set_title (GTK_WINDOW (dialog1), _("Information"));
  gtk_window_set_policy (GTK_WINDOW (dialog1), TRUE, TRUE, FALSE);

  dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
  gtk_object_set_data (GTK_OBJECT (dialog1), "dialog_vbox1", dialog_vbox1);
  gtk_widget_show (dialog_vbox1);

  scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow5);
  gtk_object_set_data_full (GTK_OBJECT (dialog1), "scrolledwindow5", scrolledwindow5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow5);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), scrolledwindow5, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  text4 = gtk_text_new (NULL, NULL);
  gtk_widget_ref (text4);
  gtk_object_set_data_full (GTK_OBJECT (dialog1), "text4", text4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (text4);
  gtk_container_add (GTK_CONTAINER (scrolledwindow5), text4);
  gtk_widget_set_usize (text4, 353, 172);

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

  button1 = gtk_button_new_with_label (_("Dismiss"));
  gtk_widget_ref (button1);
  gtk_object_set_data_full (GTK_OBJECT (dialog1), "button1", button1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (button1);
  gtk_box_pack_start (GTK_BOX (dialog_action_area1), button1, FALSE, FALSE, 0);

  gtk_signal_connect (GTK_OBJECT (dialog1), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (button1), "pressed",
                      GTK_SIGNAL_FUNC (on_button1_pressed),
                      NULL);

  return dialog1;
}

GtkWidget*
create_menu1 (void)
{
  GtkWidget *menu1;
  GtkAccelGroup *menu1_accels;
  GtkWidget *define_word1;
  GtkWidget *find_keyword1;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  menu1 = gtk_menu_new ();
  gtk_object_set_data (GTK_OBJECT (menu1), "menu1", menu1);
  menu1_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu1));

  define_word1 = gtk_menu_item_new_with_label (_("Define Word"));
  gtk_widget_ref (define_word1);
  gtk_object_set_data_full (GTK_OBJECT (menu1), "define_word1", define_word1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (define_word1);
  gtk_container_add (GTK_CONTAINER (menu1), define_word1);

  find_keyword1 = gtk_menu_item_new_with_label (_("Lookup Word in Archive"));
  gtk_widget_ref (find_keyword1);
  gtk_object_set_data_full (GTK_OBJECT (menu1), "find_keyword1", find_keyword1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (find_keyword1);
  gtk_container_add (GTK_CONTAINER (menu1), find_keyword1);
  gtk_tooltips_set_tip (tooltips, find_keyword1, _("Lookup selected keword in current archive"), NULL);

  gtk_signal_connect (GTK_OBJECT (menu1), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (define_word1), "activate",
                      GTK_SIGNAL_FUNC (on_define_word1_activate),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (find_keyword1), "activate",
                      GTK_SIGNAL_FUNC (on_find_keyowrd1_activate),
                      NULL);

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

  return menu1;
}

GtkWidget*
create_menu2 (void)
{
  GtkWidget *menu2;
  GtkAccelGroup *menu2_accels;
  GtkWidget *save_quotation2;

  menu2 = gtk_menu_new ();
  gtk_object_set_data (GTK_OBJECT (menu2), "menu2", menu2);
  menu2_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu2));

  save_quotation2 = gtk_menu_item_new_with_label (_("Save Quotation"));
  gtk_widget_ref (save_quotation2);
  gtk_object_set_data_full (GTK_OBJECT (menu2), "save_quotation2", save_quotation2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (save_quotation2);
  gtk_container_add (GTK_CONTAINER (menu2), save_quotation2);

  gtk_signal_connect (GTK_OBJECT (menu2), "delete_event",
                      GTK_SIGNAL_FUNC (gtk_widget_hide),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (save_quotation2), "activate",
                      GTK_SIGNAL_FUNC (on_save_quotation2_activate),
                      NULL);

  return menu2;
}

GtkWidget*
create_fileselection2 (void)
{
  GtkWidget *fileselection2;
  GtkWidget *ok_button3;
  GtkWidget *cancel_button3;

  fileselection2 = gtk_file_selection_new (_("Select File"));
  gtk_object_set_data (GTK_OBJECT (fileselection2), "fileselection2", fileselection2);
  gtk_container_set_border_width (GTK_CONTAINER (fileselection2), 10);

  ok_button3 = GTK_FILE_SELECTION (fileselection2)->ok_button;
  gtk_object_set_data (GTK_OBJECT (fileselection2), "ok_button3", ok_button3);
  gtk_widget_show (ok_button3);
  GTK_WIDGET_SET_FLAGS (ok_button3, GTK_CAN_DEFAULT);

  cancel_button3 = GTK_FILE_SELECTION (fileselection2)->cancel_button;
  gtk_object_set_data (GTK_OBJECT (fileselection2), "cancel_button3", cancel_button3);
  gtk_widget_show (cancel_button3);
  GTK_WIDGET_SET_FLAGS (cancel_button3, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (ok_button3), "pressed",
                      GTK_SIGNAL_FUNC (on_ok_button3_pressed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (cancel_button3), "pressed",
                      GTK_SIGNAL_FUNC (on_cancel_button3_pressed),
                      NULL);

  return fileselection2;
}

GtkWidget*
create_window4 (void)
{
  GtkWidget *window4;
  GtkWidget *vbox5;
  GtkWidget *entry4;
  GtkWidget *hbuttonbox1;
  GtkWidget *button3;
  GtkWidget *button4;

  window4 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (window4), "window4", window4);
  gtk_window_set_title (GTK_WINDOW (window4), _("Find"));

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

  entry4 = gtk_entry_new ();
  gtk_widget_ref (entry4);
  gtk_object_set_data_full (GTK_OBJECT (window4), "entry4", entry4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (entry4);
  gtk_box_pack_start (GTK_BOX (vbox5), entry4, TRUE, FALSE, 0);

  hbuttonbox1 = gtk_hbutton_box_new ();
  gtk_widget_ref (hbuttonbox1);
  gtk_object_set_data_full (GTK_OBJECT (window4), "hbuttonbox1", hbuttonbox1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbuttonbox1);
  gtk_box_pack_start (GTK_BOX (vbox5), hbuttonbox1, FALSE, TRUE, 0);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_SPREAD);

  button3 = gtk_button_new_with_label (_("Find"));
  gtk_widget_ref (button3);
  gtk_object_set_data_full (GTK_OBJECT (window4), "button3", button3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (button3);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), button3);
  GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);

  button4 = gtk_button_new_with_label (_("Close"));
  gtk_widget_ref (button4);
  gtk_object_set_data_full (GTK_OBJECT (window4), "button4", button4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (button4);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), button4);
  GTK_WIDGET_SET_FLAGS (button4, GTK_CAN_DEFAULT);

  return window4;
}

