/*
 * 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 "main_callbacks.h"
#include "main_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_main_window (void)
{
  GtkWidget *hxplayer_main_window;
  GdkPixbuf *hxplayer_main_window_icon_pixbuf;
  GtkWidget *hmw_vbox;
  GtkWidget *hmw_menu_bar;
  GtkWidget *hmw_file_menu;
  GtkWidget *hmw_file_menu_menu;
  GtkWidget *hmw_open_file_menu_item;
  GtkWidget *image1522;
  GtkWidget *hmw_open_location_menu_item;
  GtkWidget *image1523;
  GtkWidget *separator14;
  GtkWidget *hmw_clip_properties_menu_item;
  GtkWidget *hmw_clip_properties_menu_item_menu;
  GtkWidget *hmw_clip_details_menu_item;
  GtkWidget *hmw_view_source_menu_item;
  GtkWidget *hmw_mru_separator;
  GtkWidget *hmw_close_menu_item;
  GtkWidget *hmw_quit_menu_item;
  GtkWidget *image1524;
  GtkWidget *hmw_play_menu;
  GtkWidget *hmw_play_menu_menu;
  GtkWidget *hmw_play_menu_item;
  GtkWidget *image1525;
  GtkWidget *hmw_pause_menu_item;
  GtkWidget *image1526;
  GtkWidget *hmw_stop_menu_item;
  GtkWidget *image1527;
  GtkWidget *separator4;
  GtkWidget *hmw_clip_list_menu_item;
  GtkWidget *separator12;
  GtkWidget *hmw_previous_menu_item;
  GtkWidget *image1528;
  GtkWidget *hmw_next_menu_item;
  GtkWidget *image1529;
  GtkWidget *separator5;
  GtkWidget *hmw_volume_up_menu_item;
  GtkWidget *image1530;
  GtkWidget *hmw_volume_down_menu_item;
  GtkWidget *image1531;
  GtkWidget *hmw_mute_menu_item;
  GtkWidget *hmw_view_menu;
  GtkWidget *hmw_view_menu_menu;
  GtkWidget *hmw_fullscreen_menu_item;
  GtkWidget *hmw_zoom_menu_item;
  GtkWidget *image1532;
  GtkWidget *hmw_zoom_menu_item_menu;
  GtkWidget *hmw_normal_size_menu_item;
  GtkWidget *hmw_double_size_menu_item;
  GtkWidget *separator10;
  GtkWidget *on_top1;
  GtkWidget *on_top1_menu;
  GSList *hmw_on_top_never_menu_item_group = NULL;
  GtkWidget *hmw_on_top_never_menu_item;
  GtkWidget *hmw_on_top_while_playing_menu_item;
  GtkWidget *hmw_on_top_always_menu_item;
  GtkWidget *hmw_tools_menu;
  GtkWidget *hmw_tools_menu_menu;
  GtkWidget *hmw_plugins_menu_item;
  GtkWidget *hmw_preferences_menu_item;
  GtkWidget *image1533;
  GtkWidget *hmw_statistics_menu_item;
  GtkWidget *hmw_favorites_menu;
  GtkWidget *hmw_favorites_menu_menu;
  GtkWidget *hmw_add_favorite_menu_item;
  GtkWidget *image1534;
  GtkWidget *hmw_manage_favorites_menu_item;
  GtkWidget *image1535;
  GtkWidget *hmw_export_favorites_menu_item;
  GtkWidget *hmw_import_favorites_menu_item;
  GtkWidget *hmw_favorites_separator;
  GtkWidget *hmw_help_menu;
  GtkWidget *hmw_help_menu_menu;
  GtkWidget *hmw_intro_menu_item;
  GtkWidget *image1536;
  GtkWidget *hmw_faq_menu_item;
  GtkWidget *image1537;
  GtkWidget *hmw_report_issue_item;
  GtkWidget *image1538;
  GtkWidget *separator6;
  GtkWidget *hmw_check_for_updates_menu_item;
  GtkWidget *separator15;
  GtkWidget *hmw_player_reset_menu_item;
  GtkWidget *image1539;
  GtkWidget *separator13;
  GtkWidget *hmw_about_menu_item;
  GtkWidget *hmw_hxbin;
  GtkWidget *hmw_seek_scale;
  GtkWidget *hmw_controls_hbox;
  GtkWidget *hbox3;
  GtkWidget *alignment2;
  GtkWidget *hmw_play_pause_button;
  GtkWidget *hmw_play_pause_image;
  GtkWidget *alignment4;
  GtkWidget *hmw_stop_button;
  GtkWidget *image99;
  GtkWidget *hbox4;
  GtkWidget *alignment8;
  GtkWidget *hmw_previous_button;
  GtkWidget *image100;
  GtkWidget *alignment6;
  GtkWidget *hmw_next_button;
  GtkWidget *image101;
  GtkWidget *alignment9;
  GtkWidget *hbox1;
  GtkWidget *alignment7;
  GtkWidget *hmw_mute_toggle_button;
  GtkWidget *hmw_volume_image;
  GtkWidget *hmw_volume_scale;
  GtkWidget *hmw_status_area;
  GtkAccelGroup *accel_group;

  accel_group = gtk_accel_group_new ();

  hxplayer_main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_widget_set_name (hxplayer_main_window, "hxplayer_main_window");
  gtk_window_set_title (GTK_WINDOW (hxplayer_main_window), _("Helix Player"));
  hxplayer_main_window_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_main_window_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_main_window), hxplayer_main_window_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_main_window_icon_pixbuf);
    }

  hmw_vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_set_name (hmw_vbox, "hmw_vbox");
  gtk_widget_show (hmw_vbox);
  gtk_container_add (GTK_CONTAINER (hxplayer_main_window), hmw_vbox);

  hmw_menu_bar = gtk_menu_bar_new ();
  gtk_widget_set_name (hmw_menu_bar, "hmw_menu_bar");
  gtk_widget_show (hmw_menu_bar);
  gtk_box_pack_start (GTK_BOX (hmw_vbox), hmw_menu_bar, FALSE, FALSE, 0);

  hmw_file_menu = gtk_menu_item_new_with_mnemonic (_("_File"));
  gtk_widget_set_name (hmw_file_menu, "hmw_file_menu");
  gtk_widget_show (hmw_file_menu);
  gtk_container_add (GTK_CONTAINER (hmw_menu_bar), hmw_file_menu);

  hmw_file_menu_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_file_menu_menu, "hmw_file_menu_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_file_menu), hmw_file_menu_menu);

  hmw_open_file_menu_item = gtk_image_menu_item_new_with_mnemonic (_("Open _File..."));
  gtk_widget_set_name (hmw_open_file_menu_item, "hmw_open_file_menu_item");
  gtk_widget_show (hmw_open_file_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), hmw_open_file_menu_item);
  gtk_widget_add_accelerator (hmw_open_file_menu_item, "activate", accel_group,
                              GDK_o, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1522 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1522, "image1522");
  gtk_widget_show (image1522);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_open_file_menu_item), image1522);

  hmw_open_location_menu_item = gtk_image_menu_item_new_with_mnemonic (_("Open _Location..."));
  gtk_widget_set_name (hmw_open_location_menu_item, "hmw_open_location_menu_item");
  gtk_widget_show (hmw_open_location_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), hmw_open_location_menu_item);
  gtk_widget_add_accelerator (hmw_open_location_menu_item, "activate", accel_group,
                              GDK_l, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1523 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1523, "image1523");
  gtk_widget_show (image1523);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_open_location_menu_item), image1523);

  separator14 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator14, "separator14");
  gtk_widget_show (separator14);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), separator14);
  gtk_widget_set_sensitive (separator14, FALSE);

  hmw_clip_properties_menu_item = gtk_menu_item_new_with_mnemonic (_("Clip _Properties"));
  gtk_widget_set_name (hmw_clip_properties_menu_item, "hmw_clip_properties_menu_item");
  gtk_widget_show (hmw_clip_properties_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), hmw_clip_properties_menu_item);

  hmw_clip_properties_menu_item_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_clip_properties_menu_item_menu, "hmw_clip_properties_menu_item_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_clip_properties_menu_item), hmw_clip_properties_menu_item_menu);

  hmw_clip_details_menu_item = gtk_menu_item_new_with_mnemonic (_("_View Clip Info"));
  gtk_widget_set_name (hmw_clip_details_menu_item, "hmw_clip_details_menu_item");
  gtk_widget_show (hmw_clip_details_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_clip_properties_menu_item_menu), hmw_clip_details_menu_item);
  gtk_widget_add_accelerator (hmw_clip_details_menu_item, "activate", accel_group,
                              GDK_i, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  hmw_view_source_menu_item = gtk_menu_item_new_with_mnemonic (_("Clip So_urce"));
  gtk_widget_set_name (hmw_view_source_menu_item, "hmw_view_source_menu_item");
  gtk_widget_show (hmw_view_source_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_clip_properties_menu_item_menu), hmw_view_source_menu_item);

  hmw_mru_separator = gtk_separator_menu_item_new ();
  gtk_widget_set_name (hmw_mru_separator, "hmw_mru_separator");
  gtk_widget_show (hmw_mru_separator);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), hmw_mru_separator);
  gtk_widget_set_sensitive (hmw_mru_separator, FALSE);

  hmw_close_menu_item = gtk_image_menu_item_new_from_stock ("gtk-close", accel_group);
  gtk_widget_set_name (hmw_close_menu_item, "hmw_close_menu_item");
  gtk_widget_show (hmw_close_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), hmw_close_menu_item);

  hmw_quit_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Quit"));
  gtk_widget_set_name (hmw_quit_menu_item, "hmw_quit_menu_item");
  gtk_widget_show (hmw_quit_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_file_menu_menu), hmw_quit_menu_item);
  gtk_widget_add_accelerator (hmw_quit_menu_item, "activate", accel_group,
                              GDK_q, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1524 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1524, "image1524");
  gtk_widget_show (image1524);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_quit_menu_item), image1524);

  hmw_play_menu = gtk_menu_item_new_with_mnemonic (_("_Play"));
  gtk_widget_set_name (hmw_play_menu, "hmw_play_menu");
  gtk_widget_show (hmw_play_menu);
  gtk_container_add (GTK_CONTAINER (hmw_menu_bar), hmw_play_menu);

  hmw_play_menu_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_play_menu_menu, "hmw_play_menu_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_play_menu), hmw_play_menu_menu);

  hmw_play_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Play"));
  gtk_widget_set_name (hmw_play_menu_item, "hmw_play_menu_item");
  gtk_widget_show (hmw_play_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_play_menu_item);
  gtk_widget_add_accelerator (hmw_play_menu_item, "activate", accel_group,
                              GDK_p, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1525 = create_pixmap (hxplayer_main_window, "play.png");
  gtk_widget_set_name (image1525, "image1525");
  gtk_widget_show (image1525);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_play_menu_item), image1525);

  hmw_pause_menu_item = gtk_image_menu_item_new_with_mnemonic (_("P_ause"));
  gtk_widget_set_name (hmw_pause_menu_item, "hmw_pause_menu_item");
  gtk_widget_show (hmw_pause_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_pause_menu_item);
  gtk_widget_add_accelerator (hmw_pause_menu_item, "activate", accel_group,
                              GDK_a, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1526 = create_pixmap (hxplayer_main_window, "pause.png");
  gtk_widget_set_name (image1526, "image1526");
  gtk_widget_show (image1526);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_pause_menu_item), image1526);

  hmw_stop_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Stop"));
  gtk_widget_set_name (hmw_stop_menu_item, "hmw_stop_menu_item");
  gtk_widget_show (hmw_stop_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_stop_menu_item);
  gtk_widget_add_accelerator (hmw_stop_menu_item, "activate", accel_group,
                              GDK_s, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1527 = create_pixmap (hxplayer_main_window, "stop.png");
  gtk_widget_set_name (image1527, "image1527");
  gtk_widget_show (image1527);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_stop_menu_item), image1527);

  separator4 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator4, "separator4");
  gtk_widget_show (separator4);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), separator4);
  gtk_widget_set_sensitive (separator4, FALSE);

  hmw_clip_list_menu_item = gtk_menu_item_new_with_mnemonic (_("No_w Playing"));
  gtk_widget_set_name (hmw_clip_list_menu_item, "hmw_clip_list_menu_item");
  gtk_widget_show (hmw_clip_list_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_clip_list_menu_item);

  separator12 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator12, "separator12");
  gtk_widget_show (separator12);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), separator12);
  gtk_widget_set_sensitive (separator12, FALSE);

  hmw_previous_menu_item = gtk_image_menu_item_new_with_mnemonic (_("P_revious Clip"));
  gtk_widget_set_name (hmw_previous_menu_item, "hmw_previous_menu_item");
  gtk_widget_show (hmw_previous_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_previous_menu_item);
  gtk_widget_add_accelerator (hmw_previous_menu_item, "activate", accel_group,
                              GDK_r, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1528 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1528, "image1528");
  gtk_widget_show (image1528);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_previous_menu_item), image1528);

  hmw_next_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Next Clip"));
  gtk_widget_set_name (hmw_next_menu_item, "hmw_next_menu_item");
  gtk_widget_show (hmw_next_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_next_menu_item);
  gtk_widget_add_accelerator (hmw_next_menu_item, "activate", accel_group,
                              GDK_n, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1529 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1529, "image1529");
  gtk_widget_show (image1529);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_next_menu_item), image1529);

  separator5 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator5, "separator5");
  gtk_widget_show (separator5);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), separator5);
  gtk_widget_set_sensitive (separator5, FALSE);

  hmw_volume_up_menu_item = gtk_image_menu_item_new_with_mnemonic (_("Volume _Up"));
  gtk_widget_set_name (hmw_volume_up_menu_item, "hmw_volume_up_menu_item");
  gtk_widget_show (hmw_volume_up_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_volume_up_menu_item);
  gtk_widget_add_accelerator (hmw_volume_up_menu_item, "activate", accel_group,
                              GDK_Up, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1530 = gtk_image_new_from_stock ("gtk-go-up", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1530, "image1530");
  gtk_widget_show (image1530);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_volume_up_menu_item), image1530);

  hmw_volume_down_menu_item = gtk_image_menu_item_new_with_mnemonic (_("Volume _Down"));
  gtk_widget_set_name (hmw_volume_down_menu_item, "hmw_volume_down_menu_item");
  gtk_widget_show (hmw_volume_down_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_volume_down_menu_item);
  gtk_widget_add_accelerator (hmw_volume_down_menu_item, "activate", accel_group,
                              GDK_Down, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  image1531 = gtk_image_new_from_stock ("gtk-go-down", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1531, "image1531");
  gtk_widget_show (image1531);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_volume_down_menu_item), image1531);

  hmw_mute_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Mute"));
  gtk_widget_set_name (hmw_mute_menu_item, "hmw_mute_menu_item");
  gtk_widget_show (hmw_mute_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_play_menu_menu), hmw_mute_menu_item);
  gtk_widget_add_accelerator (hmw_mute_menu_item, "activate", accel_group,
                              GDK_m, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  hmw_view_menu = gtk_menu_item_new_with_mnemonic (_("_View"));
  gtk_widget_set_name (hmw_view_menu, "hmw_view_menu");
  gtk_widget_show (hmw_view_menu);
  gtk_container_add (GTK_CONTAINER (hmw_menu_bar), hmw_view_menu);

  hmw_view_menu_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_view_menu_menu, "hmw_view_menu_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_view_menu), hmw_view_menu_menu);

  hmw_fullscreen_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Fullscreen"));
  gtk_widget_set_name (hmw_fullscreen_menu_item, "hmw_fullscreen_menu_item");
  gtk_widget_show (hmw_fullscreen_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_view_menu_menu), hmw_fullscreen_menu_item);
  gtk_widget_add_accelerator (hmw_fullscreen_menu_item, "activate", accel_group,
                              GDK_f, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  hmw_zoom_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Zoom"));
  gtk_widget_set_name (hmw_zoom_menu_item, "hmw_zoom_menu_item");
  gtk_widget_show (hmw_zoom_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_view_menu_menu), hmw_zoom_menu_item);

  image1532 = gtk_image_new_from_stock ("gtk-zoom-in", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1532, "image1532");
  gtk_widget_show (image1532);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_zoom_menu_item), image1532);

  hmw_zoom_menu_item_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_zoom_menu_item_menu, "hmw_zoom_menu_item_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_zoom_menu_item), hmw_zoom_menu_item_menu);

  hmw_normal_size_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Normal Size"));
  gtk_widget_set_name (hmw_normal_size_menu_item, "hmw_normal_size_menu_item");
  gtk_widget_show (hmw_normal_size_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_zoom_menu_item_menu), hmw_normal_size_menu_item);
  gtk_widget_add_accelerator (hmw_normal_size_menu_item, "activate", accel_group,
                              GDK_1, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (hmw_normal_size_menu_item), TRUE);

  hmw_double_size_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Double Size"));
  gtk_widget_set_name (hmw_double_size_menu_item, "hmw_double_size_menu_item");
  gtk_widget_show (hmw_double_size_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_zoom_menu_item_menu), hmw_double_size_menu_item);
  gtk_widget_add_accelerator (hmw_double_size_menu_item, "activate", accel_group,
                              GDK_2, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  separator10 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator10, "separator10");
  gtk_widget_show (separator10);
  gtk_container_add (GTK_CONTAINER (hmw_view_menu_menu), separator10);
  gtk_widget_set_sensitive (separator10, FALSE);

  on_top1 = gtk_menu_item_new_with_mnemonic (_("On _Top"));
  gtk_widget_set_name (on_top1, "on_top1");
  gtk_widget_show (on_top1);
  gtk_container_add (GTK_CONTAINER (hmw_view_menu_menu), on_top1);

  on_top1_menu = gtk_menu_new ();
  gtk_widget_set_name (on_top1_menu, "on_top1_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (on_top1), on_top1_menu);

  hmw_on_top_never_menu_item = gtk_radio_menu_item_new_with_mnemonic (hmw_on_top_never_menu_item_group, _("_Never"));
  hmw_on_top_never_menu_item_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (hmw_on_top_never_menu_item));
  gtk_widget_set_name (hmw_on_top_never_menu_item, "hmw_on_top_never_menu_item");
  gtk_widget_show (hmw_on_top_never_menu_item);
  gtk_container_add (GTK_CONTAINER (on_top1_menu), hmw_on_top_never_menu_item);
  gtk_widget_add_accelerator (hmw_on_top_never_menu_item, "activate", accel_group,
                              GDK_u, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (hmw_on_top_never_menu_item), TRUE);

  hmw_on_top_while_playing_menu_item = gtk_radio_menu_item_new_with_mnemonic (hmw_on_top_never_menu_item_group, _("While _Playing"));
  hmw_on_top_never_menu_item_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (hmw_on_top_while_playing_menu_item));
  gtk_widget_set_name (hmw_on_top_while_playing_menu_item, "hmw_on_top_while_playing_menu_item");
  gtk_widget_show (hmw_on_top_while_playing_menu_item);
  gtk_container_add (GTK_CONTAINER (on_top1_menu), hmw_on_top_while_playing_menu_item);
  gtk_widget_add_accelerator (hmw_on_top_while_playing_menu_item, "activate", accel_group,
                              GDK_y, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  hmw_on_top_always_menu_item = gtk_radio_menu_item_new_with_mnemonic (hmw_on_top_never_menu_item_group, _("_Always"));
  hmw_on_top_never_menu_item_group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (hmw_on_top_always_menu_item));
  gtk_widget_set_name (hmw_on_top_always_menu_item, "hmw_on_top_always_menu_item");
  gtk_widget_show (hmw_on_top_always_menu_item);
  gtk_container_add (GTK_CONTAINER (on_top1_menu), hmw_on_top_always_menu_item);
  gtk_widget_add_accelerator (hmw_on_top_always_menu_item, "activate", accel_group,
                              GDK_t, GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);

  hmw_tools_menu = gtk_menu_item_new_with_mnemonic (_("_Tools"));
  gtk_widget_set_name (hmw_tools_menu, "hmw_tools_menu");
  gtk_widget_show (hmw_tools_menu);
  gtk_container_add (GTK_CONTAINER (hmw_menu_bar), hmw_tools_menu);

  hmw_tools_menu_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_tools_menu_menu, "hmw_tools_menu_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_tools_menu), hmw_tools_menu_menu);

  hmw_plugins_menu_item = gtk_menu_item_new_with_mnemonic (_("P_lugins..."));
  gtk_widget_set_name (hmw_plugins_menu_item, "hmw_plugins_menu_item");
  gtk_widget_show (hmw_plugins_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_tools_menu_menu), hmw_plugins_menu_item);

  hmw_preferences_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Preferences..."));
  gtk_widget_set_name (hmw_preferences_menu_item, "hmw_preferences_menu_item");
  gtk_widget_show (hmw_preferences_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_tools_menu_menu), hmw_preferences_menu_item);

  image1533 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1533, "image1533");
  gtk_widget_show (image1533);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_preferences_menu_item), image1533);

  hmw_statistics_menu_item = gtk_menu_item_new_with_mnemonic (_("Playback _Statistics..."));
  gtk_widget_set_name (hmw_statistics_menu_item, "hmw_statistics_menu_item");
  gtk_widget_show (hmw_statistics_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_tools_menu_menu), hmw_statistics_menu_item);

  hmw_favorites_menu = gtk_menu_item_new_with_mnemonic (_("F_avorites"));
  gtk_widget_set_name (hmw_favorites_menu, "hmw_favorites_menu");
  gtk_widget_show (hmw_favorites_menu);
  gtk_container_add (GTK_CONTAINER (hmw_menu_bar), hmw_favorites_menu);

  hmw_favorites_menu_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_favorites_menu_menu, "hmw_favorites_menu_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_favorites_menu), hmw_favorites_menu_menu);

  hmw_add_favorite_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Add to Favorites"));
  gtk_widget_set_name (hmw_add_favorite_menu_item, "hmw_add_favorite_menu_item");
  gtk_widget_show (hmw_add_favorite_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_favorites_menu_menu), hmw_add_favorite_menu_item);

  image1534 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1534, "image1534");
  gtk_widget_show (image1534);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_add_favorite_menu_item), image1534);

  hmw_manage_favorites_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Manage Favorites..."));
  gtk_widget_set_name (hmw_manage_favorites_menu_item, "hmw_manage_favorites_menu_item");
  gtk_widget_show (hmw_manage_favorites_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_favorites_menu_menu), hmw_manage_favorites_menu_item);

  image1535 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1535, "image1535");
  gtk_widget_show (image1535);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_manage_favorites_menu_item), image1535);

  hmw_export_favorites_menu_item = gtk_menu_item_new_with_mnemonic (_("_Export Favorites..."));
  gtk_widget_set_name (hmw_export_favorites_menu_item, "hmw_export_favorites_menu_item");
  gtk_widget_show (hmw_export_favorites_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_favorites_menu_menu), hmw_export_favorites_menu_item);

  hmw_import_favorites_menu_item = gtk_menu_item_new_with_mnemonic (_("_Import Favorites..."));
  gtk_widget_set_name (hmw_import_favorites_menu_item, "hmw_import_favorites_menu_item");
  gtk_widget_show (hmw_import_favorites_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_favorites_menu_menu), hmw_import_favorites_menu_item);

  hmw_favorites_separator = gtk_separator_menu_item_new ();
  gtk_widget_set_name (hmw_favorites_separator, "hmw_favorites_separator");
  gtk_widget_show (hmw_favorites_separator);
  gtk_container_add (GTK_CONTAINER (hmw_favorites_menu_menu), hmw_favorites_separator);
  gtk_widget_set_sensitive (hmw_favorites_separator, FALSE);

  hmw_help_menu = gtk_menu_item_new_with_mnemonic (_("_Help"));
  gtk_widget_set_name (hmw_help_menu, "hmw_help_menu");
  gtk_widget_show (hmw_help_menu);
  gtk_container_add (GTK_CONTAINER (hmw_menu_bar), hmw_help_menu);

  hmw_help_menu_menu = gtk_menu_new ();
  gtk_widget_set_name (hmw_help_menu_menu, "hmw_help_menu_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hmw_help_menu), hmw_help_menu_menu);

  hmw_intro_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_General..."));
  gtk_widget_set_name (hmw_intro_menu_item, "hmw_intro_menu_item");
  gtk_widget_show (hmw_intro_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), hmw_intro_menu_item);

  image1536 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1536, "image1536");
  gtk_widget_show (image1536);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_intro_menu_item), image1536);

  hmw_faq_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_FAQ..."));
  gtk_widget_set_name (hmw_faq_menu_item, "hmw_faq_menu_item");
  gtk_widget_show (hmw_faq_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), hmw_faq_menu_item);

  image1537 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1537, "image1537");
  gtk_widget_show (image1537);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_faq_menu_item), image1537);

  hmw_report_issue_item = gtk_image_menu_item_new_with_mnemonic (_("R_eport an Issue..."));
  gtk_widget_set_name (hmw_report_issue_item, "hmw_report_issue_item");
  gtk_widget_show (hmw_report_issue_item);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), hmw_report_issue_item);

  image1538 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1538, "image1538");
  gtk_widget_show (image1538);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_report_issue_item), image1538);

  separator6 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator6, "separator6");
  gtk_widget_show (separator6);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), separator6);
  gtk_widget_set_sensitive (separator6, FALSE);

  hmw_check_for_updates_menu_item = gtk_menu_item_new_with_mnemonic (_("_Check for Updates..."));
  gtk_widget_set_name (hmw_check_for_updates_menu_item, "hmw_check_for_updates_menu_item");
  gtk_widget_show (hmw_check_for_updates_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), hmw_check_for_updates_menu_item);

  separator15 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator15, "separator15");
  gtk_widget_show (separator15);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), separator15);
  gtk_widget_set_sensitive (separator15, FALSE);

  hmw_player_reset_menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Player Reset..."));
  gtk_widget_set_name (hmw_player_reset_menu_item, "hmw_player_reset_menu_item");
  gtk_widget_show (hmw_player_reset_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), hmw_player_reset_menu_item);

  image1539 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
  gtk_widget_set_name (image1539, "image1539");
  gtk_widget_show (image1539);
  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (hmw_player_reset_menu_item), image1539);

  separator13 = gtk_separator_menu_item_new ();
  gtk_widget_set_name (separator13, "separator13");
  gtk_widget_show (separator13);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), separator13);
  gtk_widget_set_sensitive (separator13, FALSE);

  hmw_about_menu_item = gtk_menu_item_new_with_mnemonic (_("_About..."));
  gtk_widget_set_name (hmw_about_menu_item, "hmw_about_menu_item");
  gtk_widget_show (hmw_about_menu_item);
  gtk_container_add (GTK_CONTAINER (hmw_help_menu_menu), hmw_about_menu_item);

  hmw_hxbin = hmw_create_hxbin ("hmw_hxbin", "", "", 0, 0);
  gtk_widget_set_name (hmw_hxbin, "hmw_hxbin");
  gtk_widget_show (hmw_hxbin);
  gtk_box_pack_start (GTK_BOX (hmw_vbox), hmw_hxbin, TRUE, TRUE, 0);
  GTK_WIDGET_UNSET_FLAGS (hmw_hxbin, GTK_CAN_FOCUS);
  GTK_WIDGET_UNSET_FLAGS (hmw_hxbin, GTK_CAN_DEFAULT);

  hmw_seek_scale = hmw_create_position_slider ("hmw_seek_scale", "", "", 0, 0);
  gtk_widget_set_name (hmw_seek_scale, "hmw_seek_scale");
  gtk_widget_show (hmw_seek_scale);
  gtk_box_pack_start (GTK_BOX (hmw_vbox), hmw_seek_scale, FALSE, FALSE, 0);
  GTK_WIDGET_UNSET_FLAGS (hmw_seek_scale, GTK_CAN_FOCUS);
  GTK_WIDGET_UNSET_FLAGS (hmw_seek_scale, GTK_CAN_DEFAULT);

  hmw_controls_hbox = gtk_hbox_new (FALSE, 6);
  gtk_widget_set_name (hmw_controls_hbox, "hmw_controls_hbox");
  gtk_widget_show (hmw_controls_hbox);
  gtk_box_pack_start (GTK_BOX (hmw_vbox), hmw_controls_hbox, FALSE, FALSE, 0);
  gtk_widget_set_size_request (hmw_controls_hbox, -1, 42);

  hbox3 = gtk_hbox_new (FALSE, 6);
  gtk_widget_set_name (hbox3, "hbox3");
  gtk_widget_show (hbox3);
  gtk_box_pack_start (GTK_BOX (hmw_controls_hbox), hbox3, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6);

  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment2, "alignment2");
  gtk_widget_show (alignment2);
  gtk_box_pack_start (GTK_BOX (hbox3), alignment2, TRUE, TRUE, 0);

  hmw_play_pause_button = gtk_button_new ();
  gtk_widget_set_name (hmw_play_pause_button, "hmw_play_pause_button");
  gtk_widget_show (hmw_play_pause_button);
  gtk_container_add (GTK_CONTAINER (alignment2), hmw_play_pause_button);
  gtk_widget_set_size_request (hmw_play_pause_button, 28, 28);

  hmw_play_pause_image = create_pixmap (hxplayer_main_window, "play.png");
  gtk_widget_set_name (hmw_play_pause_image, "hmw_play_pause_image");
  gtk_widget_show (hmw_play_pause_image);
  gtk_container_add (GTK_CONTAINER (hmw_play_pause_button), hmw_play_pause_image);

  alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment4, "alignment4");
  gtk_widget_show (alignment4);
  gtk_box_pack_start (GTK_BOX (hbox3), alignment4, TRUE, TRUE, 0);

  hmw_stop_button = gtk_button_new ();
  gtk_widget_set_name (hmw_stop_button, "hmw_stop_button");
  gtk_widget_show (hmw_stop_button);
  gtk_container_add (GTK_CONTAINER (alignment4), hmw_stop_button);
  gtk_widget_set_size_request (hmw_stop_button, 24, 24);

  image99 = create_pixmap (hxplayer_main_window, "stop.png");
  gtk_widget_set_name (image99, "image99");
  gtk_widget_show (image99);
  gtk_container_add (GTK_CONTAINER (hmw_stop_button), image99);

  hbox4 = gtk_hbox_new (FALSE, 3);
  gtk_widget_set_name (hbox4, "hbox4");
  gtk_widget_show (hbox4);
  gtk_box_pack_start (GTK_BOX (hmw_controls_hbox), hbox4, FALSE, FALSE, 0);

  alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment8, "alignment8");
  gtk_widget_show (alignment8);
  gtk_box_pack_start (GTK_BOX (hbox4), alignment8, TRUE, TRUE, 0);

  hmw_previous_button = gtk_button_new ();
  gtk_widget_set_name (hmw_previous_button, "hmw_previous_button");
  gtk_widget_show (hmw_previous_button);
  gtk_container_add (GTK_CONTAINER (alignment8), hmw_previous_button);
  gtk_widget_set_size_request (hmw_previous_button, 24, 24);

  image100 = create_pixmap (hxplayer_main_window, "previous.png");
  gtk_widget_set_name (image100, "image100");
  gtk_widget_show (image100);
  gtk_container_add (GTK_CONTAINER (hmw_previous_button), image100);

  alignment6 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment6, "alignment6");
  gtk_widget_show (alignment6);
  gtk_box_pack_start (GTK_BOX (hbox4), alignment6, TRUE, TRUE, 0);

  hmw_next_button = gtk_button_new ();
  gtk_widget_set_name (hmw_next_button, "hmw_next_button");
  gtk_widget_show (hmw_next_button);
  gtk_container_add (GTK_CONTAINER (alignment6), hmw_next_button);
  gtk_widget_set_size_request (hmw_next_button, 24, 24);

  image101 = create_pixmap (hxplayer_main_window, "next.png");
  gtk_widget_set_name (image101, "image101");
  gtk_widget_show (image101);
  gtk_container_add (GTK_CONTAINER (hmw_next_button), image101);

  alignment9 = gtk_alignment_new (1, 0.5, 0, 1);
  gtk_widget_set_name (alignment9, "alignment9");
  gtk_widget_show (alignment9);
  gtk_box_pack_start (GTK_BOX (hmw_controls_hbox), alignment9, TRUE, TRUE, 0);

  hbox1 = gtk_hbox_new (FALSE, 6);
  gtk_widget_set_name (hbox1, "hbox1");
  gtk_widget_show (hbox1);
  gtk_container_add (GTK_CONTAINER (alignment9), hbox1);

  alignment7 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_set_name (alignment7, "alignment7");
  gtk_widget_show (alignment7);
  gtk_box_pack_start (GTK_BOX (hbox1), alignment7, FALSE, FALSE, 0);

  hmw_mute_toggle_button = gtk_toggle_button_new ();
  gtk_widget_set_name (hmw_mute_toggle_button, "hmw_mute_toggle_button");
  gtk_widget_show (hmw_mute_toggle_button);
  gtk_container_add (GTK_CONTAINER (alignment7), hmw_mute_toggle_button);
  gtk_widget_set_size_request (hmw_mute_toggle_button, 24, 24);

  hmw_volume_image = create_pixmap (hxplayer_main_window, "volume_low.png");
  gtk_widget_set_name (hmw_volume_image, "hmw_volume_image");
  gtk_widget_show (hmw_volume_image);
  gtk_container_add (GTK_CONTAINER (hmw_mute_toggle_button), hmw_volume_image);

  hmw_volume_scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 0, 0)));
  gtk_widget_set_name (hmw_volume_scale, "hmw_volume_scale");
  gtk_widget_show (hmw_volume_scale);
  gtk_box_pack_start (GTK_BOX (hbox1), hmw_volume_scale, TRUE, TRUE, 0);
  gtk_widget_set_size_request (hmw_volume_scale, 102, -1);
  gtk_scale_set_draw_value (GTK_SCALE (hmw_volume_scale), FALSE);

  hmw_status_area = hmw_create_status_area ("hmw_status_area", "", "", 0, 0);
  gtk_widget_set_name (hmw_status_area, "hmw_status_area");
  gtk_widget_show (hmw_status_area);
  gtk_box_pack_start (GTK_BOX (hmw_vbox), hmw_status_area, FALSE, FALSE, 0);
  GTK_WIDGET_UNSET_FLAGS (hmw_status_area, GTK_CAN_FOCUS);
  GTK_WIDGET_UNSET_FLAGS (hmw_status_area, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) hxplayer_main_window, "key_press_event",
                    G_CALLBACK (hmw_key_press_event),
                    NULL);
  g_signal_connect ((gpointer) hxplayer_main_window, "configure_event",
                    G_CALLBACK (hmw_configure_event),
                    NULL);
  g_signal_connect ((gpointer) hxplayer_main_window, "drag_data_received",
                    G_CALLBACK (hmw_drag_data_received),
                    NULL);
  g_signal_connect ((gpointer) hxplayer_main_window, "property_notify_event",
                    G_CALLBACK (hmw_property_notify_event),
                    NULL);
  g_signal_connect ((gpointer) hxplayer_main_window, "realize",
                    G_CALLBACK (hmw_realize),
                    NULL);
  g_signal_connect ((gpointer) hmw_file_menu, "activate",
                    G_CALLBACK (hmw_file_menu_update),
                    NULL);
  g_signal_connect ((gpointer) hmw_open_file_menu_item, "activate",
                    G_CALLBACK (hmw_open_file),
                    NULL);
  g_signal_connect ((gpointer) hmw_open_location_menu_item, "activate",
                    G_CALLBACK (hmw_open_location),
                    NULL);
  g_signal_connect ((gpointer) hmw_clip_details_menu_item, "activate",
                    G_CALLBACK (hmw_clip_details),
                    NULL);
  g_signal_connect ((gpointer) hmw_view_source_menu_item, "activate",
                    G_CALLBACK (hmw_view_source),
                    NULL);
  g_signal_connect ((gpointer) hmw_close_menu_item, "activate",
                    G_CALLBACK (hmw_close),
                    NULL);
  g_signal_connect ((gpointer) hmw_quit_menu_item, "activate",
                    G_CALLBACK (hmw_quit),
                    NULL);
  g_signal_connect ((gpointer) hmw_play_menu_item, "activate",
                    G_CALLBACK (hmw_play),
                    NULL);
  g_signal_connect ((gpointer) hmw_pause_menu_item, "activate",
                    G_CALLBACK (hmw_pause),
                    NULL);
  g_signal_connect ((gpointer) hmw_stop_menu_item, "activate",
                    G_CALLBACK (hmw_stop),
                    NULL);
  g_signal_connect ((gpointer) hmw_previous_menu_item, "activate",
                    G_CALLBACK (hmw_previous),
                    NULL);
  g_signal_connect ((gpointer) hmw_next_menu_item, "activate",
                    G_CALLBACK (hmw_next),
                    NULL);
  g_signal_connect ((gpointer) hmw_volume_up_menu_item, "activate",
                    G_CALLBACK (hmw_volume_up),
                    NULL);
  g_signal_connect ((gpointer) hmw_volume_down_menu_item, "activate",
                    G_CALLBACK (hmw_volume_down),
                    NULL);
  g_signal_connect ((gpointer) hmw_mute_menu_item, "activate",
                    G_CALLBACK (hmw_mute),
                    NULL);
  g_signal_connect ((gpointer) hmw_fullscreen_menu_item, "activate",
                    G_CALLBACK (hmw_fullscreen),
                    NULL);
  g_signal_connect ((gpointer) hmw_normal_size_menu_item, "activate",
                    G_CALLBACK (hmw_normal_size),
                    NULL);
  g_signal_connect ((gpointer) hmw_double_size_menu_item, "activate",
                    G_CALLBACK (hmw_double_size),
                    NULL);
  g_signal_connect ((gpointer) hmw_on_top_never_menu_item, "activate",
                    G_CALLBACK (hmw_on_top_never),
                    NULL);
  g_signal_connect ((gpointer) hmw_on_top_while_playing_menu_item, "activate",
                    G_CALLBACK (hmw_on_top_while_playing),
                    NULL);
  g_signal_connect ((gpointer) hmw_on_top_always_menu_item, "activate",
                    G_CALLBACK (hmw_on_top_always),
                    NULL);
  g_signal_connect ((gpointer) hmw_plugins_menu_item, "activate",
                    G_CALLBACK (hmw_plugins),
                    NULL);
  g_signal_connect ((gpointer) hmw_preferences_menu_item, "activate",
                    G_CALLBACK (hmw_preferences),
                    NULL);
  g_signal_connect ((gpointer) hmw_statistics_menu_item, "activate",
                    G_CALLBACK (hmw_statistics),
                    NULL);
  g_signal_connect ((gpointer) hmw_favorites_menu, "activate",
                    G_CALLBACK (hmw_favorites_menu_update),
                    NULL);
  g_signal_connect ((gpointer) hmw_add_favorite_menu_item, "activate",
                    G_CALLBACK (hmw_add_favorite),
                    NULL);
  g_signal_connect ((gpointer) hmw_manage_favorites_menu_item, "activate",
                    G_CALLBACK (hmw_manage_favorites),
                    NULL);
  g_signal_connect ((gpointer) hmw_export_favorites_menu_item, "activate",
                    G_CALLBACK (hmw_export_favorites),
                    NULL);
  g_signal_connect ((gpointer) hmw_import_favorites_menu_item, "activate",
                    G_CALLBACK (hmw_import_favorites),
                    NULL);
  g_signal_connect ((gpointer) hmw_intro_menu_item, "activate",
                    G_CALLBACK (hmw_intro),
                    NULL);
  g_signal_connect ((gpointer) hmw_faq_menu_item, "activate",
                    G_CALLBACK (hmw_faq),
                    NULL);
  g_signal_connect ((gpointer) hmw_report_issue_item, "activate",
                    G_CALLBACK (hmw_report_issue),
                    NULL);
  g_signal_connect ((gpointer) hmw_check_for_updates_menu_item, "activate",
                    G_CALLBACK (hmw_check_for_updates),
                    NULL);
  g_signal_connect ((gpointer) hmw_player_reset_menu_item, "activate",
                    G_CALLBACK (hmw_player_reset),
                    NULL);
  g_signal_connect ((gpointer) hmw_about_menu_item, "activate",
                    G_CALLBACK (hmw_about),
                    NULL);
  g_signal_connect ((gpointer) hmw_play_pause_button, "clicked",
                    G_CALLBACK (hmw_play_pause),
                    NULL);
  g_signal_connect ((gpointer) hmw_stop_button, "clicked",
                    G_CALLBACK (hmw_stop),
                    NULL);
  g_signal_connect ((gpointer) hmw_previous_button, "clicked",
                    G_CALLBACK (hmw_previous),
                    NULL);
  g_signal_connect ((gpointer) hmw_next_button, "clicked",
                    G_CALLBACK (hmw_next),
                    NULL);
  g_signal_connect ((gpointer) hmw_mute_toggle_button, "toggled",
                    G_CALLBACK (hmw_mute),
                    NULL);
  g_signal_connect ((gpointer) hmw_volume_scale, "value_changed",
                    G_CALLBACK (hmw_volume_changed),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_main_window, hxplayer_main_window, "hxplayer_main_window");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_vbox, "hmw_vbox");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_menu_bar, "hmw_menu_bar");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_file_menu, "hmw_file_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_file_menu_menu, "hmw_file_menu_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_open_file_menu_item, "hmw_open_file_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1522, "image1522");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_open_location_menu_item, "hmw_open_location_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1523, "image1523");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator14, "separator14");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_clip_properties_menu_item, "hmw_clip_properties_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_clip_properties_menu_item_menu, "hmw_clip_properties_menu_item_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_clip_details_menu_item, "hmw_clip_details_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_view_source_menu_item, "hmw_view_source_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_mru_separator, "hmw_mru_separator");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_close_menu_item, "hmw_close_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_quit_menu_item, "hmw_quit_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1524, "image1524");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_play_menu, "hmw_play_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_play_menu_menu, "hmw_play_menu_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_play_menu_item, "hmw_play_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1525, "image1525");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_pause_menu_item, "hmw_pause_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1526, "image1526");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_stop_menu_item, "hmw_stop_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1527, "image1527");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator4, "separator4");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_clip_list_menu_item, "hmw_clip_list_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator12, "separator12");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_previous_menu_item, "hmw_previous_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1528, "image1528");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_next_menu_item, "hmw_next_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1529, "image1529");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator5, "separator5");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_volume_up_menu_item, "hmw_volume_up_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1530, "image1530");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_volume_down_menu_item, "hmw_volume_down_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1531, "image1531");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_mute_menu_item, "hmw_mute_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_view_menu, "hmw_view_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_view_menu_menu, "hmw_view_menu_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_fullscreen_menu_item, "hmw_fullscreen_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_zoom_menu_item, "hmw_zoom_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1532, "image1532");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_zoom_menu_item_menu, "hmw_zoom_menu_item_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_normal_size_menu_item, "hmw_normal_size_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_double_size_menu_item, "hmw_double_size_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator10, "separator10");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, on_top1, "on_top1");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, on_top1_menu, "on_top1_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_on_top_never_menu_item, "hmw_on_top_never_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_on_top_while_playing_menu_item, "hmw_on_top_while_playing_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_on_top_always_menu_item, "hmw_on_top_always_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_tools_menu, "hmw_tools_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_tools_menu_menu, "hmw_tools_menu_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_plugins_menu_item, "hmw_plugins_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_preferences_menu_item, "hmw_preferences_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1533, "image1533");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_statistics_menu_item, "hmw_statistics_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_favorites_menu, "hmw_favorites_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_favorites_menu_menu, "hmw_favorites_menu_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_add_favorite_menu_item, "hmw_add_favorite_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1534, "image1534");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_manage_favorites_menu_item, "hmw_manage_favorites_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1535, "image1535");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_export_favorites_menu_item, "hmw_export_favorites_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_import_favorites_menu_item, "hmw_import_favorites_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_favorites_separator, "hmw_favorites_separator");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_help_menu, "hmw_help_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_help_menu_menu, "hmw_help_menu_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_intro_menu_item, "hmw_intro_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1536, "image1536");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_faq_menu_item, "hmw_faq_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1537, "image1537");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_report_issue_item, "hmw_report_issue_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1538, "image1538");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator6, "separator6");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_check_for_updates_menu_item, "hmw_check_for_updates_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator15, "separator15");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_player_reset_menu_item, "hmw_player_reset_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image1539, "image1539");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, separator13, "separator13");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_about_menu_item, "hmw_about_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_hxbin, "hmw_hxbin");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_seek_scale, "hmw_seek_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_controls_hbox, "hmw_controls_hbox");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hbox3, "hbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_play_pause_button, "hmw_play_pause_button");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_play_pause_image, "hmw_play_pause_image");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, alignment4, "alignment4");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_stop_button, "hmw_stop_button");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image99, "image99");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hbox4, "hbox4");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, alignment8, "alignment8");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_previous_button, "hmw_previous_button");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image100, "image100");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, alignment6, "alignment6");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_next_button, "hmw_next_button");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, image101, "image101");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, alignment9, "alignment9");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, alignment7, "alignment7");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_mute_toggle_button, "hmw_mute_toggle_button");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_volume_image, "hmw_volume_image");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_volume_scale, "hmw_volume_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_main_window, hmw_status_area, "hmw_status_area");

  gtk_window_add_accel_group (GTK_WINDOW (hxplayer_main_window), accel_group);

  return hxplayer_main_window;
}

