/*
 * 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 <gdk/gdkkeysyms.h>
#include <gtk/gtk.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)

  GtkWidget *username_entry;
  GtkWidget *password_entry;
  GtkWidget *register_username_entry;
  GtkWidget *register_password_entry;

GtkWidget*
create_window (void)
{
  GtkWidget *window;
  GtkWidget *notebook;
  GtkWidget *vbox1;
  GtkWidget *hbox1;
  GtkWidget *image1;
  GtkWidget *label4;
  GtkWidget *label5;
  GtkWidget *hbuttonbox1;
  GtkWidget *page1_cancel_button;
  GtkWidget *page1_next_button;
  GtkWidget *alignment1;
  GtkWidget *hbox2;
  GtkWidget *image2;
  GtkWidget *label6;
  GtkWidget *label1;
  GtkWidget *vbox2;
  GtkWidget *hbox3;
  GtkWidget *image3;
  GtkWidget *label7;
  GtkWidget *label19;
  GtkWidget *fixed1;
  GtkWidget *label8;
  GtkWidget *label9;
  GtkWidget *hbox6;
  GtkWidget *hbuttonbox7;
  GtkWidget *page2_register_button;
  GtkWidget *alignment2;
  GtkWidget *hbox7;
  GtkWidget *image6;
  GtkWidget *label18;
  GtkWidget *hbuttonbox6;
  GtkWidget *page2_back_button;
  GtkWidget *page2_connect_button;
  GtkWidget *label2;
  GtkWidget *vbox3;
  GtkWidget *hbox5;
  GtkWidget *image5;
  GtkWidget *label12;
  GtkWidget *scrolledwindow1;
  GtkWidget *textview1;
  GtkWidget *hbuttonbox8;
  GtkWidget *page3_back_button;
  GtkWidget *page3_next_button;
  GtkWidget *alignment3;
  GtkWidget *hbox8;
  GtkWidget *image7;
  GtkWidget *label20;
  GtkWidget *label35;
  GtkWidget *label3;
  GtkWidget *vbox4;
  GtkWidget *hbox9;
  GtkWidget *image8;
  GtkWidget *label22;
  GtkWidget *hbox12;
  GtkWidget *label27;
  GtkWidget *vbox5;
  GtkWidget *label33;
  GtkWidget *hbox11;
  GtkWidget *label25;
  GtkWidget *hbox15;
  GtkWidget *label32;
  GtkWidget *label34;
  GtkWidget *hseparator1;
  GtkWidget *hbox13;
  GtkWidget *label28;
  GtkWidget *label29;
  GtkWidget *hseparator2;
  GtkWidget *hbuttonbox9;
  GtkWidget *page4_back_button;
  GtkWidget *page4_connect_button;
  GtkWidget *hbox14;
  GtkWidget *label30;
  GtkWidget *label31;
  GtkWidget *label21;

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (window), _("Ubuntu Live Chat Support"));
  gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER_ALWAYS);
  gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
  gtk_window_set_icon_name (GTK_WINDOW (window), "stock_people");

  notebook = gtk_notebook_new ();
  gtk_widget_show (notebook);
  gtk_container_add (GTK_CONTAINER (window), notebook);
  gtk_container_set_border_width (GTK_CONTAINER (notebook), 10);
  GTK_WIDGET_UNSET_FLAGS (notebook, GTK_CAN_FOCUS);
  gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE);

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox1);
  gtk_container_add (GTK_CONTAINER (notebook), vbox1);

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

  image1 = gtk_image_new_from_icon_name ("stock_people", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image1);
  gtk_box_pack_start (GTK_BOX (hbox1), image1, FALSE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image1), 30, 0);

  label4 = gtk_label_new (_("<span size=\"x-large\">Ubuntu Live Chat Support</span>"));
  gtk_widget_show (label4);
  gtk_box_pack_start (GTK_BOX (hbox1), label4, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label4), TRUE);

  label5 = gtk_label_new (_("Welcome to Ubuntu Live Chat Support.\n\nThis will connect you to the Official Ubuntu Support Channel and your Local \nUbuntu Support Channel, where you can chat with hundreds of Ubuntu users. \n\nYou will be asked to supply your registered Freenode.net account. However,\nif you don't have an account yet, you can click the \"Register\" button in the next\nscreen to learn the benefits of registering your nick, and learn how to register it.\n\nTo continue, please click the \"Next\" button."));
  gtk_widget_show (label5);
  gtk_box_pack_start (GTK_BOX (vbox1), label5, FALSE, TRUE, 10);
  gtk_label_set_use_markup (GTK_LABEL (label5), TRUE);
  gtk_misc_set_padding (GTK_MISC (label5), 10, 0);

  hbuttonbox1 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox1);
  gtk_box_pack_end (GTK_BOX (vbox1), hbuttonbox1, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 15);

  page1_cancel_button = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (page1_cancel_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), page1_cancel_button);
  gtk_widget_set_size_request (page1_cancel_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page1_cancel_button, GTK_CAN_DEFAULT);

  page1_next_button = gtk_button_new ();
  gtk_widget_show (page1_next_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), page1_next_button);
  gtk_widget_set_size_request (page1_next_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page1_next_button, GTK_CAN_DEFAULT);

  alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment1);
  gtk_container_add (GTK_CONTAINER (page1_next_button), alignment1);

  hbox2 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox2);
  gtk_container_add (GTK_CONTAINER (alignment1), hbox2);

  image2 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image2);
  gtk_box_pack_start (GTK_BOX (hbox2), image2, FALSE, FALSE, 0);

  label6 = gtk_label_new_with_mnemonic (_("_Next"));
  gtk_widget_show (label6);
  gtk_box_pack_start (GTK_BOX (hbox2), label6, FALSE, FALSE, 0);

  label1 = gtk_label_new (_("label1"));
  gtk_widget_show (label1);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), label1);

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

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

  image3 = gtk_image_new_from_icon_name ("gtk-dialog-info", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image3);
  gtk_box_pack_start (GTK_BOX (hbox3), image3, FALSE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image3), 30, 0);

  label7 = gtk_label_new (_("<span size=\"x-large\">Account Information</span>"));
  gtk_widget_show (label7);
  gtk_box_pack_start (GTK_BOX (hbox3), label7, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label7), TRUE);

  label19 = gtk_label_new (_("Please provide your registered Freenode.net username and password to \ncontinue.\n\nIf you don't have an account, click the \"Register\" button."));
  gtk_widget_show (label19);
  gtk_box_pack_start (GTK_BOX (vbox2), label19, FALSE, TRUE, 10);

  fixed1 = gtk_fixed_new ();
  gtk_widget_show (fixed1);
  gtk_box_pack_start (GTK_BOX (vbox2), fixed1, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (fixed1), 10);

  username_entry = gtk_entry_new ();
  gtk_widget_show (username_entry);
  gtk_fixed_put (GTK_FIXED (fixed1), username_entry, 200, 0);
  gtk_widget_set_size_request (username_entry, 160, 27);

  password_entry = gtk_entry_new ();
  gtk_widget_show (password_entry);
  gtk_fixed_put (GTK_FIXED (fixed1), password_entry, 200, 32);
  gtk_widget_set_size_request (password_entry, 160, 27);
  gtk_entry_set_visibility (GTK_ENTRY (password_entry), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (password_entry), 9679);

  label8 = gtk_label_new (_("Username:"));
  gtk_widget_show (label8);
  gtk_fixed_put (GTK_FIXED (fixed1), label8, 96, 8);
  gtk_widget_set_size_request (label8, 104, 16);

  label9 = gtk_label_new (_("Password:"));
  gtk_widget_show (label9);
  gtk_fixed_put (GTK_FIXED (fixed1), label9, 96, 40);
  gtk_widget_set_size_request (label9, 104, 16);

  hbox6 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox6);
  gtk_box_pack_end (GTK_BOX (vbox2), hbox6, FALSE, FALSE, 0);

  hbuttonbox7 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox7);
  gtk_box_pack_start (GTK_BOX (hbox6), hbuttonbox7, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox7), 10);

  page2_register_button = gtk_button_new ();
  gtk_widget_show (page2_register_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox7), page2_register_button);
  gtk_widget_set_size_request (page2_register_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page2_register_button, GTK_CAN_DEFAULT);

  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment2);
  gtk_container_add (GTK_CONTAINER (page2_register_button), alignment2);

  hbox7 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox7);
  gtk_container_add (GTK_CONTAINER (alignment2), hbox7);

  image6 = gtk_image_new_from_icon_name ("stock_contact", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image6);
  gtk_box_pack_start (GTK_BOX (hbox7), image6, FALSE, FALSE, 0);

  label18 = gtk_label_new_with_mnemonic (_("_Register"));
  gtk_widget_show (label18);
  gtk_box_pack_start (GTK_BOX (hbox7), label18, FALSE, FALSE, 0);

  hbuttonbox6 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox6);
  gtk_box_pack_start (GTK_BOX (hbox6), hbuttonbox6, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox6), 10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox6), GTK_BUTTONBOX_END);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox6), 15);

  page2_back_button = gtk_button_new_from_stock ("gtk-go-back");
  gtk_widget_show (page2_back_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), page2_back_button);
  gtk_widget_set_size_request (page2_back_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page2_back_button, GTK_CAN_DEFAULT);

  page2_connect_button = gtk_button_new_from_stock ("gtk-connect");
  gtk_widget_show (page2_connect_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), page2_connect_button);
  gtk_widget_set_size_request (page2_connect_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page2_connect_button, GTK_CAN_DEFAULT);

  label2 = gtk_label_new (_("label2"));
  gtk_widget_show (label2);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), label2);

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

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

  image5 = gtk_image_new_from_icon_name ("stock_contact", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image5);
  gtk_box_pack_start (GTK_BOX (hbox5), image5, FALSE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image5), 30, 0);

  label12 = gtk_label_new (_("<span size=\"x-large\">Why Should I Register?</span>"));
  gtk_widget_show (label12);
  gtk_box_pack_start (GTK_BOX (hbox5), label12, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label12), TRUE);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (vbox3), scrolledwindow1, TRUE, TRUE, 10);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_IN);

  textview1 = gtk_text_view_new ();
  gtk_widget_show (textview1);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), textview1);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (textview1), FALSE);
  gtk_text_view_set_accepts_tab (GTK_TEXT_VIEW (textview1), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textview1), GTK_WRAP_WORD);
  gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview1)), _("Your nick is how people on freenode know you. If you\nregister it, you'll be able to use the same nick over and\nover. If you don't register, someone else may end up\nregistering the nick you want. If you register and use the\nsame nick, people will begin to know you by reputation.\n\nIf a channel is set to mode +r, you won't be able to join it\nunless you are registered and identified to nickserv. If you\ntry to join, you might be forwarded to a different channel. If\na channel is set to mode +R, you won't be able to speak\nwhile on that channel unless you are registered and\nidentified. Both of these modes are used to reduce\nchannel harassment by DoS kiddies. "), -1);

  hbuttonbox8 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox8);
  gtk_box_pack_end (GTK_BOX (vbox3), hbuttonbox8, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox8), 10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox8), GTK_BUTTONBOX_END);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox8), 15);

  page3_back_button = gtk_button_new_from_stock ("gtk-go-back");
  gtk_widget_show (page3_back_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox8), page3_back_button);
  gtk_widget_set_size_request (page3_back_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page3_back_button, GTK_CAN_DEFAULT);

  page3_next_button = gtk_button_new ();
  gtk_widget_show (page3_next_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox8), page3_next_button);
  gtk_widget_set_size_request (page3_next_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page3_next_button, GTK_CAN_DEFAULT);

  alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment3);
  gtk_container_add (GTK_CONTAINER (page3_next_button), alignment3);

  hbox8 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox8);
  gtk_container_add (GTK_CONTAINER (alignment3), hbox8);

  image7 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image7);
  gtk_box_pack_start (GTK_BOX (hbox8), image7, FALSE, FALSE, 0);

  label20 = gtk_label_new_with_mnemonic ("_Next");
  gtk_widget_show (label20);
  gtk_box_pack_start (GTK_BOX (hbox8), label20, FALSE, FALSE, 0);

  label35 = gtk_label_new (_("Click the \"Next\" Button to begin registration."));
  gtk_widget_show (label35);
  gtk_box_pack_start (GTK_BOX (vbox3), label35, FALSE, FALSE, 0);

  label3 = gtk_label_new (_("label3"));
  gtk_widget_show (label3);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 2), label3);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox4);
  gtk_container_add (GTK_CONTAINER (notebook), vbox4);

  hbox9 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox9);
  gtk_box_pack_start (GTK_BOX (vbox4), hbox9, FALSE, FALSE, 5);

  image8 = gtk_image_new_from_icon_name ("stock_contact", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image8);
  gtk_box_pack_start (GTK_BOX (hbox9), image8, FALSE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image8), 30, 0);

  label22 = gtk_label_new (_("<span size=\"x-large\">Register to Freenode.net</span>"));
  gtk_widget_show (label22);
  gtk_box_pack_start (GTK_BOX (hbox9), label22, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label22), TRUE);

  hbox12 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox12);
  gtk_box_pack_start (GTK_BOX (vbox4), hbox12, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox12), 10);

  label27 = gtk_label_new (_("<span background=\"brown\" foreground=\"white\" size=\"xx-large\">    \n    \n 1 \n    \n    </span>"));
  gtk_widget_show (label27);
  gtk_box_pack_start (GTK_BOX (hbox12), label27, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label27), TRUE);

  vbox5 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox5);
  gtk_box_pack_start (GTK_BOX (hbox12), vbox5, FALSE, FALSE, 0);

  label33 = gtk_label_new (_("Enter your desired username and password"));
  gtk_widget_show (label33);
  gtk_box_pack_start (GTK_BOX (vbox5), label33, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label33), 0.07, 0.5);

  hbox11 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox11);
  gtk_box_pack_start (GTK_BOX (vbox5), hbox11, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox11), 2);

  label25 = gtk_label_new (_("Username: "));
  gtk_widget_show (label25);
  gtk_box_pack_start (GTK_BOX (hbox11), label25, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (label25), 20, 0);

  register_username_entry = gtk_entry_new ();
  gtk_widget_show (register_username_entry);
  gtk_box_pack_start (GTK_BOX (hbox11), register_username_entry, FALSE, FALSE, 0);

  hbox15 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox15);
  gtk_box_pack_start (GTK_BOX (vbox5), hbox15, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox15), 2);

  label32 = gtk_label_new (_("Password:   "));
  gtk_widget_show (label32);
  gtk_box_pack_start (GTK_BOX (hbox15), label32, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (label32), 20, 0);

  register_password_entry = gtk_entry_new ();
  gtk_widget_show (register_password_entry);
  gtk_box_pack_start (GTK_BOX (hbox15), register_password_entry, FALSE, FALSE, 0);
  gtk_entry_set_visibility (GTK_ENTRY (register_password_entry), FALSE);
  gtk_entry_set_invisible_char (GTK_ENTRY (register_password_entry), 9679);

  label34 = gtk_label_new (_("NOTE:  Please avoid using the name of a community project\nor trademarked entity, to avoid conflicts. Write down your\npassword and be sure to keep the sheet of paper in a safe\nplace. "));
  gtk_widget_show (label34);
  gtk_box_pack_start (GTK_BOX (vbox5), label34, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label34), TRUE);
  gtk_misc_set_padding (GTK_MISC (label34), 10, 0);

  hseparator1 = gtk_hseparator_new ();
  gtk_widget_show (hseparator1);
  gtk_box_pack_start (GTK_BOX (vbox4), hseparator1, FALSE, FALSE, 0);

  hbox13 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox13);
  gtk_box_pack_start (GTK_BOX (vbox4), hbox13, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox13), 10);

  label28 = gtk_label_new (_("<span background=\"brown\" foreground=\"white\" size=\"xx-large\">    \n    \n 2 \n    \n    </span>"));
  gtk_widget_show (label28);
  gtk_box_pack_start (GTK_BOX (hbox13), label28, FALSE, TRUE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label28), TRUE);

  label29 = gtk_label_new (_("Enter this to a chat window once you are connected.\n\n/msg NickServ REGISTER your-password\n/msg NickServ SET EMAIL your-email-address\n\nWhere <your-password> and <your-email-address> is your defined \npassword and email address."));
  gtk_widget_show (label29);
  gtk_box_pack_start (GTK_BOX (hbox13), label29, FALSE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (label29, GTK_CAN_FOCUS);
  gtk_label_set_selectable (GTK_LABEL (label29), TRUE);
  gtk_misc_set_padding (GTK_MISC (label29), 10, 0);

  hseparator2 = gtk_hseparator_new ();
  gtk_widget_show (hseparator2);
  gtk_box_pack_start (GTK_BOX (vbox4), hseparator2, FALSE, FALSE, 0);

  hbuttonbox9 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox9);
  gtk_box_pack_end (GTK_BOX (vbox4), hbuttonbox9, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox9), 10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox9), GTK_BUTTONBOX_END);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox9), 15);

  page4_back_button = gtk_button_new_from_stock ("gtk-go-back");
  gtk_widget_show (page4_back_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox9), page4_back_button);
  gtk_widget_set_size_request (page4_back_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page4_back_button, GTK_CAN_DEFAULT);

  page4_connect_button = gtk_button_new_from_stock ("gtk-connect");
  gtk_widget_show (page4_connect_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox9), page4_connect_button);
  gtk_widget_set_size_request (page4_connect_button, 87, -1);
  GTK_WIDGET_SET_FLAGS (page4_connect_button, GTK_CAN_DEFAULT);

  hbox14 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox14);
  gtk_box_pack_start (GTK_BOX (vbox4), hbox14, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox14), 10);

  label30 = gtk_label_new (_("<span background=\"brown\" foreground=\"white\" size=\"xx-large\"> 3 </span>"));
  gtk_widget_show (label30);
  gtk_box_pack_start (GTK_BOX (hbox14), label30, FALSE, TRUE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label30), TRUE);

  label31 = gtk_label_new (_("Click the \"Connect\" Button to connect to Freenode.net"));
  gtk_widget_show (label31);
  gtk_box_pack_start (GTK_BOX (hbox14), label31, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (label31), 10, 0);

  label21 = gtk_label_new (_("label21"));
  gtk_widget_show (label21);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 3), label21);

  g_signal_connect ((gpointer) window, "destroy",
                    G_CALLBACK (on_window_destroy),
                    NULL);
  g_signal_connect ((gpointer) page1_cancel_button, "clicked",
                    G_CALLBACK (on_page1_cancel_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page1_next_button, "clicked",
                    G_CALLBACK (on_page1_next_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page2_register_button, "clicked",
                    G_CALLBACK (on_page2_register_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page2_back_button, "clicked",
                    G_CALLBACK (on_page2_back_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page2_connect_button, "clicked",
                    G_CALLBACK (on_page2_connect_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page3_back_button, "clicked",
                    G_CALLBACK (on_page3_back_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page3_next_button, "clicked",
                    G_CALLBACK (on_page3_next_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page4_back_button, "clicked",
                    G_CALLBACK (on_page4_back_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) page4_connect_button, "clicked",
                    G_CALLBACK (on_page4_connect_button_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (window, window, "window");
  GLADE_HOOKUP_OBJECT (window, notebook, "notebook");
  GLADE_HOOKUP_OBJECT (window, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (window, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (window, image1, "image1");
  GLADE_HOOKUP_OBJECT (window, label4, "label4");
  GLADE_HOOKUP_OBJECT (window, label5, "label5");
  GLADE_HOOKUP_OBJECT (window, hbuttonbox1, "hbuttonbox1");
  GLADE_HOOKUP_OBJECT (window, page1_cancel_button, "page1_cancel_button");
  GLADE_HOOKUP_OBJECT (window, page1_next_button, "page1_next_button");
  GLADE_HOOKUP_OBJECT (window, alignment1, "alignment1");
  GLADE_HOOKUP_OBJECT (window, hbox2, "hbox2");
  GLADE_HOOKUP_OBJECT (window, image2, "image2");
  GLADE_HOOKUP_OBJECT (window, label6, "label6");
  GLADE_HOOKUP_OBJECT (window, label1, "label1");
  GLADE_HOOKUP_OBJECT (window, vbox2, "vbox2");
  GLADE_HOOKUP_OBJECT (window, hbox3, "hbox3");
  GLADE_HOOKUP_OBJECT (window, image3, "image3");
  GLADE_HOOKUP_OBJECT (window, label7, "label7");
  GLADE_HOOKUP_OBJECT (window, label19, "label19");
  GLADE_HOOKUP_OBJECT (window, fixed1, "fixed1");
  GLADE_HOOKUP_OBJECT (window, username_entry, "username_entry");
  GLADE_HOOKUP_OBJECT (window, password_entry, "password_entry");
  GLADE_HOOKUP_OBJECT (window, label8, "label8");
  GLADE_HOOKUP_OBJECT (window, label9, "label9");
  GLADE_HOOKUP_OBJECT (window, hbox6, "hbox6");
  GLADE_HOOKUP_OBJECT (window, hbuttonbox7, "hbuttonbox7");
  GLADE_HOOKUP_OBJECT (window, page2_register_button, "page2_register_button");
  GLADE_HOOKUP_OBJECT (window, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (window, hbox7, "hbox7");
  GLADE_HOOKUP_OBJECT (window, image6, "image6");
  GLADE_HOOKUP_OBJECT (window, label18, "label18");
  GLADE_HOOKUP_OBJECT (window, hbuttonbox6, "hbuttonbox6");
  GLADE_HOOKUP_OBJECT (window, page2_back_button, "page2_back_button");
  GLADE_HOOKUP_OBJECT (window, page2_connect_button, "page2_connect_button");
  GLADE_HOOKUP_OBJECT (window, label2, "label2");
  GLADE_HOOKUP_OBJECT (window, vbox3, "vbox3");
  GLADE_HOOKUP_OBJECT (window, hbox5, "hbox5");
  GLADE_HOOKUP_OBJECT (window, image5, "image5");
  GLADE_HOOKUP_OBJECT (window, label12, "label12");
  GLADE_HOOKUP_OBJECT (window, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (window, textview1, "textview1");
  GLADE_HOOKUP_OBJECT (window, hbuttonbox8, "hbuttonbox8");
  GLADE_HOOKUP_OBJECT (window, page3_back_button, "page3_back_button");
  GLADE_HOOKUP_OBJECT (window, page3_next_button, "page3_next_button");
  GLADE_HOOKUP_OBJECT (window, alignment3, "alignment3");
  GLADE_HOOKUP_OBJECT (window, hbox8, "hbox8");
  GLADE_HOOKUP_OBJECT (window, image7, "image7");
  GLADE_HOOKUP_OBJECT (window, label20, "label20");
  GLADE_HOOKUP_OBJECT (window, label35, "label35");
  GLADE_HOOKUP_OBJECT (window, label3, "label3");
  GLADE_HOOKUP_OBJECT (window, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (window, hbox9, "hbox9");
  GLADE_HOOKUP_OBJECT (window, image8, "image8");
  GLADE_HOOKUP_OBJECT (window, label22, "label22");
  GLADE_HOOKUP_OBJECT (window, hbox12, "hbox12");
  GLADE_HOOKUP_OBJECT (window, label27, "label27");
  GLADE_HOOKUP_OBJECT (window, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (window, label33, "label33");
  GLADE_HOOKUP_OBJECT (window, hbox11, "hbox11");
  GLADE_HOOKUP_OBJECT (window, label25, "label25");
  GLADE_HOOKUP_OBJECT (window, register_username_entry, "register_username_entry");
  GLADE_HOOKUP_OBJECT (window, hbox15, "hbox15");
  GLADE_HOOKUP_OBJECT (window, label32, "label32");
  GLADE_HOOKUP_OBJECT (window, register_password_entry, "register_password_entry");
  GLADE_HOOKUP_OBJECT (window, label34, "label34");
  GLADE_HOOKUP_OBJECT (window, hseparator1, "hseparator1");
  GLADE_HOOKUP_OBJECT (window, hbox13, "hbox13");
  GLADE_HOOKUP_OBJECT (window, label28, "label28");
  GLADE_HOOKUP_OBJECT (window, label29, "label29");
  GLADE_HOOKUP_OBJECT (window, hseparator2, "hseparator2");
  GLADE_HOOKUP_OBJECT (window, hbuttonbox9, "hbuttonbox9");
  GLADE_HOOKUP_OBJECT (window, page4_back_button, "page4_back_button");
  GLADE_HOOKUP_OBJECT (window, page4_connect_button, "page4_connect_button");
  GLADE_HOOKUP_OBJECT (window, hbox14, "hbox14");
  GLADE_HOOKUP_OBJECT (window, label30, "label30");
  GLADE_HOOKUP_OBJECT (window, label31, "label31");
  GLADE_HOOKUP_OBJECT (window, label21, "label21");

  return window;
}

