/*
 * 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 "about_callbacks.h"
#include "about_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_about_dialog (void)
{
  GtkWidget *hxplayer_about_dialog;
  GdkPixbuf *hxplayer_about_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *vbox1;
  GtkWidget *image1;
  GtkWidget *had_version;
  GtkWidget *had_distcode_origcode;
  GtkWidget *had_url;
  GtkWidget *had_copyright;
  GtkWidget *vbox2;
  GtkWidget *had_misc_build_info;
  GtkWidget *had_patent_info;
  GtkWidget *label1;
  GtkWidget *scrolledwindow1;
  GtkWidget *had_copyrights;
  GtkWidget *dialog_action_area3;
  GtkWidget *had_close_button;

  hxplayer_about_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_about_dialog, "hxplayer_about_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_about_dialog), _("About Helix Player"));
  hxplayer_about_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_about_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_about_dialog), hxplayer_about_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_about_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (hxplayer_about_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox3 = GTK_DIALOG (hxplayer_about_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);

  image1 = create_pixmap (hxplayer_about_dialog, "logo.png");
  gtk_widget_set_name (image1, "image1");
  gtk_widget_show (image1);
  gtk_box_pack_start (GTK_BOX (vbox1), image1, FALSE, FALSE, 0);

  had_version = gtk_label_new (_("<span size=\"xx-large\" weight=\"bold\">Helix Player (version)</span>"));
  gtk_widget_set_name (had_version, "had_version");
  gtk_widget_show (had_version);
  gtk_box_pack_start (GTK_BOX (vbox1), had_version, FALSE, FALSE, 2);
  gtk_label_set_use_markup (GTK_LABEL (had_version), TRUE);
  gtk_misc_set_alignment (GTK_MISC (had_version), 0.48, 0.5);

  had_distcode_origcode = gtk_label_new (_("Player origin code: HPX01D (HPX01D)"));
  gtk_widget_set_name (had_distcode_origcode, "had_distcode_origcode");
  gtk_widget_show (had_distcode_origcode);
  gtk_box_pack_start (GTK_BOX (vbox1), had_distcode_origcode, FALSE, FALSE, 2);

  had_url = gtk_label_new (_("https://player.helixcommunity.org"));
  gtk_widget_set_name (had_url, "had_url");
  gtk_widget_show (had_url);
  gtk_box_pack_start (GTK_BOX (vbox1), had_url, FALSE, FALSE, 2);

  had_copyright = gtk_label_new (_("<span size=\"small\"> Copyright \302\251 2006 RealNetworks</span>"));
  gtk_widget_set_name (had_copyright, "had_copyright");
  gtk_widget_show (had_copyright);
  gtk_box_pack_start (GTK_BOX (vbox1), had_copyright, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (had_copyright), TRUE);

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

  had_misc_build_info = gtk_label_new (_("<span size=\"small\">gcc version</span>"));
  gtk_widget_set_name (had_misc_build_info, "had_misc_build_info");
  gtk_widget_show (had_misc_build_info);
  gtk_box_pack_start (GTK_BOX (vbox2), had_misc_build_info, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (had_misc_build_info), TRUE);

  had_patent_info = gtk_label_new (_("<span size=\"small\"> </span>"));
  gtk_widget_set_name (had_patent_info, "had_patent_info");
  gtk_widget_show (had_patent_info);
  gtk_box_pack_start (GTK_BOX (vbox2), had_patent_info, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (had_patent_info), TRUE);

  label1 = gtk_label_new (_("<b>Copyrights:</b>"));
  gtk_widget_set_name (label1, "label1");
  gtk_widget_show (label1);
  gtk_box_pack_start (GTK_BOX (vbox2), label1, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label1), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label1), 0, 4);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_set_name (scrolledwindow1, "scrolledwindow1");
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);

  had_copyrights = gtk_text_view_new ();
  gtk_widget_set_name (had_copyrights, "had_copyrights");
  gtk_widget_show (had_copyrights);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), had_copyrights);
  gtk_widget_set_size_request (had_copyrights, -1, 120);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (had_copyrights), FALSE);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (had_copyrights), FALSE);

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

  had_close_button = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_set_name (had_close_button, "had_close_button");
  gtk_widget_show (had_close_button);
  gtk_dialog_add_action_widget (GTK_DIALOG (hxplayer_about_dialog), had_close_button, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (had_close_button, GTK_CAN_DEFAULT);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_about_dialog, hxplayer_about_dialog, "hxplayer_about_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_about_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, image1, "image1");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_version, "had_version");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_distcode_origcode, "had_distcode_origcode");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_url, "had_url");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_copyright, "had_copyright");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, vbox2, "vbox2");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_misc_build_info, "had_misc_build_info");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_patent_info, "had_patent_info");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, label1, "label1");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_copyrights, "had_copyrights");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_about_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_about_dialog, had_close_button, "had_close_button");

  gtk_widget_grab_default (had_close_button);
  return hxplayer_about_dialog;
}

