/*
 * 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 <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#include "familiar_callbacks.h"
#include "familiar_interface.h"
#include "familiar_support.h"

GtkWidget*
create_familiar (void)
{
  GtkWidget *familiar;
  GtkWidget *vbox;
  GtkWidget *toolbar;
  GtkWidget *xpm_open;
  GtkWidget *xpm_preferences;
  GtkWidget *xpm_rewind;
  GtkWidget *xpm_pause;
  GtkWidget *xpm_play;
  GtkWidget *xpm_stop;
  GtkWidget *xpm_forward;
  GtkWidget *progress;
  GtkWidget *notebook;
  GtkWidget *empty_notebook_page;
  GtkWidget *media;
  GtkWidget *preference;
  GtkWidget *help;
  GtkWidget *about;

  familiar = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (familiar), "familiar", familiar);
  gtk_widget_set_usize (familiar, 240, 320);
  gtk_window_set_title (GTK_WINDOW (familiar), _("vlc (familiar)"));
  gtk_window_set_policy (GTK_WINDOW (familiar), FALSE, FALSE, FALSE);

  vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "vbox", vbox,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox);
  gtk_container_add (GTK_CONTAINER (familiar), vbox);

  toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS);
  gtk_widget_ref (toolbar);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "toolbar", toolbar,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (toolbar);
  gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, TRUE, 0);
  gtk_widget_set_usize (toolbar, 112, 16);

  xpm_open = create_pixmap (familiar, "familiar-openb16x16.xpm");
  gtk_widget_ref (xpm_open);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_open", xpm_open,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_open);
  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_open, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_open, GTK_CAN_FOCUS);

  xpm_preferences = create_pixmap (familiar, "familiar-preferencesb16x16.xpm");
  gtk_widget_ref (xpm_preferences);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_preferences", xpm_preferences,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_preferences);
  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_preferences, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_preferences, GTK_CAN_FOCUS);

  xpm_rewind = create_pixmap (familiar, "familiar-rewindb16x16.xpm");
  gtk_widget_ref (xpm_rewind);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_rewind", xpm_rewind,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_rewind);
  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));

  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_rewind, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_rewind, GTK_CAN_FOCUS);

  xpm_pause = create_pixmap (familiar, "familiar-pauseb16x16.xpm");
  gtk_widget_ref (xpm_pause);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_pause", xpm_pause,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_pause);
  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_pause, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_pause, GTK_CAN_FOCUS);

  xpm_play = create_pixmap (familiar, "familiar-playb16x16.xpm");
  gtk_widget_ref (xpm_play);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_play", xpm_play,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_play);
  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_play, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_play, GTK_CAN_FOCUS);

  xpm_stop = create_pixmap (familiar, "familiar-stopb16x16.xpm");
  gtk_widget_ref (xpm_stop);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_stop", xpm_stop,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_stop);
  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_stop, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_stop, GTK_CAN_FOCUS);

  xpm_forward = create_pixmap (familiar, "familiar-forwardb16x16.xpm");
  gtk_widget_ref (xpm_forward);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "xpm_forward", xpm_forward,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (xpm_forward);
  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), xpm_forward, NULL, NULL);
  GTK_WIDGET_SET_FLAGS (xpm_forward, GTK_CAN_FOCUS);

  progress = gtk_progress_bar_new ();
  gtk_widget_ref (progress);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "progress", progress,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (progress);
  gtk_box_pack_start (GTK_BOX (vbox), progress, FALSE, FALSE, 0);
  gtk_progress_set_activity_mode (GTK_PROGRESS (progress), TRUE);

  notebook = gtk_notebook_new ();
  gtk_widget_ref (notebook);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "notebook", notebook,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (notebook);
  gtk_box_pack_start (GTK_BOX (vbox), notebook, TRUE, TRUE, 0);

  empty_notebook_page = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (empty_notebook_page);
  gtk_container_add (GTK_CONTAINER (notebook), empty_notebook_page);

  media = gtk_label_new (_("Media"));
  gtk_widget_ref (media);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "media", media,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (media);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), media);

  empty_notebook_page = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (empty_notebook_page);
  gtk_container_add (GTK_CONTAINER (notebook), empty_notebook_page);

  preference = gtk_label_new (_("Preference"));
  gtk_widget_ref (preference);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "preference", preference,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (preference);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 1), preference);

  empty_notebook_page = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (empty_notebook_page);
  gtk_container_add (GTK_CONTAINER (notebook), empty_notebook_page);

  help = gtk_label_new (_("Help"));
  gtk_widget_ref (help);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "help", help,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (help);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 2), help);

  empty_notebook_page = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (empty_notebook_page);
  gtk_container_add (GTK_CONTAINER (notebook), empty_notebook_page);

  about = gtk_label_new (_("About"));
  gtk_widget_ref (about);
  gtk_object_set_data_full (GTK_OBJECT (familiar), "about", about,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (about);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 3), about);

  gtk_signal_connect (GTK_OBJECT (xpm_open), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_open_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (xpm_preferences), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_preferences_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (xpm_rewind), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_rewind_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (xpm_pause), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_pause_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (xpm_play), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_play_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (xpm_stop), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_stop_button_press_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (xpm_forward), "button_press_event",
                      GTK_SIGNAL_FUNC (on_xpm_forward_button_press_event),
                      NULL);

  return familiar;
}

