/*
 * 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 "contextmenu_callbacks.h"
#include "contextmenu_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_context_menu (void)
{
  GtkWidget *hxplayer_context_menu;
  GtkWidget *hcm_play_menu_item;
  GtkWidget *hcm_pause_menu_item;
  GtkWidget *hcm_stop_menu_item;
  GtkWidget *hcm_zoom_separator;
  GtkWidget *hcm_fullscreen_menu_item;
  GtkWidget *hcm_zoom_menu_item;
  GtkWidget *hcm_zoom_menu_item_menu;
  GtkWidget *hcm_normal_size_menu_item;
  GtkWidget *hcm_double_size_menu_item;
  GtkWidget *hcm_show_separator;
  GtkWidget *hcm_show_menu_and_caption_menu_item;
  GtkWidget *hcm_show_controls_menu_item;
  GtkWidget *hcm_show_status_bar_menu_item;

  hxplayer_context_menu = gtk_menu_new ();
  gtk_widget_set_name (hxplayer_context_menu, "hxplayer_context_menu");

  hcm_play_menu_item = gtk_menu_item_new_with_mnemonic (_("_Play"));
  gtk_widget_set_name (hcm_play_menu_item, "hcm_play_menu_item");
  gtk_widget_show (hcm_play_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_play_menu_item);

  hcm_pause_menu_item = gtk_menu_item_new_with_mnemonic (_("P_ause"));
  gtk_widget_set_name (hcm_pause_menu_item, "hcm_pause_menu_item");
  gtk_widget_show (hcm_pause_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_pause_menu_item);

  hcm_stop_menu_item = gtk_menu_item_new_with_mnemonic (_("_Stop"));
  gtk_widget_set_name (hcm_stop_menu_item, "hcm_stop_menu_item");
  gtk_widget_show (hcm_stop_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_stop_menu_item);

  hcm_zoom_separator = gtk_separator_menu_item_new ();
  gtk_widget_set_name (hcm_zoom_separator, "hcm_zoom_separator");
  gtk_widget_show (hcm_zoom_separator);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_zoom_separator);
  gtk_widget_set_sensitive (hcm_zoom_separator, FALSE);

  hcm_fullscreen_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Full Screen"));
  gtk_widget_set_name (hcm_fullscreen_menu_item, "hcm_fullscreen_menu_item");
  gtk_widget_show (hcm_fullscreen_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_fullscreen_menu_item);
  gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (hcm_fullscreen_menu_item), TRUE);

  hcm_zoom_menu_item = gtk_menu_item_new_with_mnemonic (_("_Zoom"));
  gtk_widget_set_name (hcm_zoom_menu_item, "hcm_zoom_menu_item");
  gtk_widget_show (hcm_zoom_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_zoom_menu_item);

  hcm_zoom_menu_item_menu = gtk_menu_new ();
  gtk_widget_set_name (hcm_zoom_menu_item_menu, "hcm_zoom_menu_item_menu");
  gtk_menu_item_set_submenu (GTK_MENU_ITEM (hcm_zoom_menu_item), hcm_zoom_menu_item_menu);

  hcm_normal_size_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Normal Size"));
  gtk_widget_set_name (hcm_normal_size_menu_item, "hcm_normal_size_menu_item");
  gtk_widget_show (hcm_normal_size_menu_item);
  gtk_container_add (GTK_CONTAINER (hcm_zoom_menu_item_menu), hcm_normal_size_menu_item);
  gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (hcm_normal_size_menu_item), TRUE);

  hcm_double_size_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Double Size"));
  gtk_widget_set_name (hcm_double_size_menu_item, "hcm_double_size_menu_item");
  gtk_widget_show (hcm_double_size_menu_item);
  gtk_container_add (GTK_CONTAINER (hcm_zoom_menu_item_menu), hcm_double_size_menu_item);

  hcm_show_separator = gtk_separator_menu_item_new ();
  gtk_widget_set_name (hcm_show_separator, "hcm_show_separator");
  gtk_widget_show (hcm_show_separator);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_show_separator);
  gtk_widget_set_sensitive (hcm_show_separator, FALSE);

  hcm_show_menu_and_caption_menu_item = gtk_check_menu_item_new_with_mnemonic (_("Menu & Caption"));
  gtk_widget_set_name (hcm_show_menu_and_caption_menu_item, "hcm_show_menu_and_caption_menu_item");
  gtk_widget_show (hcm_show_menu_and_caption_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_show_menu_and_caption_menu_item);

  hcm_show_controls_menu_item = gtk_check_menu_item_new_with_mnemonic (_("C_ontrols"));
  gtk_widget_set_name (hcm_show_controls_menu_item, "hcm_show_controls_menu_item");
  gtk_widget_show (hcm_show_controls_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_show_controls_menu_item);

  hcm_show_status_bar_menu_item = gtk_check_menu_item_new_with_mnemonic (_("_Status Bar"));
  gtk_widget_set_name (hcm_show_status_bar_menu_item, "hcm_show_status_bar_menu_item");
  gtk_widget_show (hcm_show_status_bar_menu_item);
  gtk_container_add (GTK_CONTAINER (hxplayer_context_menu), hcm_show_status_bar_menu_item);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_context_menu, hxplayer_context_menu, "hxplayer_context_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_play_menu_item, "hcm_play_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_pause_menu_item, "hcm_pause_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_stop_menu_item, "hcm_stop_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_zoom_separator, "hcm_zoom_separator");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_fullscreen_menu_item, "hcm_fullscreen_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_zoom_menu_item, "hcm_zoom_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_zoom_menu_item_menu, "hcm_zoom_menu_item_menu");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_normal_size_menu_item, "hcm_normal_size_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_double_size_menu_item, "hcm_double_size_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_show_separator, "hcm_show_separator");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_show_menu_and_caption_menu_item, "hcm_show_menu_and_caption_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_show_controls_menu_item, "hcm_show_controls_menu_item");
  GLADE_HOOKUP_OBJECT (hxplayer_context_menu, hcm_show_status_bar_menu_item, "hcm_show_status_bar_menu_item");

  return hxplayer_context_menu;
}

