/*
 * 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 "unsupportedbrowser_callbacks.h"
#include "unsupportedbrowser_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_unsupported_browser_warning_dialog (void)
{
  GtkWidget *hxplayer_unsupported_browser_warning_dialog;
  GdkPixbuf *hxplayer_unsupported_browser_warning_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *hbox1;
  GtkWidget *image1;
  GtkWidget *vbox1;
  GtkWidget *label100;
  GtkWidget *hubd_show_warning_in_the_future;
  GtkWidget *dialog_action_area3;
  GtkWidget *ErrorDialog;
  GtkWidget *okbutton3;

  hxplayer_unsupported_browser_warning_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_unsupported_browser_warning_dialog, "hxplayer_unsupported_browser_warning_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_unsupported_browser_warning_dialog), _("RealPlayer Embedded Player Warning"));
  gtk_window_set_modal (GTK_WINDOW (hxplayer_unsupported_browser_warning_dialog), TRUE);
  hxplayer_unsupported_browser_warning_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_unsupported_browser_warning_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_unsupported_browser_warning_dialog), hxplayer_unsupported_browser_warning_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_unsupported_browser_warning_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (hxplayer_unsupported_browser_warning_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

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

  hbox1 = gtk_hbox_new (FALSE, 10);
  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-warning", 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, 6);
  gtk_widget_set_name (vbox1, "vbox1");
  gtk_widget_show (vbox1);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox1, TRUE, TRUE, 0);

  label100 = gtk_label_new (_("You are using a browser that does not support scriptable plugins. Many embedded player sites may not work correctly."));
  gtk_widget_set_name (label100, "label100");
  gtk_widget_show (label100);
  gtk_box_pack_start (GTK_BOX (vbox1), label100, FALSE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (label100, GTK_CAN_FOCUS);
  gtk_label_set_line_wrap (GTK_LABEL (label100), TRUE);
  gtk_label_set_selectable (GTK_LABEL (label100), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label100), 0, 0.5);

  hubd_show_warning_in_the_future = gtk_check_button_new_with_mnemonic (_("_Show this warning in the future"));
  gtk_widget_set_name (hubd_show_warning_in_the_future, "hubd_show_warning_in_the_future");
  gtk_widget_show (hubd_show_warning_in_the_future);
  gtk_box_pack_start (GTK_BOX (vbox1), hubd_show_warning_in_the_future, FALSE, FALSE, 0);

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

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

  g_signal_connect ((gpointer) ErrorDialog, "clicked",
                    G_CALLBACK (hxcommon_launch_error_help_with_widget_name),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_unsupported_browser_warning_dialog, hxplayer_unsupported_browser_warning_dialog, "hxplayer_unsupported_browser_warning_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_unsupported_browser_warning_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, image1, "image1");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, label100, "label100");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, hubd_show_warning_in_the_future, "hubd_show_warning_in_the_future");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_unsupported_browser_warning_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, ErrorDialog, "ErrorDialog");
  GLADE_HOOKUP_OBJECT (hxplayer_unsupported_browser_warning_dialog, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_unsupported_browser_warning_dialog;
}

