/*
 * 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 "upgrade_callbacks.h"
#include "upgrade_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_upgrade_dialog (void)
{
  GtkWidget *hxplayer_upgrade_dialog;
  GdkPixbuf *hxplayer_upgrade_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *hbox1;
  GtkWidget *image1;
  GtkWidget *vbox1;
  GtkWidget *hud_upgrade_description_label;
  GtkWidget *hbox2;
  GtkWidget *hud_check_for_updates_button;
  GtkWidget *button1;
  GtkWidget *hud_details_vbox;
  GtkWidget *label2;
  GtkWidget *hud_upgrade_label;
  GtkWidget *label3;
  GtkWidget *hud_uri_label;
  GtkWidget *dialog_action_area3;
  GtkWidget *UpgradeDialog;
  GtkWidget *okbutton3;

  hxplayer_upgrade_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_upgrade_dialog, "hxplayer_upgrade_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_upgrade_dialog), _("Component Missing"));
  hxplayer_upgrade_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_upgrade_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_upgrade_dialog), hxplayer_upgrade_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_upgrade_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (hxplayer_upgrade_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

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

  hbox1 = gtk_hbox_new (FALSE, 12);
  gtk_widget_set_name (hbox1, "hbox1");
  gtk_widget_show (hbox1);
  gtk_box_pack_start (GTK_BOX (dialog_vbox3), hbox1, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox1), 12);

  image1 = gtk_image_new_from_stock ("gtk-dialog-error", GTK_ICON_SIZE_DIALOG);
  gtk_widget_set_name (image1, "image1");
  gtk_widget_show (image1);
  gtk_box_pack_start (GTK_BOX (hbox1), image1, FALSE, FALSE, 0);

  vbox1 = gtk_vbox_new (FALSE, 12);
  gtk_widget_set_name (vbox1, "vbox1");
  gtk_widget_show (vbox1);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox1, TRUE, TRUE, 0);

  hud_upgrade_description_label = gtk_label_new (_("<b>The player does not have the capabilities to play back this content.</b>"));
  gtk_widget_set_name (hud_upgrade_description_label, "hud_upgrade_description_label");
  gtk_widget_show (hud_upgrade_description_label);
  gtk_box_pack_start (GTK_BOX (vbox1), hud_upgrade_description_label, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (hud_upgrade_description_label), TRUE);
  gtk_label_set_line_wrap (GTK_LABEL (hud_upgrade_description_label), TRUE);
  gtk_misc_set_alignment (GTK_MISC (hud_upgrade_description_label), 0, 0.5);

  hbox2 = gtk_hbox_new (TRUE, 12);
  gtk_widget_set_name (hbox2, "hbox2");
  gtk_widget_show (hbox2);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox2, TRUE, TRUE, 0);

  hud_check_for_updates_button = gtk_button_new_with_mnemonic (_("Check for Updates..."));
  gtk_widget_set_name (hud_check_for_updates_button, "hud_check_for_updates_button");
  gtk_widget_show (hud_check_for_updates_button);
  gtk_box_pack_start (GTK_BOX (hbox2), hud_check_for_updates_button, TRUE, TRUE, 0);

  button1 = gtk_button_new_with_mnemonic (_("Details..."));
  gtk_widget_set_name (button1, "button1");
  gtk_widget_show (button1);
  gtk_box_pack_start (GTK_BOX (hbox2), button1, TRUE, TRUE, 0);

  hud_details_vbox = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (hud_details_vbox, "hud_details_vbox");
  gtk_box_pack_start (GTK_BOX (vbox1), hud_details_vbox, FALSE, FALSE, 0);

  label2 = gtk_label_new (_("<b>The following components are required:</b>"));
  gtk_widget_set_name (label2, "label2");
  gtk_widget_show (label2);
  gtk_box_pack_start (GTK_BOX (hud_details_vbox), label2, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label2), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5);

  hud_upgrade_label = gtk_label_new (_("Upgrade Label"));
  gtk_widget_set_name (hud_upgrade_label, "hud_upgrade_label");
  gtk_widget_show (hud_upgrade_label);
  gtk_box_pack_start (GTK_BOX (hud_details_vbox), hud_upgrade_label, FALSE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (hud_upgrade_label, GTK_CAN_FOCUS);
  gtk_label_set_selectable (GTK_LABEL (hud_upgrade_label), TRUE);
  gtk_misc_set_alignment (GTK_MISC (hud_upgrade_label), 0, 0);

  label3 = gtk_label_new (_("<b>URL:</b>"));
  gtk_widget_set_name (label3, "label3");
  gtk_widget_show (label3);
  gtk_box_pack_start (GTK_BOX (hud_details_vbox), label3, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label3), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);

  hud_uri_label = gtk_label_new (_("URL"));
  gtk_widget_set_name (hud_uri_label, "hud_uri_label");
  gtk_widget_show (hud_uri_label);
  gtk_box_pack_start (GTK_BOX (hud_details_vbox), hud_uri_label, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (hud_uri_label), 0, 0.5);

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

  UpgradeDialog = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_set_name (UpgradeDialog, "UpgradeDialog");
  gtk_widget_show (UpgradeDialog);
  gtk_dialog_add_action_widget (GTK_DIALOG (hxplayer_upgrade_dialog), UpgradeDialog, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (UpgradeDialog, 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_upgrade_dialog), okbutton3, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (okbutton3, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) hud_check_for_updates_button, "clicked",
                    G_CALLBACK (hud_check_for_updates),
                    NULL);
  g_signal_connect ((gpointer) button1, "clicked",
                    G_CALLBACK (hud_show_details),
                    NULL);
  g_signal_connect ((gpointer) UpgradeDialog, "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_upgrade_dialog, hxplayer_upgrade_dialog, "hxplayer_upgrade_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_upgrade_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, image1, "image1");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hud_upgrade_description_label, "hud_upgrade_description_label");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hbox2, "hbox2");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hud_check_for_updates_button, "hud_check_for_updates_button");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, button1, "button1");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hud_details_vbox, "hud_details_vbox");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, label2, "label2");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hud_upgrade_label, "hud_upgrade_label");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, label3, "label3");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, hud_uri_label, "hud_uri_label");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_upgrade_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, UpgradeDialog, "UpgradeDialog");
  GLADE_HOOKUP_OBJECT (hxplayer_upgrade_dialog, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_upgrade_dialog;
}

