/*
 * 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 "vidctrls_callbacks.h"
#include "vidctrls_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_video_controls_dialog (void)
{
  GtkWidget *hxplayer_video_controls_dialog;
  GdkPixbuf *hxplayer_video_controls_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *frame1;
  GtkWidget *hbox1;
  GtkWidget *vbox1;
  GtkWidget *hvcd_brightness_scale;
  GtkWidget *label33;
  GtkWidget *vbox2;
  GtkWidget *hvcd_contrast_scale;
  GtkWidget *label34;
  GtkWidget *vbox3;
  GtkWidget *hvcd_saturation_scale;
  GtkWidget *label35;
  GtkWidget *vbox4;
  GtkWidget *hvcd_hue_scale;
  GtkWidget *label36;
  GtkWidget *vbox5;
  GtkWidget *hvcd_sharpness_scale;
  GtkWidget *label37;
  GtkWidget *label38;
  GtkWidget *dialog_action_area3;
  GtkWidget *close;

  hxplayer_video_controls_dialog = gtk_dialog_new ();
  gtk_widget_set_name (hxplayer_video_controls_dialog, "hxplayer_video_controls_dialog");
  gtk_window_set_title (GTK_WINDOW (hxplayer_video_controls_dialog), _("Video controls"));
  gtk_window_set_default_size (GTK_WINDOW (hxplayer_video_controls_dialog), -1, 400);
  hxplayer_video_controls_dialog_icon_pixbuf = create_pixbuf ("icon.png");
  if (hxplayer_video_controls_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (hxplayer_video_controls_dialog), hxplayer_video_controls_dialog_icon_pixbuf);
      gdk_pixbuf_unref (hxplayer_video_controls_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (hxplayer_video_controls_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

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

  hbox1 = gtk_hbox_new (TRUE, 12);
  gtk_widget_set_name (hbox1, "hbox1");
  gtk_widget_show (hbox1);
  gtk_container_add (GTK_CONTAINER (frame1), hbox1);
  gtk_container_set_border_width (GTK_CONTAINER (hbox1), 12);

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

  hvcd_brightness_scale = gtk_vscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, -1, 1, 0, 0, 0)));
  gtk_widget_set_name (hvcd_brightness_scale, "hvcd_brightness_scale");
  gtk_widget_show (hvcd_brightness_scale);
  gtk_box_pack_start (GTK_BOX (vbox1), hvcd_brightness_scale, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (hvcd_brightness_scale), GTK_POS_BOTTOM);
  gtk_scale_set_digits (GTK_SCALE (hvcd_brightness_scale), 2);
  gtk_range_set_inverted (GTK_RANGE (hvcd_brightness_scale), TRUE);

  label33 = gtk_label_new (_("Brightness"));
  gtk_widget_set_name (label33, "label33");
  gtk_widget_show (label33);
  gtk_box_pack_start (GTK_BOX (vbox1), label33, FALSE, FALSE, 0);

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

  hvcd_contrast_scale = gtk_vscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, -1, 1, 0, 0, 0)));
  gtk_widget_set_name (hvcd_contrast_scale, "hvcd_contrast_scale");
  gtk_widget_show (hvcd_contrast_scale);
  gtk_box_pack_start (GTK_BOX (vbox2), hvcd_contrast_scale, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (hvcd_contrast_scale), GTK_POS_BOTTOM);
  gtk_scale_set_digits (GTK_SCALE (hvcd_contrast_scale), 2);
  gtk_range_set_inverted (GTK_RANGE (hvcd_contrast_scale), TRUE);

  label34 = gtk_label_new (_("Contrast"));
  gtk_widget_set_name (label34, "label34");
  gtk_widget_show (label34);
  gtk_box_pack_start (GTK_BOX (vbox2), label34, FALSE, FALSE, 0);

  vbox3 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox3, "vbox3");
  gtk_widget_show (vbox3);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox3, TRUE, TRUE, 0);

  hvcd_saturation_scale = gtk_vscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, -1, 1, 0, 0, 0)));
  gtk_widget_set_name (hvcd_saturation_scale, "hvcd_saturation_scale");
  gtk_widget_show (hvcd_saturation_scale);
  gtk_box_pack_start (GTK_BOX (vbox3), hvcd_saturation_scale, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (hvcd_saturation_scale), GTK_POS_BOTTOM);
  gtk_scale_set_digits (GTK_SCALE (hvcd_saturation_scale), 2);
  gtk_range_set_inverted (GTK_RANGE (hvcd_saturation_scale), TRUE);

  label35 = gtk_label_new (_("Saturation"));
  gtk_widget_set_name (label35, "label35");
  gtk_widget_show (label35);
  gtk_box_pack_start (GTK_BOX (vbox3), label35, FALSE, FALSE, 0);

  vbox4 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox4, "vbox4");
  gtk_widget_show (vbox4);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox4, TRUE, TRUE, 0);

  hvcd_hue_scale = gtk_vscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (-0, -1, 1, 0, 0, 0)));
  gtk_widget_set_name (hvcd_hue_scale, "hvcd_hue_scale");
  gtk_widget_show (hvcd_hue_scale);
  gtk_box_pack_start (GTK_BOX (vbox4), hvcd_hue_scale, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (hvcd_hue_scale), GTK_POS_BOTTOM);
  gtk_scale_set_digits (GTK_SCALE (hvcd_hue_scale), 2);
  gtk_range_set_inverted (GTK_RANGE (hvcd_hue_scale), TRUE);

  label36 = gtk_label_new (_("Hue"));
  gtk_widget_set_name (label36, "label36");
  gtk_widget_show (label36);
  gtk_box_pack_start (GTK_BOX (vbox4), label36, FALSE, FALSE, 0);

  vbox5 = gtk_vbox_new (FALSE, 6);
  gtk_widget_set_name (vbox5, "vbox5");
  gtk_widget_show (vbox5);
  gtk_box_pack_start (GTK_BOX (hbox1), vbox5, TRUE, TRUE, 0);

  hvcd_sharpness_scale = gtk_vscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (-1, -1, 1, 0, 0, 0)));
  gtk_widget_set_name (hvcd_sharpness_scale, "hvcd_sharpness_scale");
  gtk_widget_show (hvcd_sharpness_scale);
  gtk_box_pack_start (GTK_BOX (vbox5), hvcd_sharpness_scale, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (hvcd_sharpness_scale), GTK_POS_BOTTOM);
  gtk_scale_set_digits (GTK_SCALE (hvcd_sharpness_scale), 2);
  gtk_range_set_inverted (GTK_RANGE (hvcd_sharpness_scale), TRUE);

  label37 = gtk_label_new (_("Sharpness"));
  gtk_widget_set_name (label37, "label37");
  gtk_widget_show (label37);
  gtk_box_pack_start (GTK_BOX (vbox5), label37, FALSE, FALSE, 0);

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

  dialog_action_area3 = GTK_DIALOG (hxplayer_video_controls_dialog)->action_area;
  gtk_widget_set_name (dialog_action_area3, "dialog_action_area3");
  gtk_widget_show (dialog_action_area3);

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

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_video_controls_dialog, hxplayer_video_controls_dialog, "hxplayer_video_controls_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_video_controls_dialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, hbox1, "hbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, hvcd_brightness_scale, "hvcd_brightness_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, label33, "label33");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, vbox2, "vbox2");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, hvcd_contrast_scale, "hvcd_contrast_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, label34, "label34");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, vbox3, "vbox3");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, hvcd_saturation_scale, "hvcd_saturation_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, label35, "label35");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, hvcd_hue_scale, "hvcd_hue_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, label36, "label36");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, hvcd_sharpness_scale, "hvcd_sharpness_scale");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, label37, "label37");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, label38, "label38");
  GLADE_HOOKUP_OBJECT_NO_REF (hxplayer_video_controls_dialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (hxplayer_video_controls_dialog, close, "close");

  return hxplayer_video_controls_dialog;
}

