/*
 * 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 "transport_callbacks.h"
#include "transport_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_transport_settings (void)
{
  GtkWidget *hxplayer_transport_settings;
  GdkPixbuf *hxplayer_transport_settings_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *vbox3;
  GtkWidget *frame13;
  GtkWidget *vbox2;
  GtkWidget *htd_attempt_multicast;
  GtkWidget *htd_attempt_udp;
  GtkWidget *htd_attempt_tcp;
  GtkWidget *htd_attempt_http;
  GtkWidget *label33;
  GtkWidget *frame14;
  GtkWidget *table2;
  GtkWidget *label34;
  GtkWidget *htd_udp_timeout;
  GtkWidget *label39;
  GtkWidget *label36;
  GtkWidget *htd_tcp_timeout;
  GtkWidget *label40;
  GtkWidget *label41;
  GtkWidget *htd_multicast_timeout;
  GtkWidget *label42;
  GtkWidget *label38;
  GtkWidget *dialog_action_area3;
  GtkWidget *TransportDialog;
  GtkWidget *cancelbutton2;
  GtkWidget *okbutton3;

  hxplayer_transport_settings = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_transport_settings, "hxplayer_transport_settings");
  gtk_window_set_title (GTK_WINDOW (hxplayer_transport_settings), _("Transport Settings"));
  hxplayer_transport_settings_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_transport_settings_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_transport_settings), hxplayer_transport_settings_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_transport_settings_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (hxplayer_transport_settings), GDK_WINDOW_TYPE_HINT_DIALOG);

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

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

  frame13 = gtk_frame_new (NULL);
  gtk_widget_set_name (frame13, "frame13");
  gtk_widget_show (frame13);
  gtk_box_pack_start (GTK_BOX (vbox3), frame13, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame13), GTK_SHADOW_NONE);

  vbox2 = gtk_vbox_new (FALSE, 5);
  gtk_widget_set_name (vbox2, "vbox2");
  gtk_widget_show (vbox2);
  gtk_container_add (GTK_CONTAINER (frame13), vbox2);
  gtk_container_set_border_width (GTK_CONTAINER (vbox2), 12);

  htd_attempt_multicast = gtk_check_button_new_with_mnemonic (_("Attempt _multicast"));
  gtk_widget_set_name (htd_attempt_multicast, "htd_attempt_multicast");
  gtk_widget_show (htd_attempt_multicast);
  gtk_box_pack_start (GTK_BOX (vbox2), htd_attempt_multicast, FALSE, FALSE, 0);

  htd_attempt_udp = gtk_check_button_new_with_mnemonic (_("Attempt _UDP"));
  gtk_widget_set_name (htd_attempt_udp, "htd_attempt_udp");
  gtk_widget_show (htd_attempt_udp);
  gtk_box_pack_start (GTK_BOX (vbox2), htd_attempt_udp, FALSE, FALSE, 0);

  htd_attempt_tcp = gtk_check_button_new_with_mnemonic (_("Attempt _TCP"));
  gtk_widget_set_name (htd_attempt_tcp, "htd_attempt_tcp");
  gtk_widget_show (htd_attempt_tcp);
  gtk_box_pack_start (GTK_BOX (vbox2), htd_attempt_tcp, FALSE, FALSE, 0);

  htd_attempt_http = gtk_check_button_new_with_mnemonic (_("Attempt _HTTP"));
  gtk_widget_set_name (htd_attempt_http, "htd_attempt_http");
  gtk_widget_show (htd_attempt_http);
  gtk_box_pack_start (GTK_BOX (vbox2), htd_attempt_http, FALSE, FALSE, 0);

  label33 = gtk_label_new (_("<b>Transports</b>"));
  gtk_widget_set_name (label33, "label33");
  gtk_widget_show (label33);
  gtk_frame_set_label_widget (GTK_FRAME (frame13), label33);
  gtk_label_set_use_markup (GTK_LABEL (label33), TRUE);

  frame14 = gtk_frame_new (NULL);
  gtk_widget_set_name (frame14, "frame14");
  gtk_widget_show (frame14);
  gtk_box_pack_start (GTK_BOX (vbox3), frame14, TRUE, TRUE, 0);
  gtk_frame_set_shadow_type (GTK_FRAME (frame14), GTK_SHADOW_NONE);

  table2 = gtk_table_new (3, 3, FALSE);
  gtk_widget_set_name (table2, "table2");
  gtk_widget_show (table2);
  gtk_container_add (GTK_CONTAINER (frame14), table2);
  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), 6);

  label34 = gtk_label_new (_("UDP time-out"));
  gtk_widget_set_name (label34, "label34");
  gtk_widget_show (label34);
  gtk_table_attach (GTK_TABLE (table2), label34, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label34), 0, 0.5);

  htd_udp_timeout = gtk_entry_new ();
  gtk_widget_set_name (htd_udp_timeout, "htd_udp_timeout");
  gtk_widget_show (htd_udp_timeout);
  gtk_table_attach (GTK_TABLE (table2), htd_udp_timeout, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_size_request (htd_udp_timeout, 90, -1);
  gtk_entry_set_width_chars (GTK_ENTRY (htd_udp_timeout), 10);

  label39 = gtk_label_new (_("ms"));
  gtk_widget_set_name (label39, "label39");
  gtk_widget_show (label39);
  gtk_table_attach (GTK_TABLE (table2), label39, 2, 3, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label36 = gtk_label_new (_("TCP time-out"));
  gtk_widget_set_name (label36, "label36");
  gtk_widget_show (label36);
  gtk_table_attach (GTK_TABLE (table2), label36, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label36), 0, 0.5);

  htd_tcp_timeout = gtk_entry_new ();
  gtk_widget_set_name (htd_tcp_timeout, "htd_tcp_timeout");
  gtk_widget_show (htd_tcp_timeout);
  gtk_table_attach (GTK_TABLE (table2), htd_tcp_timeout, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_size_request (htd_tcp_timeout, 90, -1);
  gtk_entry_set_width_chars (GTK_ENTRY (htd_tcp_timeout), 10);

  label40 = gtk_label_new (_("ms"));
  gtk_widget_set_name (label40, "label40");
  gtk_widget_show (label40);
  gtk_table_attach (GTK_TABLE (table2), label40, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label41 = gtk_label_new (_("Multicast time-out"));
  gtk_widget_set_name (label41, "label41");
  gtk_widget_show (label41);
  gtk_table_attach (GTK_TABLE (table2), label41, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label41), 0, 0.5);

  htd_multicast_timeout = gtk_entry_new ();
  gtk_widget_set_name (htd_multicast_timeout, "htd_multicast_timeout");
  gtk_widget_show (htd_multicast_timeout);
  gtk_table_attach (GTK_TABLE (table2), htd_multicast_timeout, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_widget_set_size_request (htd_multicast_timeout, 90, -1);

  label42 = gtk_label_new (_("ms"));
  gtk_widget_set_name (label42, "label42");
  gtk_widget_show (label42);
  gtk_table_attach (GTK_TABLE (table2), label42, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label38 = gtk_label_new (_("<b>Timeouts</b>"));
  gtk_widget_set_name (label38, "label38");
  gtk_widget_show (label38);
  gtk_frame_set_label_widget (GTK_FRAME (frame14), label38);
  gtk_label_set_use_markup (GTK_LABEL (label38), TRUE);

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

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

  g_signal_connect ((gpointer) TransportDialog, "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_transport_settings, hxplayer_transport_settings, "hxplayer_transport_settings");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_transport_settings, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, vbox3, "vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, frame13, "frame13");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, vbox2, "vbox2");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_attempt_multicast, "htd_attempt_multicast");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_attempt_udp, "htd_attempt_udp");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_attempt_tcp, "htd_attempt_tcp");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_attempt_http, "htd_attempt_http");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label33, "label33");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, frame14, "frame14");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, table2, "table2");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label34, "label34");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_udp_timeout, "htd_udp_timeout");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label39, "label39");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label36, "label36");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_tcp_timeout, "htd_tcp_timeout");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label40, "label40");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label41, "label41");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, htd_multicast_timeout, "htd_multicast_timeout");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label42, "label42");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, label38, "label38");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_transport_settings, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, TransportDialog, "TransportDialog");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, cancelbutton2, "cancelbutton2");
  GLADE_HOOKUP_OBJECT (hxplayer_transport_settings, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_transport_settings;
}

