gtk_interface.c
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:156k
- /* This file was created automatically by glade and fixed by bootstrap */
- #include <vlc/vlc.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <unistd.h>
- #include <string.h>
- #include <gdk/gdkkeysyms.h>
- #include <gtk/gtk.h>
- #include "gtk_callbacks.h"
- #include "gtk_interface.h"
- #include "gtk_support.h"
- GtkWidget*
- create_intf_window (void)
- {
- GtkWidget *intf_window;
- GtkWidget *window_vbox;
- GtkWidget *menubar_handlebox;
- GtkWidget *menubar;
- guint tmp_key;
- GtkWidget *menubar_file;
- GtkWidget *menubar_file_menu;
- GtkAccelGroup *menubar_file_menu_accels;
- GtkWidget *menubar_open;
- GtkWidget *menubar_disc;
- GtkWidget *menubar_network;
- GtkWidget *separator4;
- GtkWidget *menubar_eject;
- GtkWidget *separator14;
- GtkWidget *menubar_close;
- GtkWidget *menubar_exit;
- GtkWidget *menubar_view;
- GtkWidget *menubar_view_menu;
- GtkAccelGroup *menubar_view_menu_accels;
- GtkWidget *menubar_interface_hide;
- GtkWidget *separator13;
- GtkWidget *menubar_program;
- GtkWidget *menubar_title;
- GtkWidget *menubar_chapter;
- GtkWidget *separator11;
- GtkWidget *menubar_playlist;
- GtkWidget *menubar_modules;
- GtkWidget *menubar_messages;
- GtkWidget *menubar_settings;
- GtkWidget *menubar_settings_menu;
- GtkAccelGroup *menubar_settings_menu_accels;
- GtkWidget *menubar_preferences;
- GtkWidget *menubar_config_audio;
- GtkWidget *menubar_config_audio_menu;
- GtkAccelGroup *menubar_config_audio_menu_accels;
- GtkWidget *menubar_audio;
- GtkWidget *separator18;
- GtkWidget *menubar_volume_up;
- GtkWidget *menubar_volume_down;
- GtkWidget *menubar_volume_mute;
- GtkWidget *separator15;
- GtkWidget *menubar_audio_channels;
- GtkWidget *menubar_audio_device;
- GtkWidget *menubar_config_video;
- GtkWidget *menubar_config_video_menu;
- GtkAccelGroup *menubar_config_video_menu_accels;
- GtkWidget *menubar_subpictures;
- GtkWidget *separator25;
- GtkWidget *menubar_fullscreen;
- GtkWidget *separator24;
- GtkWidget *menubar_deinterlace;
- GtkWidget *menubar_video_device;
- GtkWidget *menubar_help;
- GtkWidget *menubar_help_menu;
- GtkAccelGroup *menubar_help_menu_accels;
- GtkWidget *menubar_about;
- GtkWidget *toolbar_handlebox;
- GtkWidget *toolbar;
- GtkWidget *toolbar_open;
- GtkWidget *toolbar_disc;
- GtkWidget *toolbar_network;
- GtkWidget *toolbar_sat;
- GtkWidget *toolbar_back;
- GtkWidget *toolbar_stop;
- GtkWidget *toolbar_eject;
- GtkWidget *toolbar_play;
- GtkWidget *toolbar_pause;
- GtkWidget *toolbar_slow;
- GtkWidget *toolbar_fast;
- GtkWidget *toolbar_playlist;
- GtkWidget *toolbar_prev;
- GtkWidget *toolbar_next;
- GtkWidget *slider_frame;
- GtkWidget *slider;
- GtkWidget *file_box;
- GtkWidget *label_status;
- GtkWidget *dvd_box;
- GtkWidget *dvd_label;
- GtkWidget *title_box;
- GtkWidget *title;
- GtkWidget *title_label;
- GtkWidget *title_prev_button;
- GtkWidget *title_next_button;
- GtkWidget *dvd_separator;
- GtkWidget *chapter_box;
- GtkWidget *chapter;
- GtkWidget *chapter_label;
- GtkWidget *chapter_prev_button;
- GtkWidget *chapter_next_button;
- GtkWidget *network_box;
- GtkWidget *network_address_label;
- GtkWidget *intf_statusbar;
- GtkAccelGroup *accel_group;
- GtkTooltips *tooltips;
- tooltips = gtk_tooltips_new ();
- accel_group = gtk_accel_group_new ();
- intf_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_object_set_data (GTK_OBJECT (intf_window), "intf_window", intf_window);
- gtk_window_set_title (GTK_WINDOW (intf_window), _("VLC media player"));
- gtk_window_set_policy (GTK_WINDOW (intf_window), TRUE, TRUE, TRUE);
- window_vbox = gtk_vbox_new (FALSE, 0);
- gtk_widget_ref (window_vbox);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "window_vbox", window_vbox,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (window_vbox);
- gtk_container_add (GTK_CONTAINER (intf_window), window_vbox);
- menubar_handlebox = gtk_handle_box_new ();
- gtk_widget_ref (menubar_handlebox);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_handlebox", menubar_handlebox,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_handlebox);
- gtk_box_pack_start (GTK_BOX (window_vbox), menubar_handlebox, FALSE, TRUE, 0);
- menubar = gtk_menu_bar_new ();
- gtk_widget_ref (menubar);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar", menubar,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar);
- gtk_container_add (GTK_CONTAINER (menubar_handlebox), menubar);
- menubar_file = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_file)->child),
- _("_File"));
- gtk_widget_add_accelerator (menubar_file, "activate_item", accel_group,
- tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
- gtk_widget_ref (menubar_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_file", menubar_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_file);
- gtk_container_add (GTK_CONTAINER (menubar), menubar_file);
- menubar_file_menu = gtk_menu_new ();
- gtk_widget_ref (menubar_file_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_file_menu", menubar_file_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_file), menubar_file_menu);
- menubar_file_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_file_menu));
- menubar_open = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_open)->child),
- _("_Open File..."));
- gtk_widget_add_accelerator (menubar_open, "activate_item", menubar_file_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_open);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_open", menubar_open,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_open);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), menubar_open);
- gtk_tooltips_set_tip (tooltips, menubar_open, _("Open a file"), NULL);
- gtk_widget_add_accelerator (menubar_open, "activate", accel_group,
- GDK_F3, 0,
- GTK_ACCEL_VISIBLE);
- menubar_disc = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_disc)->child),
- _("Open _Disc..."));
- gtk_widget_add_accelerator (menubar_disc, "activate_item", menubar_file_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_disc);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_disc", menubar_disc,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_disc);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), menubar_disc);
- gtk_tooltips_set_tip (tooltips, menubar_disc, _("Open Disc Media"), NULL);
- gtk_widget_add_accelerator (menubar_disc, "activate", accel_group,
- GDK_F4, 0,
- GTK_ACCEL_VISIBLE);
- menubar_network = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_network)->child),
- _("_Network Stream..."));
- gtk_widget_add_accelerator (menubar_network, "activate_item", menubar_file_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_network);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_network", menubar_network,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_network);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), menubar_network);
- gtk_tooltips_set_tip (tooltips, menubar_network, _("Select a network stream"), NULL);
- gtk_widget_add_accelerator (menubar_network, "activate", accel_group,
- GDK_F5, 0,
- GTK_ACCEL_VISIBLE);
- separator4 = gtk_menu_item_new ();
- gtk_widget_ref (separator4);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator4", separator4,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator4);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), separator4);
- gtk_widget_set_sensitive (separator4, FALSE);
- menubar_eject = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_eject)->child),
- _("_Eject Disc"));
- gtk_widget_add_accelerator (menubar_eject, "activate_item", menubar_file_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_eject);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_eject", menubar_eject,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_eject);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), menubar_eject);
- gtk_tooltips_set_tip (tooltips, menubar_eject, _("Eject disc"), NULL);
- separator14 = gtk_menu_item_new ();
- gtk_widget_ref (separator14);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator14", separator14,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator14);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), separator14);
- gtk_widget_set_sensitive (separator14, FALSE);
- menubar_close = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_close)->child),
- _("_Close"));
- gtk_widget_add_accelerator (menubar_close, "activate_item", menubar_file_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_close);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_close", menubar_close,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_close);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), menubar_close);
- gtk_tooltips_set_tip (tooltips, menubar_close, _("Close the window"), NULL);
- gtk_widget_add_accelerator (menubar_close, "activate", accel_group,
- GDK_W, GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
- menubar_exit = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_exit)->child),
- _("E_xit"));
- gtk_widget_add_accelerator (menubar_exit, "activate_item", menubar_file_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_exit);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_exit", menubar_exit,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_exit);
- gtk_container_add (GTK_CONTAINER (menubar_file_menu), menubar_exit);
- gtk_tooltips_set_tip (tooltips, menubar_exit, _("Exit the program"), NULL);
- gtk_widget_add_accelerator (menubar_exit, "activate", accel_group,
- GDK_Q, GDK_CONTROL_MASK,
- GTK_ACCEL_VISIBLE);
- menubar_view = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_view)->child),
- _("_View"));
- gtk_widget_add_accelerator (menubar_view, "activate_item", accel_group,
- tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
- gtk_widget_ref (menubar_view);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_view", menubar_view,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_view);
- gtk_container_add (GTK_CONTAINER (menubar), menubar_view);
- menubar_view_menu = gtk_menu_new ();
- gtk_widget_ref (menubar_view_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_view_menu", menubar_view_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_view), menubar_view_menu);
- menubar_view_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_view_menu));
- menubar_interface_hide = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_interface_hide)->child),
- _("_Hide interface"));
- gtk_widget_add_accelerator (menubar_interface_hide, "activate_item", menubar_view_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_interface_hide);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_interface_hide", menubar_interface_hide,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_interface_hide);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_interface_hide);
- gtk_tooltips_set_tip (tooltips, menubar_interface_hide, _("Hide the main interface window"), NULL);
- separator13 = gtk_menu_item_new ();
- gtk_widget_ref (separator13);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator13", separator13,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator13);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), separator13);
- gtk_widget_set_sensitive (separator13, FALSE);
- menubar_program = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_program)->child),
- _("Progr_am"));
- gtk_widget_add_accelerator (menubar_program, "activate_item", menubar_view_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_program);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_program", menubar_program,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_program);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_program);
- gtk_widget_set_sensitive (menubar_program, FALSE);
- gtk_tooltips_set_tip (tooltips, menubar_program, _("Choose the program"), NULL);
- menubar_title = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_title)->child),
- _("_Title"));
- gtk_widget_add_accelerator (menubar_title, "activate_item", menubar_view_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_title);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_title", menubar_title,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_title);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_title);
- gtk_widget_set_sensitive (menubar_title, FALSE);
- gtk_tooltips_set_tip (tooltips, menubar_title, _("Navigate through the stream"), NULL);
- menubar_chapter = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_chapter)->child),
- _("_Chapter"));
- gtk_widget_add_accelerator (menubar_chapter, "activate_item", menubar_view_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_chapter);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_chapter", menubar_chapter,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_chapter);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_chapter);
- gtk_widget_set_sensitive (menubar_chapter, FALSE);
- separator11 = gtk_menu_item_new ();
- gtk_widget_ref (separator11);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator11", separator11,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator11);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), separator11);
- gtk_widget_set_sensitive (separator11, FALSE);
- menubar_playlist = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_playlist)->child),
- _("_Playlist..."));
- gtk_widget_add_accelerator (menubar_playlist, "activate_item", menubar_view_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_playlist);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_playlist", menubar_playlist,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_playlist);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_playlist);
- gtk_tooltips_set_tip (tooltips, menubar_playlist, _("Open the playlist window"), NULL);
- menubar_modules = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_modules)->child),
- _("_Modules..."));
- gtk_widget_add_accelerator (menubar_modules, "activate_item", menubar_view_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_modules);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_modules", menubar_modules,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_modules);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_modules);
- gtk_widget_set_sensitive (menubar_modules, FALSE);
- gtk_tooltips_set_tip (tooltips, menubar_modules, _("Open the module manager"), NULL);
- menubar_messages = gtk_menu_item_new_with_label (_("Messages..."));
- gtk_widget_ref (menubar_messages);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_messages", menubar_messages,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_messages);
- gtk_container_add (GTK_CONTAINER (menubar_view_menu), menubar_messages);
- gtk_tooltips_set_tip (tooltips, menubar_messages, _("Open the messages window"), NULL);
- menubar_settings = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_settings)->child),
- _("_Settings"));
- gtk_widget_add_accelerator (menubar_settings, "activate_item", accel_group,
- tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
- gtk_widget_ref (menubar_settings);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_settings", menubar_settings,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_settings);
- gtk_container_add (GTK_CONTAINER (menubar), menubar_settings);
- menubar_settings_menu = gtk_menu_new ();
- gtk_widget_ref (menubar_settings_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_settings_menu", menubar_settings_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_settings), menubar_settings_menu);
- menubar_settings_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_settings_menu));
- menubar_preferences = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_preferences)->child),
- _("_Preferences..."));
- gtk_widget_add_accelerator (menubar_preferences, "activate_item", menubar_settings_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_preferences);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_preferences", menubar_preferences,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_preferences);
- gtk_container_add (GTK_CONTAINER (menubar_settings_menu), menubar_preferences);
- gtk_tooltips_set_tip (tooltips, menubar_preferences, _("Configure the application"), NULL);
- menubar_config_audio = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_config_audio)->child),
- _("_Audio"));
- gtk_widget_add_accelerator (menubar_config_audio, "activate_item", accel_group,
- tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
- gtk_widget_ref (menubar_config_audio);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_audio", menubar_config_audio,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_config_audio);
- gtk_container_add (GTK_CONTAINER (menubar), menubar_config_audio);
- menubar_config_audio_menu = gtk_menu_new ();
- gtk_widget_ref (menubar_config_audio_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_audio_menu", menubar_config_audio_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_config_audio), menubar_config_audio_menu);
- menubar_config_audio_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_config_audio_menu));
- menubar_audio = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_audio)->child),
- _("_Language"));
- gtk_widget_add_accelerator (menubar_audio, "activate_item", menubar_config_audio_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_audio);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio", menubar_audio,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_audio);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_audio);
- gtk_widget_set_sensitive (menubar_audio, FALSE);
- gtk_tooltips_set_tip (tooltips, menubar_audio, _("Select audio channel"), NULL);
- separator18 = gtk_menu_item_new ();
- gtk_widget_ref (separator18);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator18", separator18,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator18);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), separator18);
- gtk_widget_set_sensitive (separator18, FALSE);
- menubar_volume_up = gtk_menu_item_new_with_label (_("Volume Up"));
- gtk_widget_ref (menubar_volume_up);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_up", menubar_volume_up,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_volume_up);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_volume_up);
- menubar_volume_down = gtk_menu_item_new_with_label (_("Volume Down"));
- gtk_widget_ref (menubar_volume_down);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_down", menubar_volume_down,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_volume_down);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_volume_down);
- menubar_volume_mute = gtk_menu_item_new_with_label (_("Mute"));
- gtk_widget_ref (menubar_volume_mute);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_mute", menubar_volume_mute,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_volume_mute);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_volume_mute);
- separator15 = gtk_menu_item_new ();
- gtk_widget_ref (separator15);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator15", separator15,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator15);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), separator15);
- gtk_widget_set_sensitive (separator15, FALSE);
- menubar_audio_channels = gtk_menu_item_new_with_label (_("Channels"));
- gtk_widget_ref (menubar_audio_channels);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_channels", menubar_audio_channels,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_audio_channels);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_audio_channels);
- menubar_audio_device = gtk_menu_item_new_with_label (_("Device"));
- gtk_widget_ref (menubar_audio_device);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_device", menubar_audio_device,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_audio_device);
- gtk_container_add (GTK_CONTAINER (menubar_config_audio_menu), menubar_audio_device);
- menubar_config_video = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_config_video)->child),
- _("_Video"));
- gtk_widget_add_accelerator (menubar_config_video, "activate_item", accel_group,
- tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
- gtk_widget_ref (menubar_config_video);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_video", menubar_config_video,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_config_video);
- gtk_container_add (GTK_CONTAINER (menubar), menubar_config_video);
- menubar_config_video_menu = gtk_menu_new ();
- gtk_widget_ref (menubar_config_video_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_video_menu", menubar_config_video_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_config_video), menubar_config_video_menu);
- menubar_config_video_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_config_video_menu));
- menubar_subpictures = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_subpictures)->child),
- _("_Subtitles"));
- gtk_widget_add_accelerator (menubar_subpictures, "activate_item", menubar_config_video_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_subpictures);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_subpictures", menubar_subpictures,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_subpictures);
- gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_subpictures);
- gtk_widget_set_sensitive (menubar_subpictures, FALSE);
- gtk_tooltips_set_tip (tooltips, menubar_subpictures, _("Select subtitles channel"), NULL);
- separator25 = gtk_menu_item_new ();
- gtk_widget_ref (separator25);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator25", separator25,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator25);
- gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), separator25);
- gtk_widget_set_sensitive (separator25, FALSE);
- menubar_fullscreen = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_fullscreen)->child),
- _("_Fullscreen"));
- gtk_widget_add_accelerator (menubar_fullscreen, "activate_item", menubar_config_video_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_fullscreen);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_fullscreen", menubar_fullscreen,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_fullscreen);
- gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_fullscreen);
- separator24 = gtk_menu_item_new ();
- gtk_widget_ref (separator24);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator24", separator24,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator24);
- gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), separator24);
- gtk_widget_set_sensitive (separator24, FALSE);
- menubar_deinterlace = gtk_menu_item_new_with_label (_("Deinterlace"));
- gtk_widget_ref (menubar_deinterlace);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_deinterlace", menubar_deinterlace,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_deinterlace);
- gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_deinterlace);
- menubar_video_device = gtk_menu_item_new_with_label (_("Screen"));
- gtk_widget_ref (menubar_video_device);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_video_device", menubar_video_device,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_video_device);
- gtk_container_add (GTK_CONTAINER (menubar_config_video_menu), menubar_video_device);
- menubar_help = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_help)->child),
- _("_Help"));
- gtk_widget_add_accelerator (menubar_help, "activate_item", accel_group,
- tmp_key, GDK_MOD1_MASK, (GtkAccelFlags) 0);
- gtk_widget_ref (menubar_help);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_help", menubar_help,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_help);
- gtk_container_add (GTK_CONTAINER (menubar), menubar_help);
- menubar_help_menu = gtk_menu_new ();
- gtk_widget_ref (menubar_help_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_help_menu", menubar_help_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (menubar_help), menubar_help_menu);
- menubar_help_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menubar_help_menu));
- menubar_about = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menubar_about)->child),
- _("_About..."));
- gtk_widget_add_accelerator (menubar_about, "activate_item", menubar_help_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (menubar_about);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_about", menubar_about,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (menubar_about);
- gtk_container_add (GTK_CONTAINER (menubar_help_menu), menubar_about);
- gtk_tooltips_set_tip (tooltips, menubar_about, _("About this application"), NULL);
- toolbar_handlebox = gtk_handle_box_new ();
- gtk_widget_ref (toolbar_handlebox);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_handlebox", toolbar_handlebox,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_handlebox);
- gtk_box_pack_start (GTK_BOX (window_vbox), toolbar_handlebox, FALSE, TRUE, 0);
- toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH);
- gtk_widget_ref (toolbar);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar", toolbar,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar);
- gtk_container_add (GTK_CONTAINER (toolbar_handlebox), toolbar);
- gtk_container_set_border_width (GTK_CONTAINER (toolbar), 1);
- gtk_toolbar_set_space_size (GTK_TOOLBAR (toolbar), 16);
- gtk_toolbar_set_space_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_SPACE_LINE);
- gtk_toolbar_set_button_relief (GTK_TOOLBAR (toolbar), GTK_RELIEF_NONE);
- toolbar_open = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("File"),
- _("Open a file"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_open);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_open", toolbar_open,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_open);
- toolbar_disc = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Disc"),
- _("Open Disc"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_disc);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_disc", toolbar_disc,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_disc);
- toolbar_network = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Net"),
- _("Select a network stream"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_network);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_network", toolbar_network,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_network);
- toolbar_sat = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Sat"),
- _("Open a Satellite Card"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_sat);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_sat", toolbar_sat,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_sat);
- gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
- toolbar_back = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Back"),
- _("Go Backward"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_back);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_back", toolbar_back,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_back);
- gtk_widget_set_sensitive (toolbar_back, FALSE);
- toolbar_stop = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Stop"),
- _("Stop Stream"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_stop);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_stop", toolbar_stop,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_stop);
- toolbar_eject = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Eject"),
- NULL, NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_eject);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_eject", toolbar_eject,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_eject);
- toolbar_play = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Play"),
- _("Play Stream"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_play);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_play", toolbar_play,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_play);
- toolbar_pause = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Pause"),
- _("Pause Stream"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_pause);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_pause", toolbar_pause,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_pause);
- gtk_widget_set_sensitive (toolbar_pause, FALSE);
- gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
- toolbar_slow = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Slow"),
- _("Play Slower"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_slow);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_slow", toolbar_slow,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_slow);
- gtk_widget_set_sensitive (toolbar_slow, FALSE);
- toolbar_fast = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Fast"),
- _("Play Faster"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_fast);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_fast", toolbar_fast,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_fast);
- gtk_widget_set_sensitive (toolbar_fast, FALSE);
- toolbar_playlist = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Playlist"),
- _("Open Playlist"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_playlist);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_playlist", toolbar_playlist,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_playlist);
- toolbar_prev = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Prev"),
- _("Previous File"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_prev);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_prev", toolbar_prev,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_prev);
- toolbar_next = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Next"),
- _("Next File"), NULL,
- NULL, NULL, NULL);
- gtk_widget_ref (toolbar_next);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_next", toolbar_next,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_next);
- slider_frame = gtk_frame_new ("-:--:--");
- gtk_widget_ref (slider_frame);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "slider_frame", slider_frame,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_box_pack_start (GTK_BOX (window_vbox), slider_frame, TRUE, TRUE, 0);
- gtk_frame_set_label_align (GTK_FRAME (slider_frame), 0.05, 0.5);
- slider = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 6.25, 0)));
- gtk_widget_ref (slider);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "slider", slider,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (slider);
- gtk_container_add (GTK_CONTAINER (slider_frame), slider);
- gtk_widget_set_usize (slider, 500, 15);
- gtk_scale_set_draw_value (GTK_SCALE (slider), FALSE);
- gtk_scale_set_digits (GTK_SCALE (slider), 3);
- file_box = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (file_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "file_box", file_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (file_box);
- gtk_box_pack_start (GTK_BOX (window_vbox), file_box, TRUE, TRUE, 0);
- gtk_widget_set_usize (file_box, 500, 24);
- label_status = gtk_label_new ("");
- gtk_widget_ref (label_status);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "label_status", label_status,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label_status);
- gtk_box_pack_start (GTK_BOX (file_box), label_status, TRUE, TRUE, 0);
- dvd_box = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (dvd_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "dvd_box", dvd_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_box_pack_start (GTK_BOX (window_vbox), dvd_box, TRUE, TRUE, 0);
- gtk_widget_set_usize (dvd_box, 500, 24);
- dvd_label = gtk_label_new (_("Disc"));
- gtk_widget_ref (dvd_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "dvd_label", dvd_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (dvd_label);
- gtk_box_pack_start (GTK_BOX (dvd_box), dvd_label, TRUE, FALSE, 0);
- title_box = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (title_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "title_box", title_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (title_box);
- gtk_box_pack_start (GTK_BOX (dvd_box), title_box, TRUE, TRUE, 0);
- title = gtk_label_new (_("Title:"));
- gtk_widget_ref (title);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "title", title,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (title);
- gtk_box_pack_start (GTK_BOX (title_box), title, FALSE, FALSE, 5);
- title_label = gtk_label_new ("--");
- gtk_widget_ref (title_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "title_label", title_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (title_label);
- gtk_box_pack_start (GTK_BOX (title_box), title_label, FALSE, FALSE, 5);
- title_prev_button = gtk_button_new_with_label (_("Prev"));
- gtk_widget_ref (title_prev_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "title_prev_button", title_prev_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (title_prev_button);
- gtk_box_pack_start (GTK_BOX (title_box), title_prev_button, FALSE, FALSE, 5);
- gtk_button_set_relief (GTK_BUTTON (title_prev_button), GTK_RELIEF_NONE);
- title_next_button = gtk_button_new_with_label (_("Next"));
- gtk_widget_ref (title_next_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "title_next_button", title_next_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (title_next_button);
- gtk_box_pack_start (GTK_BOX (title_box), title_next_button, FALSE, FALSE, 5);
- gtk_button_set_relief (GTK_BUTTON (title_next_button), GTK_RELIEF_NONE);
- dvd_separator = gtk_vseparator_new ();
- gtk_widget_ref (dvd_separator);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "dvd_separator", dvd_separator,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (dvd_separator);
- gtk_box_pack_start (GTK_BOX (dvd_box), dvd_separator, TRUE, TRUE, 0);
- chapter_box = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (chapter_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "chapter_box", chapter_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (chapter_box);
- gtk_box_pack_start (GTK_BOX (dvd_box), chapter_box, TRUE, TRUE, 0);
- chapter = gtk_label_new (_("Chapter:"));
- gtk_widget_ref (chapter);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "chapter", chapter,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (chapter);
- gtk_box_pack_start (GTK_BOX (chapter_box), chapter, FALSE, FALSE, 5);
- chapter_label = gtk_label_new ("---");
- gtk_widget_ref (chapter_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "chapter_label", chapter_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (chapter_label);
- gtk_box_pack_start (GTK_BOX (chapter_box), chapter_label, FALSE, FALSE, 5);
- chapter_prev_button = gtk_button_new_with_label (_("Prev"));
- gtk_widget_ref (chapter_prev_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "chapter_prev_button", chapter_prev_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (chapter_prev_button);
- gtk_box_pack_start (GTK_BOX (chapter_box), chapter_prev_button, FALSE, FALSE, 5);
- gtk_button_set_relief (GTK_BUTTON (chapter_prev_button), GTK_RELIEF_NONE);
- chapter_next_button = gtk_button_new_with_label (_("Next"));
- gtk_widget_ref (chapter_next_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "chapter_next_button", chapter_next_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (chapter_next_button);
- gtk_box_pack_start (GTK_BOX (chapter_box), chapter_next_button, FALSE, FALSE, 5);
- gtk_button_set_relief (GTK_BUTTON (chapter_next_button), GTK_RELIEF_NONE);
- network_box = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (network_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "network_box", network_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_box_pack_start (GTK_BOX (window_vbox), network_box, TRUE, TRUE, 0);
- gtk_widget_set_usize (network_box, 500, 24);
- network_address_label = gtk_label_new (_("No server"));
- gtk_widget_ref (network_address_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "network_address_label", network_address_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_address_label);
- gtk_box_pack_start (GTK_BOX (network_box), network_address_label, TRUE, TRUE, 0);
- intf_statusbar = gtk_statusbar_new ();
- gtk_widget_ref (intf_statusbar);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "intf_statusbar", intf_statusbar,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (intf_statusbar);
- gtk_box_pack_start (GTK_BOX (window_vbox), intf_statusbar, FALSE, FALSE, 0);
- gtk_signal_connect (GTK_OBJECT (intf_window), "drag_data_received",
- GTK_SIGNAL_FUNC (GtkWindowDrag),
- NULL);
- gtk_signal_connect (GTK_OBJECT (intf_window), "delete_event",
- GTK_SIGNAL_FUNC (GtkWindowDelete),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_open), "activate",
- GTK_SIGNAL_FUNC (GtkFileOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_disc), "activate",
- GTK_SIGNAL_FUNC (GtkDiscOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_network), "activate",
- GTK_SIGNAL_FUNC (GtkNetworkOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_eject), "activate",
- GTK_SIGNAL_FUNC (GtkDiscEject),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_close), "activate",
- GTK_SIGNAL_FUNC (GtkClose),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_exit), "activate",
- GTK_SIGNAL_FUNC (GtkExit),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_interface_hide), "activate",
- GTK_SIGNAL_FUNC (GtkWindowToggle),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_playlist), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_modules), "activate",
- GTK_SIGNAL_FUNC (GtkModulesShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_messages), "activate",
- GTK_SIGNAL_FUNC (GtkMessagesShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_preferences), "activate",
- GTK_SIGNAL_FUNC (GtkPreferencesShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_volume_up), "activate",
- GTK_SIGNAL_FUNC (GtkVolumeUp),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_volume_down), "activate",
- GTK_SIGNAL_FUNC (GtkVolumeDown),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_volume_mute), "activate",
- GTK_SIGNAL_FUNC (GtkVolumeMute),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_fullscreen), "activate",
- GTK_SIGNAL_FUNC (GtkFullscreen),
- NULL);
- gtk_signal_connect (GTK_OBJECT (menubar_about), "activate",
- GTK_SIGNAL_FUNC (GtkAboutShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_open), "clicked",
- GTK_SIGNAL_FUNC (GtkFileOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_disc), "clicked",
- GTK_SIGNAL_FUNC (GtkDiscOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_network), "clicked",
- GTK_SIGNAL_FUNC (GtkNetworkOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_sat), "clicked",
- GTK_SIGNAL_FUNC (GtkSatOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_back), "clicked",
- GTK_SIGNAL_FUNC (GtkControlBack),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_stop), "clicked",
- GTK_SIGNAL_FUNC (GtkControlStop),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_eject), "clicked",
- GTK_SIGNAL_FUNC (GtkDiscEject),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_play), "clicked",
- GTK_SIGNAL_FUNC (GtkControlPlay),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_pause), "clicked",
- GTK_SIGNAL_FUNC (GtkControlPause),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_slow), "clicked",
- GTK_SIGNAL_FUNC (GtkControlSlow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_fast), "clicked",
- GTK_SIGNAL_FUNC (GtkControlFast),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_playlist), "clicked",
- GTK_SIGNAL_FUNC (GtkPlaylistShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_prev), "clicked",
- GTK_SIGNAL_FUNC (GtkPlaylistPrev),
- NULL);
- gtk_signal_connect (GTK_OBJECT (toolbar_next), "clicked",
- GTK_SIGNAL_FUNC (GtkPlaylistNext),
- NULL);
- gtk_signal_connect (GTK_OBJECT (slider), "button_release_event",
- GTK_SIGNAL_FUNC (GtkSliderRelease),
- NULL);
- gtk_signal_connect (GTK_OBJECT (slider), "button_press_event",
- GTK_SIGNAL_FUNC (GtkSliderPress),
- NULL);
- gtk_signal_connect (GTK_OBJECT (title_prev_button), "clicked",
- GTK_SIGNAL_FUNC (GtkTitlePrev),
- NULL);
- gtk_signal_connect (GTK_OBJECT (title_next_button), "clicked",
- GTK_SIGNAL_FUNC (GtkTitleNext),
- NULL);
- gtk_signal_connect (GTK_OBJECT (chapter_prev_button), "clicked",
- GTK_SIGNAL_FUNC (GtkChapterPrev),
- NULL);
- gtk_signal_connect (GTK_OBJECT (chapter_next_button), "clicked",
- GTK_SIGNAL_FUNC (GtkChapterNext),
- NULL);
- gtk_object_set_data (GTK_OBJECT (intf_window), "tooltips", tooltips);
- gtk_window_add_accel_group (GTK_WINDOW (intf_window), accel_group);
- return intf_window;
- }
- GtkWidget*
- create_intf_popup (void)
- {
- GtkWidget *intf_popup;
- GtkAccelGroup *intf_popup_accels;
- guint tmp_key;
- GtkWidget *popup_play;
- GtkWidget *popup_pause;
- GtkWidget *popup_stop;
- GtkWidget *popup_back;
- GtkWidget *popup_slow;
- GtkWidget *popup_fast;
- GtkWidget *separator16;
- GtkWidget *popup_next;
- GtkWidget *popup_prev;
- GtkWidget *popup_jump;
- GtkWidget *separator27;
- GtkWidget *popup_program;
- GtkWidget *popup_navigation;
- GtkWidget *popup_audio;
- GtkWidget *popup_audio_menu;
- GtkAccelGroup *popup_audio_menu_accels;
- GtkWidget *popup_language;
- GtkWidget *separator19;
- GtkWidget *popup_volume_up;
- GtkWidget *popup_volume_down;
- GtkWidget *popup_volume_mute;
- GtkWidget *separator20;
- GtkWidget *popup_audio_channels;
- GtkWidget *popup_audio_device;
- GtkWidget *popup_video;
- GtkWidget *popup_video_menu;
- GtkAccelGroup *popup_video_menu_accels;
- GtkWidget *popup_subpictures;
- GtkWidget *separator21;
- GtkWidget *popup_fullscreen;
- GtkWidget *separator23;
- GtkWidget *popup_deinterlace;
- GtkWidget *popup_video_device;
- GtkWidget *separator26;
- GtkWidget *popup_open;
- GtkWidget *popup_open_menu;
- GtkAccelGroup *popup_open_menu_accels;
- GtkWidget *popup_file;
- GtkWidget *popup_disc;
- GtkWidget *popup_network;
- GtkWidget *separator12;
- GtkWidget *popup_about;
- GtkWidget *popup_interface_toggle;
- GtkWidget *popup_playlist;
- GtkWidget *popup_preferences;
- GtkWidget *separator9;
- GtkWidget *popup_exit;
- GtkTooltips *tooltips;
- tooltips = gtk_tooltips_new ();
- intf_popup = gtk_menu_new ();
- gtk_object_set_data (GTK_OBJECT (intf_popup), "intf_popup", intf_popup);
- intf_popup_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (intf_popup));
- popup_play = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_play)->child),
- _("_Play"));
- gtk_widget_add_accelerator (popup_play, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_play);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_play", popup_play,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_play);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_play);
- popup_pause = gtk_menu_item_new_with_label (_("Pause"));
- gtk_widget_ref (popup_pause);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_pause", popup_pause,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_pause);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_pause);
- gtk_widget_set_sensitive (popup_pause, FALSE);
- popup_stop = gtk_menu_item_new_with_label (_("Stop"));
- gtk_widget_ref (popup_stop);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_stop", popup_stop,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_stop);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_stop);
- popup_back = gtk_menu_item_new_with_label (_("Back"));
- gtk_widget_ref (popup_back);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_back", popup_back,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_back);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_back);
- gtk_widget_set_sensitive (popup_back, FALSE);
- popup_slow = gtk_menu_item_new_with_label (_("Slow"));
- gtk_widget_ref (popup_slow);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_slow", popup_slow,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_slow);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_slow);
- gtk_widget_set_sensitive (popup_slow, FALSE);
- popup_fast = gtk_menu_item_new_with_label (_("Fast"));
- gtk_widget_ref (popup_fast);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fast", popup_fast,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_fast);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_fast);
- gtk_widget_set_sensitive (popup_fast, FALSE);
- separator16 = gtk_menu_item_new ();
- gtk_widget_ref (separator16);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator16", separator16,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator16);
- gtk_container_add (GTK_CONTAINER (intf_popup), separator16);
- gtk_widget_set_sensitive (separator16, FALSE);
- popup_next = gtk_menu_item_new_with_label (_("Next"));
- gtk_widget_ref (popup_next);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_next", popup_next,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_next);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_next);
- popup_prev = gtk_menu_item_new_with_label (_("Prev"));
- gtk_widget_ref (popup_prev);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_prev", popup_prev,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_prev);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_prev);
- popup_jump = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_jump)->child),
- _("_Jump..."));
- gtk_widget_add_accelerator (popup_jump, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_jump);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_jump", popup_jump,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_jump);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_jump);
- separator27 = gtk_menu_item_new ();
- gtk_widget_ref (separator27);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator27", separator27,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator27);
- gtk_container_add (GTK_CONTAINER (intf_popup), separator27);
- gtk_widget_set_sensitive (separator27, FALSE);
- popup_program = gtk_menu_item_new_with_label (_("Program"));
- gtk_widget_ref (popup_program);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program", popup_program,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_program);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_program);
- gtk_widget_set_sensitive (popup_program, FALSE);
- popup_navigation = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_navigation)->child),
- _("_Navigation"));
- gtk_widget_add_accelerator (popup_navigation, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_navigation);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_navigation", popup_navigation,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_navigation);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_navigation);
- gtk_widget_set_sensitive (popup_navigation, FALSE);
- popup_audio = gtk_menu_item_new_with_label (_("Audio"));
- gtk_widget_ref (popup_audio);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio", popup_audio,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_audio);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_audio);
- popup_audio_menu = gtk_menu_new ();
- gtk_widget_ref (popup_audio_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_menu", popup_audio_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (popup_audio), popup_audio_menu);
- popup_audio_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (popup_audio_menu));
- popup_language = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_language)->child),
- _("_Language"));
- gtk_widget_add_accelerator (popup_language, "activate_item", popup_audio_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_language);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_language", popup_language,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_language);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), popup_language);
- gtk_widget_set_sensitive (popup_language, FALSE);
- separator19 = gtk_menu_item_new ();
- gtk_widget_ref (separator19);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator19", separator19,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator19);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), separator19);
- gtk_widget_set_sensitive (separator19, FALSE);
- popup_volume_up = gtk_menu_item_new_with_label (_("Volume Up"));
- gtk_widget_ref (popup_volume_up);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_up", popup_volume_up,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_volume_up);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), popup_volume_up);
- popup_volume_down = gtk_menu_item_new_with_label (_("Volume Down"));
- gtk_widget_ref (popup_volume_down);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_down", popup_volume_down,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_volume_down);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), popup_volume_down);
- popup_volume_mute = gtk_menu_item_new_with_label (_("Mute"));
- gtk_widget_ref (popup_volume_mute);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_mute", popup_volume_mute,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_volume_mute);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), popup_volume_mute);
- separator20 = gtk_menu_item_new ();
- gtk_widget_ref (separator20);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator20", separator20,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator20);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), separator20);
- gtk_widget_set_sensitive (separator20, FALSE);
- popup_audio_channels = gtk_menu_item_new_with_label (_("Channels"));
- gtk_widget_ref (popup_audio_channels);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_channels", popup_audio_channels,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_audio_channels);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), popup_audio_channels);
- popup_audio_device = gtk_menu_item_new_with_label (_("Device"));
- gtk_widget_ref (popup_audio_device);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_device", popup_audio_device,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_audio_device);
- gtk_container_add (GTK_CONTAINER (popup_audio_menu), popup_audio_device);
- popup_video = gtk_menu_item_new_with_label (_("Video"));
- gtk_widget_ref (popup_video);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video", popup_video,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_video);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_video);
- popup_video_menu = gtk_menu_new ();
- gtk_widget_ref (popup_video_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_menu", popup_video_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (popup_video), popup_video_menu);
- popup_video_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (popup_video_menu));
- popup_subpictures = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_subpictures)->child),
- _("_Subtitles"));
- gtk_widget_add_accelerator (popup_subpictures, "activate_item", popup_video_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_subpictures);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_subpictures", popup_subpictures,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_subpictures);
- gtk_container_add (GTK_CONTAINER (popup_video_menu), popup_subpictures);
- gtk_widget_set_sensitive (popup_subpictures, FALSE);
- separator21 = gtk_menu_item_new ();
- gtk_widget_ref (separator21);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator21", separator21,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator21);
- gtk_container_add (GTK_CONTAINER (popup_video_menu), separator21);
- gtk_widget_set_sensitive (separator21, FALSE);
- popup_fullscreen = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_fullscreen)->child),
- _("_Fullscreen"));
- gtk_widget_add_accelerator (popup_fullscreen, "activate_item", popup_video_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_fullscreen);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fullscreen", popup_fullscreen,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_fullscreen);
- gtk_container_add (GTK_CONTAINER (popup_video_menu), popup_fullscreen);
- separator23 = gtk_menu_item_new ();
- gtk_widget_ref (separator23);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator23", separator23,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator23);
- gtk_container_add (GTK_CONTAINER (popup_video_menu), separator23);
- gtk_widget_set_sensitive (separator23, FALSE);
- popup_deinterlace = gtk_menu_item_new_with_label (_("Deinterlace"));
- gtk_widget_ref (popup_deinterlace);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_deinterlace", popup_deinterlace,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_deinterlace);
- gtk_container_add (GTK_CONTAINER (popup_video_menu), popup_deinterlace);
- popup_video_device = gtk_menu_item_new_with_label (_("Screen"));
- gtk_widget_ref (popup_video_device);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_device", popup_video_device,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_video_device);
- gtk_container_add (GTK_CONTAINER (popup_video_menu), popup_video_device);
- separator26 = gtk_menu_item_new ();
- gtk_widget_ref (separator26);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator26", separator26,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator26);
- gtk_container_add (GTK_CONTAINER (intf_popup), separator26);
- gtk_widget_set_sensitive (separator26, FALSE);
- popup_open = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_open)->child),
- _("_File"));
- gtk_widget_add_accelerator (popup_open, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_open);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_open", popup_open,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_open);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_open);
- popup_open_menu = gtk_menu_new ();
- gtk_widget_ref (popup_open_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_open_menu", popup_open_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (popup_open), popup_open_menu);
- popup_open_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (popup_open_menu));
- popup_file = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_file)->child),
- _("_Open File..."));
- gtk_widget_add_accelerator (popup_file, "activate_item", popup_open_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_file", popup_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_file);
- gtk_container_add (GTK_CONTAINER (popup_open_menu), popup_file);
- gtk_tooltips_set_tip (tooltips, popup_file, _("Open a file"), NULL);
- popup_disc = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_disc)->child),
- _("Open _Disc..."));
- gtk_widget_add_accelerator (popup_disc, "activate_item", popup_open_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_disc);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_disc", popup_disc,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_disc);
- gtk_container_add (GTK_CONTAINER (popup_open_menu), popup_disc);
- gtk_tooltips_set_tip (tooltips, popup_disc, _("Open Disc Media"), NULL);
- popup_network = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_network)->child),
- _("_Network Stream..."));
- gtk_widget_add_accelerator (popup_network, "activate_item", popup_open_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_network);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_network", popup_network,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_network);
- gtk_container_add (GTK_CONTAINER (popup_open_menu), popup_network);
- gtk_tooltips_set_tip (tooltips, popup_network, _("Select a network stream"), NULL);
- separator12 = gtk_menu_item_new ();
- gtk_widget_ref (separator12);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator12", separator12,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator12);
- gtk_container_add (GTK_CONTAINER (popup_open_menu), separator12);
- gtk_widget_set_sensitive (separator12, FALSE);
- popup_about = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_about)->child),
- _("_About..."));
- gtk_widget_add_accelerator (popup_about, "activate_item", popup_open_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_about);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_about", popup_about,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_about);
- gtk_container_add (GTK_CONTAINER (popup_open_menu), popup_about);
- popup_interface_toggle = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_interface_toggle)->child),
- _("Toggle _Interface"));
- gtk_widget_add_accelerator (popup_interface_toggle, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_interface_toggle);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_interface_toggle", popup_interface_toggle,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_interface_toggle);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_interface_toggle);
- popup_playlist = gtk_menu_item_new_with_label (_("Playlist..."));
- gtk_widget_ref (popup_playlist);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_playlist", popup_playlist,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_playlist);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_playlist);
- popup_preferences = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_preferences)->child),
- _("_Preferences..."));
- gtk_widget_add_accelerator (popup_preferences, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_preferences);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_preferences", popup_preferences,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_preferences);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_preferences);
- separator9 = gtk_menu_item_new ();
- gtk_widget_ref (separator9);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator9", separator9,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (separator9);
- gtk_container_add (GTK_CONTAINER (intf_popup), separator9);
- gtk_widget_set_sensitive (separator9, FALSE);
- popup_exit = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_exit)->child),
- _("E_xit"));
- gtk_widget_add_accelerator (popup_exit, "activate_item", intf_popup_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (popup_exit);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_exit", popup_exit,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (popup_exit);
- gtk_container_add (GTK_CONTAINER (intf_popup), popup_exit);
- gtk_signal_connect (GTK_OBJECT (popup_play), "activate",
- GTK_SIGNAL_FUNC (GtkControlPlay),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_pause), "activate",
- GTK_SIGNAL_FUNC (GtkControlPause),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_stop), "activate",
- GTK_SIGNAL_FUNC (GtkControlStop),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_back), "activate",
- GTK_SIGNAL_FUNC (GtkControlBack),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_slow), "activate",
- GTK_SIGNAL_FUNC (GtkControlSlow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_fast), "activate",
- GTK_SIGNAL_FUNC (GtkControlFast),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_next), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistNext),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_prev), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistPrev),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_jump), "activate",
- GTK_SIGNAL_FUNC (GtkJumpShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_volume_up), "activate",
- GTK_SIGNAL_FUNC (GtkVolumeUp),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_volume_down), "activate",
- GTK_SIGNAL_FUNC (GtkVolumeDown),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_volume_mute), "activate",
- GTK_SIGNAL_FUNC (GtkVolumeMute),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_fullscreen), "activate",
- GTK_SIGNAL_FUNC (GtkFullscreen),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_file), "activate",
- GTK_SIGNAL_FUNC (GtkFileOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_disc), "activate",
- GTK_SIGNAL_FUNC (GtkDiscOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_network), "activate",
- GTK_SIGNAL_FUNC (GtkNetworkOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_about), "activate",
- GTK_SIGNAL_FUNC (GtkAboutShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_interface_toggle), "activate",
- GTK_SIGNAL_FUNC (GtkWindowToggle),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_playlist), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_preferences), "activate",
- GTK_SIGNAL_FUNC (GtkPreferencesShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (popup_exit), "activate",
- GTK_SIGNAL_FUNC (GtkExit),
- NULL);
- gtk_object_set_data (GTK_OBJECT (intf_popup), "tooltips", tooltips);
- return intf_popup;
- }
- GtkWidget*
- create_intf_about (void)
- {
- GtkWidget *intf_about;
- GtkWidget *dialog_vbox1;
- GtkWidget *vbox3;
- GtkWidget *label14;
- GtkWidget *label18;
- GtkWidget *frame1;
- GtkWidget *vbox17;
- GtkWidget *label16;
- GtkWidget *label39;
- GtkWidget *label17;
- GtkWidget *dialog_action_area;
- GtkWidget *about_ok;
- intf_about = gtk_dialog_new ();
- gtk_object_set_data (GTK_OBJECT (intf_about), "intf_about", intf_about);
- gtk_container_set_border_width (GTK_CONTAINER (intf_about), 5);
- gtk_window_set_title (GTK_WINDOW (intf_about), _("About"));
- gtk_window_set_position (GTK_WINDOW (intf_about), GTK_WIN_POS_CENTER);
- gtk_window_set_policy (GTK_WINDOW (intf_about), FALSE, FALSE, FALSE);
- dialog_vbox1 = GTK_DIALOG (intf_about)->vbox;
- gtk_object_set_data (GTK_OBJECT (intf_about), "dialog_vbox1", dialog_vbox1);
- gtk_widget_show (dialog_vbox1);
- vbox3 = gtk_vbox_new (FALSE, 0);
- gtk_widget_ref (vbox3);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "vbox3", vbox3,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox3);
- gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox3, TRUE, TRUE, 0);
- label14 = gtk_label_new (_("VLC media player"));
- gtk_widget_ref (label14);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "label14", label14,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label14);
- gtk_box_pack_start (GTK_BOX (vbox3), label14, TRUE, TRUE, 0);
- gtk_misc_set_padding (GTK_MISC (label14), 0, 10);
- label18 = gtk_label_new (_("(c) 1996-2004 the VideoLAN team"));
- gtk_widget_ref (label18);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "label18", label18,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label18);
- gtk_box_pack_start (GTK_BOX (vbox3), label18, FALSE, FALSE, 0);
- gtk_label_set_justify (GTK_LABEL (label18), GTK_JUSTIFY_LEFT);
- gtk_misc_set_padding (GTK_MISC (label18), 0, 5);
- frame1 = gtk_frame_new (_("Authors"));
- gtk_widget_ref (frame1);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "frame1", frame1,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (frame1);
- gtk_box_pack_start (GTK_BOX (vbox3), frame1, FALSE, FALSE, 0);
- vbox17 = gtk_vbox_new (FALSE, 0);
- gtk_widget_ref (vbox17);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "vbox17", vbox17,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox17);
- gtk_container_add (GTK_CONTAINER (frame1), vbox17);
- label16 = gtk_label_new (_("the VideoLAN team <videolan@videolan.org>"));
- gtk_widget_ref (label16);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "label16", label16,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label16);
- gtk_box_pack_start (GTK_BOX (vbox17), label16, FALSE, FALSE, 0);
- gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (label16), 0.5, 0);
- gtk_misc_set_padding (GTK_MISC (label16), 5, 0);
- label39 = gtk_label_new ("http://www.videolan.org/");
- gtk_widget_ref (label39);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "label39", label39,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label39);
- gtk_box_pack_start (GTK_BOX (vbox17), label39, FALSE, FALSE, 0);
- gtk_label_set_justify (GTK_LABEL (label39), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (label39), 0.5, 0);
- gtk_misc_set_padding (GTK_MISC (label39), 5, 0);
- label17 = gtk_label_new (_("This is the VLC media player, a DVD, MPEG and DivX player. It can play MPEG and MPEG2 files from a file or from a network source."));
- gtk_widget_ref (label17);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "label17", label17,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label17);
- gtk_box_pack_start (GTK_BOX (vbox3), label17, FALSE, FALSE, 0);
- gtk_label_set_justify (GTK_LABEL (label17), GTK_JUSTIFY_LEFT);
- gtk_label_set_line_wrap (GTK_LABEL (label17), TRUE);
- gtk_misc_set_padding (GTK_MISC (label17), 0, 5);
- dialog_action_area = GTK_DIALOG (intf_about)->action_area;
- gtk_object_set_data (GTK_OBJECT (intf_about), "dialog_action_area", dialog_action_area);