/*
 * 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 "uri_callbacks.h"
#include "uri_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_open_uri_dialog (void)
{
  GtkWidget *hxplayer_open_uri_dialog;
  GdkPixbuf *hxplayer_open_uri_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *vbox1;
  GtkWidget *label33;
  GtkWidget *houd_uri_combo;
  GtkWidget *houd_uri_entry;
  GtkWidget *dialog_action_area3;
  GtkWidget *EnterURLDialog;
  GtkWidget *cancelbutton2;
  GtkWidget *okbutton3;

  hxplayer_open_uri_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_open_uri_dialog, "hxplayer_open_uri_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_open_uri_dialog), _("Open Location"));
  hxplayer_open_uri_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_open_uri_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_open_uri_dialog), hxplayer_open_uri_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_open_uri_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (hxplayer_open_uri_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

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

  vbox1 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox1, "vbox1");
  gtk_widget_show (vbox1);
  gtk_box_pack_start (GTK_BOX (dialog_vbox3), vbox1, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbox1), 12);

  label33 = gtk_label_new (_("Enter an internet URL or file path to view:"));
  gtk_widget_set_name (label33, "label33");
  gtk_widget_show (label33);
  gtk_box_pack_start (GTK_BOX (vbox1), label33, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label33), 0, 0.5);

  houd_uri_combo = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (houd_uri_combo)->popwin),
                     "GladeParentKey", houd_uri_combo);
  gtk_widget_set_name (houd_uri_combo, "houd_uri_combo");
  gtk_widget_show (houd_uri_combo);
  gtk_box_pack_start (GTK_BOX (vbox1), houd_uri_combo, FALSE, FALSE, 0);
  gtk_widget_set_size_request (houd_uri_combo, 282, 25);
  gtk_combo_set_case_sensitive (GTK_COMBO (houd_uri_combo), TRUE);

  houd_uri_entry = GTK_COMBO (houd_uri_combo)->entry;
  gtk_widget_set_name (houd_uri_entry, "houd_uri_entry");
  gtk_widget_show (houd_uri_entry);

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

  EnterURLDialog = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_set_name (EnterURLDialog, "EnterURLDialog");
  gtk_widget_show (EnterURLDialog);
  gtk_dialog_add_action_widget (GTK_DIALOG (hxplayer_open_uri_dialog), EnterURLDialog, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (EnterURLDialog, 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_open_uri_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_open_uri_dialog), okbutton3, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (okbutton3, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) houd_uri_entry, "key_press_event",
                    G_CALLBACK (houd_uri_entry_key_press_event),
                    NULL);
  g_signal_connect ((gpointer) EnterURLDialog, "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_open_uri_dialog, hxplayer_open_uri_dialog, "hxplayer_open_uri_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_open_uri_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, label33, "label33");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, houd_uri_combo, "houd_uri_combo");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, houd_uri_entry, "houd_uri_entry");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_open_uri_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, EnterURLDialog, "EnterURLDialog");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, cancelbutton2, "cancelbutton2");
  GLADE_HOOKUP_OBJECT (hxplayer_open_uri_dialog, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_open_uri_dialog;
}

