/*
 * 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 "favorites_callbacks.h"
#include "favorites_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_favorites_dialog (void)
{
  GtkWidget *hxplayer_favorites_dialog;
  GdkPixbuf *hxplayer_favorites_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *frame1;
  GtkWidget *vbox1;
  GtkWidget *scrolledwindow1;
  GtkWidget *hfd_tree_view;
  GtkWidget *hbox1;
  GtkWidget *fixed1;
  GtkWidget *button1;
  GtkWidget *hfd_delete_button;
  GtkWidget *label1;
  GtkWidget *dialog_action_area3;
  GtkWidget *FavoritesDialog;
  GtkWidget *okbutton3;

  hxplayer_favorites_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_favorites_dialog, "hxplayer_favorites_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_favorites_dialog), _("Manage Favorites"));
  gtk_window_set_default_size (GTK_WINDOW (hxplayer_favorites_dialog), 600, 350);
  hxplayer_favorites_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_favorites_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_favorites_dialog), hxplayer_favorites_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_favorites_dialog_icon_pixbuf);
    }

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

  frame1 = gtk_frame_new (NULL);
  gtk_widget_set_name (frame1, "frame1");
  gtk_widget_show (frame1);
  gtk_box_pack_start (GTK_BOX (dialog_vbox3), frame1, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame1), 12);
  gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_NONE);

  vbox1 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox1, "vbox1");
  gtk_widget_show (vbox1);
  gtk_container_add (GTK_CONTAINER (frame1), vbox1);
  gtk_container_set_border_width (GTK_CONTAINER (vbox1), 12);

  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);

  hfd_tree_view = gtk_tree_view_new ();
  gtk_widget_set_name (hfd_tree_view, "hfd_tree_view");
  gtk_widget_show (hfd_tree_view);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), hfd_tree_view);

  hbox1 = gtk_hbox_new (FALSE, 0);
  gtk_widget_set_name (hbox1, "hbox1");
  gtk_widget_show (hbox1);
  gtk_box_pack_end (GTK_BOX (vbox1), hbox1, FALSE, TRUE, 0);

  fixed1 = gtk_fixed_new ();
  gtk_widget_set_name (fixed1, "fixed1");
  gtk_widget_show (fixed1);
  gtk_box_pack_start (GTK_BOX (hbox1), fixed1, TRUE, TRUE, 0);

  button1 = gtk_button_new_from_stock ("gtk-new");
  gtk_widget_set_name (button1, "button1");
  gtk_widget_show (button1);
  gtk_box_pack_start (GTK_BOX (hbox1), button1, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (button1), 3);

  hfd_delete_button = gtk_button_new_from_stock ("gtk-delete");
  gtk_widget_set_name (hfd_delete_button, "hfd_delete_button");
  gtk_widget_show (hfd_delete_button);
  gtk_box_pack_start (GTK_BOX (hbox1), hfd_delete_button, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hfd_delete_button), 3);
  gtk_widget_set_sensitive (hfd_delete_button, FALSE);

  label1 = gtk_label_new (_("<b>Favorites</b>"));
  gtk_widget_set_name (label1, "label1");
  gtk_widget_show (label1);
  gtk_frame_set_label_widget (GTK_FRAME (frame1), label1);
  gtk_label_set_use_markup (GTK_LABEL (label1), TRUE);

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

  FavoritesDialog = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_set_name (FavoritesDialog, "FavoritesDialog");
  gtk_widget_show (FavoritesDialog);
  gtk_dialog_add_action_widget (GTK_DIALOG (hxplayer_favorites_dialog), FavoritesDialog, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (FavoritesDialog, GTK_CAN_DEFAULT);

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

  g_signal_connect ((gpointer) button1, "clicked",
                    G_CALLBACK (hfd_new_favorite),
                    NULL);
  g_signal_connect ((gpointer) hfd_delete_button, "clicked",
                    G_CALLBACK (hfd_delete_favorite),
                    NULL);
  g_signal_connect ((gpointer) FavoritesDialog, "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_favorites_dialog, hxplayer_favorites_dialog, "hxplayer_favorites_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_favorites_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, hfd_tree_view, "hfd_tree_view");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, fixed1, "fixed1");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, button1, "button1");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, hfd_delete_button, "hfd_delete_button");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, label1, "label1");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_favorites_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, FavoritesDialog, "FavoritesDialog");
  GLADE_HOOKUP_OBJECT (hxplayer_favorites_dialog, okbutton3, "okbutton3");

  gtk_widget_grab_default (okbutton3);
  return hxplayer_favorites_dialog;
}

