/*
 * 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 "auth_callbacks.h"
#include "auth_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_auth_dialog (void)
{
  GtkWidget *hxplayer_auth_dialog;
  GdkPixbuf *hxplayer_auth_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *frame1;
  GtkWidget *vbox1;
  GtkWidget *had_server_realm_table;
  GtkWidget *had_server_proxy_label;
  GtkWidget *label8;
  GtkWidget *had_server_proxy;
  GtkWidget *had_realm;
  GtkWidget *vbox3;
  GtkWidget *vbox4;
  GtkWidget *label3;
  GtkWidget *had_username;
  GtkWidget *vbox5;
  GtkWidget *label4;
  GtkWidget *had_password;
  GtkWidget *label80;
  GtkWidget *dialog_action_area3;
  GtkWidget *AuthDialog;
  GtkWidget *cancelbutton1;
  GtkWidget *okbutton3;

  hxplayer_auth_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_auth_dialog, "hxplayer_auth_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_auth_dialog), _("Authentication"));
  hxplayer_auth_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_auth_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_auth_dialog), hxplayer_auth_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_auth_dialog_icon_pixbuf);
    }

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

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

  vbox1 = gtk_vbox_new (FALSE, 12);
  gtk_widget_set_name (vbox1, "vbox1");
  gtk_widget_show (vbox1);
  gtk_container_add (GTK_CONTAINER (frame1), vbox1);
  gtk_container_set_border_width (GTK_CONTAINER (vbox1), 12);

  had_server_realm_table = gtk_table_new (2, 2, FALSE);
  gtk_widget_set_name (had_server_realm_table, "had_server_realm_table");
  gtk_box_pack_start (GTK_BOX (vbox1), had_server_realm_table, FALSE, FALSE, 0);
  gtk_table_set_row_spacings (GTK_TABLE (had_server_realm_table), 6);
  gtk_table_set_col_spacings (GTK_TABLE (had_server_realm_table), 10);

  had_server_proxy_label = gtk_label_new (_("Server:"));
  gtk_widget_set_name (had_server_proxy_label, "had_server_proxy_label");
  gtk_widget_show (had_server_proxy_label);
  gtk_table_attach (GTK_TABLE (had_server_realm_table), had_server_proxy_label, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (had_server_proxy_label), 0, 0.5);

  label8 = gtk_label_new (_("Realm:"));
  gtk_widget_set_name (label8, "label8");
  gtk_widget_show (label8);
  gtk_table_attach (GTK_TABLE (had_server_realm_table), label8, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label8), 0, 0.5);

  had_server_proxy = gtk_label_new (_("<b>Server name</b>"));
  gtk_widget_set_name (had_server_proxy, "had_server_proxy");
  gtk_widget_show (had_server_proxy);
  gtk_table_attach (GTK_TABLE (had_server_realm_table), had_server_proxy, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (had_server_proxy), TRUE);
  gtk_misc_set_alignment (GTK_MISC (had_server_proxy), 0, 0.5);

  had_realm = gtk_label_new (_("<b>Realm name</b>"));
  gtk_widget_set_name (had_realm, "had_realm");
  gtk_widget_show (had_realm);
  gtk_table_attach (GTK_TABLE (had_server_realm_table), had_realm, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (had_realm), TRUE);
  gtk_misc_set_alignment (GTK_MISC (had_realm), 0, 0.5);

  vbox3 = gtk_vbox_new (FALSE, 5);
  gtk_widget_set_name (vbox3, "vbox3");
  gtk_widget_show (vbox3);
  gtk_box_pack_start (GTK_BOX (vbox1), vbox3, FALSE, FALSE, 0);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (vbox4, "vbox4");
  gtk_widget_show (vbox4);
  gtk_box_pack_start (GTK_BOX (vbox3), vbox4, TRUE, TRUE, 0);

  label3 = gtk_label_new (_("Username:"));
  gtk_widget_set_name (label3, "label3");
  gtk_widget_show (label3);
  gtk_box_pack_start (GTK_BOX (vbox4), label3, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);

  had_username = gtk_entry_new ();
  gtk_widget_set_name (had_username, "had_username");
  gtk_widget_show (had_username);
  gtk_box_pack_start (GTK_BOX (vbox4), had_username, FALSE, FALSE, 0);

  vbox5 = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (vbox5, "vbox5");
  gtk_widget_show (vbox5);
  gtk_box_pack_start (GTK_BOX (vbox3), vbox5, TRUE, TRUE, 0);

  label4 = gtk_label_new (_("Password:"));
  gtk_widget_set_name (label4, "label4");
  gtk_widget_show (label4);
  gtk_box_pack_start (GTK_BOX (vbox5), label4, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5);

  had_password = gtk_entry_new ();
  gtk_widget_set_name (had_password, "had_password");
  gtk_widget_show (had_password);
  gtk_box_pack_start (GTK_BOX (vbox5), had_password, FALSE, FALSE, 0);
  gtk_entry_set_visibility (GTK_ENTRY (had_password), FALSE);

  label80 = gtk_label_new (_("<b>Authentication</b>"));
  gtk_widget_set_name (label80, "label80");
  gtk_widget_show (label80);
  gtk_frame_set_label_widget (GTK_FRAME (frame1), label80);
  gtk_label_set_use_markup (GTK_LABEL (label80), TRUE);

  dialog_action_area3 = GTK_DIALOG (hxplayer_auth_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);

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

  cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_set_name (cancelbutton1, "cancelbutton1");
  gtk_widget_show (cancelbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (hxplayer_auth_dialog), cancelbutton1, GTK_RESPONSE_CANCEL);
  GTK_WIDGET_SET_FLAGS (cancelbutton1, 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_auth_dialog), okbutton3, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (okbutton3, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) AuthDialog, "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_auth_dialog, hxplayer_auth_dialog, "hxplayer_auth_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_auth_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, had_server_realm_table, "had_server_realm_table");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, had_server_proxy_label, "had_server_proxy_label");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, label8, "label8");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, had_server_proxy, "had_server_proxy");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, had_realm, "had_realm");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, vbox3, "vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, label3, "label3");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, had_username, "had_username");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, label4, "label4");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, had_password, "had_password");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, label80, "label80");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_auth_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, AuthDialog, "AuthDialog");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, cancelbutton1, "cancelbutton1");
  GLADE_HOOKUP_OBJECT (hxplayer_auth_dialog, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_auth_dialog;
}

