/*
 * 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 "signin_callbacks.h"
#include "signin_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*
create_hxplayer_sign_in_dialog (void)
{
  GtkWidget *hxplayer_sign_in_dialog;
  GdkPixbuf *hxplayer_sign_in_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *frame13;
  GtkWidget *vbox1;
  GtkWidget *table2;
  GtkWidget *label35;
  GtkWidget *label24;
  GtkWidget *hsi_username;
  GtkWidget *hsi_password;
  GtkWidget *label34;
  GtkWidget *dialog_action_area3;
  GtkWidget *SignIn;
  GtkWidget *cancelbutton2;
  GtkWidget *okbutton3;

  hxplayer_sign_in_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_sign_in_dialog, "hxplayer_sign_in_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_sign_in_dialog), _("Sign In"));
  hxplayer_sign_in_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_sign_in_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_sign_in_dialog), hxplayer_sign_in_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_sign_in_dialog_icon_pixbuf);
    }

  dialog_vbox3 = GTK_DIALOG (hxplayer_sign_in_dialog)->vbox;
  gtk_widget_set_name (dialog_vbox3, "dialog_vbox3");
  gtk_widget_show (dialog_vbox3);

  frame13 = gtk_frame_new (NULL);
  gtk_widget_set_name (frame13, "frame13");
  gtk_widget_show (frame13);
  gtk_box_pack_start (GTK_BOX (dialog_vbox3), frame13, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame13), 12);
  gtk_frame_set_shadow_type (GTK_FRAME (frame13), GTK_SHADOW_NONE);

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (vbox1, "vbox1");
  gtk_widget_show (vbox1);
  gtk_container_add (GTK_CONTAINER (frame13), vbox1);

  table2 = gtk_table_new (2, 2, FALSE);
  gtk_widget_set_name (table2, "table2");
  gtk_widget_show (table2);
  gtk_box_pack_start (GTK_BOX (vbox1), table2, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (table2), 12);
  gtk_table_set_row_spacings (GTK_TABLE (table2), 6);
  gtk_table_set_col_spacings (GTK_TABLE (table2), 10);

  label35 = gtk_label_new (_("E-mail address:"));
  gtk_widget_set_name (label35, "label35");
  gtk_widget_show (label35);
  gtk_table_attach (GTK_TABLE (table2), label35, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label35), 0, 0.5);

  label24 = gtk_label_new (_("Password:"));
  gtk_widget_set_name (label24, "label24");
  gtk_widget_show (label24);
  gtk_table_attach (GTK_TABLE (table2), label24, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label24), 0, 0.5);

  hsi_username = gtk_entry_new ();
  gtk_widget_set_name (hsi_username, "hsi_username");
  gtk_widget_show (hsi_username);
  gtk_table_attach (GTK_TABLE (table2), hsi_username, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  hsi_password = gtk_entry_new ();
  gtk_widget_set_name (hsi_password, "hsi_password");
  gtk_widget_show (hsi_password);
  gtk_table_attach (GTK_TABLE (table2), hsi_password, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_visibility (GTK_ENTRY (hsi_password), FALSE);

  label34 = gtk_label_new (_("<b>Sign in to Premium Content</b>"));
  gtk_widget_set_name (label34, "label34");
  gtk_widget_show (label34);
  gtk_frame_set_label_widget (GTK_FRAME (frame13), label34);
  gtk_label_set_use_markup (GTK_LABEL (label34), TRUE);

  dialog_action_area3 = GTK_DIALOG (hxplayer_sign_in_dialog)->action_area;
  gtk_widget_set_name (dialog_action_area3, "dialog_action_area3");
  gtk_widget_show (dialog_action_area3);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END);

  SignIn = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_set_name (SignIn, "SignIn");
  gtk_widget_show (SignIn);
  gtk_dialog_add_action_widget (GTK_DIALOG (hxplayer_sign_in_dialog), SignIn, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (SignIn, GTK_CAN_DEFAULT);

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

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

  g_signal_connect ((gpointer) SignIn, "clicked",
                    G_CALLBACK (hxcommon_launch_context_help_with_widget_name),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_sign_in_dialog, hxplayer_sign_in_dialog, "hxplayer_sign_in_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_sign_in_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, frame13, "frame13");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, table2, "table2");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, label35, "label35");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, label24, "label24");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, hsi_username, "hsi_username");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, hsi_password, "hsi_password");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, label34, "label34");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_sign_in_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, SignIn, "SignIn");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, cancelbutton2, "cancelbutton2");
  GLADE_HOOKUP_OBJECT (hxplayer_sign_in_dialog, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_sign_in_dialog;
}

