gnome_interface.c
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:130k
- /* 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 <gnome.h>
- #include "gnome_callbacks.h"
- #include "gnome_interface.h"
- #include "gnome_support.h"
- static GnomeUIInfo menubar_file_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Open File..."),
- N_("Open a file"),
- (gpointer) GtkFileOpenShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_OPEN,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Open _Disc..."),
- N_("Open Disc Media"),
- (gpointer) GtkDiscOpenShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_CDROM,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Network stream..."),
- N_("Select a network stream"),
- (gpointer) GtkNetworkOpenShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_REFRESH,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("_Eject Disc"),
- N_("Eject disc"),
- (gpointer) GtkDiscEject, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_TOP,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- GNOMEUIINFO_MENU_CLOSE_ITEM (GtkClose, NULL),
- GNOMEUIINFO_MENU_EXIT_ITEM (GnomeExit, NULL),
- GNOMEUIINFO_END
- };
- static GnomeUIInfo menubar_view_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Hide interface"),
- NULL,
- (gpointer) GtkWindowToggle, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Progr_am"),
- N_("Choose the program"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Title"),
- N_("Choose title"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Chapter"),
- N_("Choose chapter"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("_Playlist..."),
- N_("Open the playlist window"),
- (gpointer) GtkPlaylistShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_INDEX,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Modules..."),
- N_("Open the module manager"),
- (gpointer) GtkModulesShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ATTACH,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Messages..."),
- N_("Open the messages window"),
- (gpointer) GtkMessagesShow, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_END
- };
- static GnomeUIInfo menubar_settings_menu_uiinfo[] =
- {
- GNOMEUIINFO_MENU_PREFERENCES_ITEM (GtkPreferencesShow, NULL),
- GNOMEUIINFO_END
- };
- static GnomeUIInfo menubar_config_audio_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Language"),
- N_("Select audio channel"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Volume Up"),
- NULL,
- (gpointer) GtkVolumeUp, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Volume Down"),
- NULL,
- (gpointer) GtkVolumeDown, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Mute"),
- NULL,
- (gpointer) GtkVolumeMute, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Channels"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Device"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_END
- };
- static GnomeUIInfo menubar_config_video_menu_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Subtitles"),
- N_("Select subtitles channel"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("_Fullscreen"),
- NULL,
- (gpointer) GtkFullscreen, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Deinterlace"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Screen"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_END
- };
- static GnomeUIInfo menubar_help_menu_uiinfo[] =
- {
- GNOMEUIINFO_MENU_ABOUT_ITEM (GtkAboutShow, NULL),
- GNOMEUIINFO_END
- };
- static GnomeUIInfo menubar_uiinfo[] =
- {
- GNOMEUIINFO_MENU_FILE_TREE (menubar_file_menu_uiinfo),
- GNOMEUIINFO_MENU_VIEW_TREE (menubar_view_menu_uiinfo),
- GNOMEUIINFO_MENU_SETTINGS_TREE (menubar_settings_menu_uiinfo),
- {
- GNOME_APP_UI_SUBTREE, N_("_Audio"),
- NULL,
- menubar_config_audio_menu_uiinfo, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_SUBTREE, N_("_Video"),
- NULL,
- menubar_config_video_menu_menu_uiinfo, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_MENU_HELP_TREE (menubar_help_menu_uiinfo),
- GNOMEUIINFO_END
- };
- GtkWidget*
- create_intf_window (void)
- {
- GtkWidget *intf_window;
- GtkWidget *dockitem;
- GtkWidget *toolbar;
- GtkWidget *tmp_toolbar_icon;
- GtkWidget *toolbar_file;
- 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 *vbox8;
- GtkWidget *slider_frame;
- GtkWidget *slider;
- GtkWidget *file_box;
- GtkWidget *label_status;
- GtkWidget *dvd_box;
- GtkWidget *label21;
- GtkWidget *title_chapter_box;
- GtkWidget *label19;
- GtkWidget *title_label;
- GtkWidget *button_title_prev;
- GtkWidget *button_title_next;
- GtkWidget *vseparator1;
- GtkWidget *dvd_chapter_box;
- GtkWidget *label20;
- GtkWidget *chapter_label;
- GtkWidget *button_chapter_prev;
- GtkWidget *button_chapter_next;
- GtkWidget *network_box;
- GtkWidget *network_address_label;
- GtkWidget *appbar;
- GtkTooltips *tooltips;
- tooltips = gtk_tooltips_new ();
- intf_window = gnome_app_new ("VLC media player", _("VLC media player"));
- gtk_object_set_data (GTK_OBJECT (intf_window), "intf_window", intf_window);
- gtk_window_set_policy (GTK_WINDOW (intf_window), FALSE, TRUE, TRUE);
- dockitem = GNOME_APP (intf_window)->dock;
- gtk_widget_ref (dockitem);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "dockitem", dockitem,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (dockitem);
- gnome_app_create_menus (GNOME_APP (intf_window), menubar_uiinfo);
- gtk_widget_ref (menubar_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_file",
- menubar_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_open",
- menubar_file_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_disc",
- menubar_file_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_network",
- menubar_file_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator1",
- menubar_file_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_eject",
- menubar_file_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator15",
- menubar_file_menu_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[6].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_close",
- menubar_file_menu_uiinfo[6].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_file_menu_uiinfo[7].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_exit",
- menubar_file_menu_uiinfo[7].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_view",
- menubar_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_view_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_hide_interface",
- menubar_view_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_view_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator9",
- menubar_view_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_view_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_program",
- menubar_view_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (menubar_view_menu_uiinfo[2].widget, FALSE);
- gtk_widget_ref (menubar_view_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_title",
- menubar_view_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (menubar_view_menu_uiinfo[3].widget, FALSE);
- gtk_widget_ref (menubar_view_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_chapter",
- menubar_view_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (menubar_view_menu_uiinfo[4].widget, FALSE);
- gtk_widget_ref (menubar_view_menu_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator7",
- menubar_view_menu_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_view_menu_uiinfo[6].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_playlist",
- menubar_view_menu_uiinfo[6].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_view_menu_uiinfo[7].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_modules",
- menubar_view_menu_uiinfo[7].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (menubar_view_menu_uiinfo[7].widget, FALSE);
- gtk_widget_ref (menubar_view_menu_uiinfo[8].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_messages",
- menubar_view_menu_uiinfo[8].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_settings",
- menubar_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_settings_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_preferences",
- menubar_settings_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_audio",
- menubar_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio",
- menubar_config_audio_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (menubar_config_audio_menu_uiinfo[0].widget, FALSE);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator25",
- menubar_config_audio_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_up",
- menubar_config_audio_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_down",
- menubar_config_audio_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_volume_mute",
- menubar_config_audio_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator16",
- menubar_config_audio_menu_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[6].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_channels",
- menubar_config_audio_menu_uiinfo[6].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_audio_menu_uiinfo[7].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_audio_device",
- menubar_config_audio_menu_uiinfo[7].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_config_video_menu",
- menubar_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_subpictures",
- menubar_config_video_menu_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (menubar_config_video_menu_menu_uiinfo[0].widget, FALSE);
- gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator23",
- menubar_config_video_menu_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_fullscreen",
- menubar_config_video_menu_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "separator24",
- menubar_config_video_menu_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_deinterlace",
- menubar_config_video_menu_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_config_video_menu_menu_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_video_device",
- menubar_config_video_menu_menu_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_help",
- menubar_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (menubar_help_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_about",
- menubar_help_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- 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);
- gnome_app_add_toolbar (GNOME_APP (intf_window), GTK_TOOLBAR (toolbar), "toolbar",
- GNOME_DOCK_ITEM_BEH_EXCLUSIVE,
- GNOME_DOCK_TOP, 1, 0, 2);
- 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_OPEN);
- toolbar_file = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("File"),
- _("Open a file"), NULL,
- tmp_toolbar_icon, NULL, NULL);
- gtk_widget_ref (toolbar_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "toolbar_file", toolbar_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (toolbar_file);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_CDROM);
- toolbar_disc = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Disc"),
- _("Open disc"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_REFRESH);
- toolbar_network = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Net"),
- _("Select a network stream"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_MIC);
- toolbar_sat = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Sat"),
- _("Open a satellite card"), NULL,
- tmp_toolbar_icon, 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));
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_BACK);
- toolbar_back = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Back"),
- _("Go backward"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_STOP);
- toolbar_stop = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Stop"),
- _("Stop stream"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_TOP);
- toolbar_eject = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Eject"),
- _("Eject disc"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_FORWARD);
- toolbar_play = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Play"),
- _("Play stream"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_BOTTOM);
- toolbar_pause = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Pause"),
- _("Pause stream"), NULL,
- tmp_toolbar_icon, 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));
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_TIMER_STOP);
- toolbar_slow = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Slow"),
- _("Play slower"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_TIMER);
- toolbar_fast = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Fast"),
- _("Play faster"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_INDEX);
- toolbar_playlist = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Playlist"),
- _("Open playlist"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_FIRST);
- toolbar_prev = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Prev"),
- _("Previous file"), NULL,
- tmp_toolbar_icon, 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);
- tmp_toolbar_icon = gnome_stock_pixmap_widget (intf_window, GNOME_STOCK_PIXMAP_LAST);
- toolbar_next = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
- GTK_TOOLBAR_CHILD_BUTTON,
- NULL,
- _("Next"),
- _("Next file"), NULL,
- tmp_toolbar_icon, 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);
- vbox8 = gtk_vbox_new (FALSE, 0);
- gtk_widget_ref (vbox8);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "vbox8", vbox8,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox8);
- gnome_app_set_contents (GNOME_APP (intf_window), vbox8);
- 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 (vbox8), 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_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 (vbox8), file_box, TRUE, TRUE, 0);
- 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 (vbox8), dvd_box, TRUE, TRUE, 0);
- label21 = gtk_label_new (_("Disc"));
- gtk_widget_ref (label21);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "label21", label21,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label21);
- gtk_box_pack_start (GTK_BOX (dvd_box), label21, TRUE, FALSE, 0);
- title_chapter_box = gtk_hbox_new (FALSE, 10);
- gtk_widget_ref (title_chapter_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "title_chapter_box", title_chapter_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (title_chapter_box);
- gtk_box_pack_start (GTK_BOX (dvd_box), title_chapter_box, TRUE, FALSE, 0);
- label19 = gtk_label_new (_("Title:"));
- gtk_widget_ref (label19);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "label19", label19,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label19);
- gtk_box_pack_start (GTK_BOX (title_chapter_box), label19, FALSE, FALSE, 0);
- 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_chapter_box), title_label, FALSE, FALSE, 0);
- button_title_prev = gnome_stock_button (GNOME_STOCK_BUTTON_PREV);
- gtk_widget_ref (button_title_prev);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "button_title_prev", button_title_prev,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (button_title_prev);
- gtk_box_pack_start (GTK_BOX (title_chapter_box), button_title_prev, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, button_title_prev, _("Select previous title"), NULL);
- button_title_next = gnome_stock_button (GNOME_STOCK_BUTTON_NEXT);
- gtk_widget_ref (button_title_next);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "button_title_next", button_title_next,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (button_title_next);
- gtk_box_pack_start (GTK_BOX (title_chapter_box), button_title_next, FALSE, FALSE, 0);
- vseparator1 = gtk_vseparator_new ();
- gtk_widget_ref (vseparator1);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "vseparator1", vseparator1,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vseparator1);
- gtk_box_pack_start (GTK_BOX (dvd_box), vseparator1, FALSE, FALSE, 0);
- dvd_chapter_box = gtk_hbox_new (FALSE, 10);
- gtk_widget_ref (dvd_chapter_box);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "dvd_chapter_box", dvd_chapter_box,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (dvd_chapter_box);
- gtk_box_pack_start (GTK_BOX (dvd_box), dvd_chapter_box, TRUE, FALSE, 0);
- label20 = gtk_label_new (_("Chapter:"));
- gtk_widget_ref (label20);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "label20", label20,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label20);
- gtk_box_pack_start (GTK_BOX (dvd_chapter_box), label20, FALSE, FALSE, 0);
- 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 (dvd_chapter_box), chapter_label, FALSE, FALSE, 0);
- button_chapter_prev = gnome_stock_button (GNOME_STOCK_BUTTON_DOWN);
- gtk_widget_ref (button_chapter_prev);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "button_chapter_prev", button_chapter_prev,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (button_chapter_prev);
- gtk_box_pack_start (GTK_BOX (dvd_chapter_box), button_chapter_prev, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, button_chapter_prev, _("Select previous chapter"), NULL);
- button_chapter_next = gnome_stock_button (GNOME_STOCK_BUTTON_UP);
- gtk_widget_ref (button_chapter_next);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "button_chapter_next", button_chapter_next,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (button_chapter_next);
- gtk_box_pack_start (GTK_BOX (dvd_chapter_box), button_chapter_next, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, button_chapter_next, _("Select next chapter"), NULL);
- network_box = gtk_hbox_new (TRUE, 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 (vbox8), network_box, FALSE, FALSE, 0);
- 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, FALSE, FALSE, 0);
- appbar = gnome_appbar_new (FALSE, TRUE, GNOME_PREFERENCES_NEVER);
- gtk_widget_ref (appbar);
- gtk_object_set_data_full (GTK_OBJECT (intf_window), "appbar", appbar,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (appbar);
- gnome_app_set_statusbar (GNOME_APP (intf_window), appbar);
- gtk_signal_connect (GTK_OBJECT (intf_window), "delete_event",
- GTK_SIGNAL_FUNC (GtkWindowDelete),
- NULL);
- gtk_signal_connect (GTK_OBJECT (intf_window), "drag_data_received",
- GTK_SIGNAL_FUNC (GtkWindowDrag),
- NULL);
- gnome_app_install_menu_hints (GNOME_APP (intf_window), menubar_uiinfo);
- gtk_signal_connect (GTK_OBJECT (toolbar_file), "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_press_event",
- GTK_SIGNAL_FUNC (GtkSliderPress),
- NULL);
- gtk_signal_connect (GTK_OBJECT (slider), "button_release_event",
- GTK_SIGNAL_FUNC (GtkSliderRelease),
- NULL);
- gtk_signal_connect (GTK_OBJECT (button_title_prev), "clicked",
- GTK_SIGNAL_FUNC (GtkTitlePrev),
- NULL);
- gtk_signal_connect (GTK_OBJECT (button_title_next), "clicked",
- GTK_SIGNAL_FUNC (GtkTitleNext),
- NULL);
- gtk_signal_connect (GTK_OBJECT (button_chapter_prev), "clicked",
- GTK_SIGNAL_FUNC (GtkChapterPrev),
- NULL);
- gtk_signal_connect (GTK_OBJECT (button_chapter_next), "clicked",
- GTK_SIGNAL_FUNC (GtkChapterNext),
- NULL);
- gtk_object_set_data (GTK_OBJECT (intf_window), "tooltips", tooltips);
- return intf_window;
- }
- static GnomeUIInfo popup_audio_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Language"),
- N_("Select audio channel"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_VOLUME,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Volume up"),
- NULL,
- (gpointer) GtkVolumeUp, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Volume down"),
- NULL,
- (gpointer) GtkVolumeDown, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Mute"),
- NULL,
- (gpointer) GtkVolumeMute, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Channels"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Device"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_END
- };
- static GnomeUIInfo popup_video_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Subtitles"),
- N_("Select subtitles channel"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FONT,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("_Fullscreen"),
- N_("Toggle fullscreen mode"),
- (gpointer) GtkFullscreen, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Deinterlace"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Screen"),
- NULL,
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_END
- };
- static GnomeUIInfo popup_file_menu_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("_Open File..."),
- N_("Open a file"),
- (gpointer) GtkFileOpenShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_OPEN,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Open _Disc..."),
- N_("Open Disc Media"),
- (gpointer) GtkDiscOpenShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_CDROM,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Network Stream..."),
- N_("Select a network stream"),
- (gpointer) GtkNetworkOpenShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_REFRESH,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- GNOMEUIINFO_MENU_ABOUT_ITEM (GtkAboutShow, NULL),
- GNOMEUIINFO_END
- };
- static GnomeUIInfo intf_popup_uiinfo[] =
- {
- {
- GNOME_APP_UI_ITEM, N_("Play"),
- NULL,
- (gpointer) GtkControlPlay, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FORWARD,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Pause"),
- NULL,
- (gpointer) GtkControlPause, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_BOTTOM,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Stop"),
- NULL,
- (gpointer) GtkControlStop, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_STOP,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Back"),
- NULL,
- (gpointer) GtkControlBack, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_BACK,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Slow"),
- NULL,
- (gpointer) GtkControlSlow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_TIMER_STOP,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Fast"),
- NULL,
- (gpointer) GtkControlFast, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_TIMER,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Next"),
- NULL,
- (gpointer) GtkPlaylistNext, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Prev"),
- NULL,
- (gpointer) GtkPlaylistPrev, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Jump..."),
- N_("Got directly so specified point"),
- (gpointer) GtkJumpShow, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_JUMP_TO,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- {
- GNOME_APP_UI_ITEM, N_("Program"),
- N_("Switch program"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("_Navigation"),
- N_("Navigate through titles and chapters"),
- (gpointer) NULL, NULL, NULL,
- GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_SEARCH,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_SUBTREE, N_("Audio"),
- NULL,
- popup_audio_menu_uiinfo, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_SUBTREE, N_("Video"),
- NULL,
- popup_video_menu_uiinfo, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_SEPARATOR,
- GNOMEUIINFO_MENU_FILE_TREE (popup_file_menu_uiinfo),
- {
- GNOME_APP_UI_ITEM, N_("Toggle _Interface"),
- NULL,
- (gpointer) GtkWindowToggle, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- {
- GNOME_APP_UI_ITEM, N_("Playlist..."),
- NULL,
- (gpointer) GtkPlaylistShow, NULL, NULL,
- GNOME_APP_PIXMAP_NONE, NULL,
- 0, (GdkModifierType) 0, NULL
- },
- GNOMEUIINFO_MENU_PREFERENCES_ITEM (GtkPreferencesShow, NULL),
- GNOMEUIINFO_SEPARATOR,
- GNOMEUIINFO_MENU_EXIT_ITEM (GnomeExit, NULL),
- GNOMEUIINFO_END
- };
- GtkWidget*
- create_intf_popup (void)
- {
- GtkWidget *intf_popup;
- intf_popup = gtk_menu_new ();
- gtk_object_set_data (GTK_OBJECT (intf_popup), "intf_popup", intf_popup);
- gnome_app_fill_menu (GTK_MENU_SHELL (intf_popup), intf_popup_uiinfo,
- NULL, FALSE, 0);
- gtk_widget_ref (intf_popup_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_play",
- intf_popup_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_pause",
- intf_popup_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_stop",
- intf_popup_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_back",
- intf_popup_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (intf_popup_uiinfo[3].widget, FALSE);
- gtk_widget_ref (intf_popup_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_slow",
- intf_popup_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fast",
- intf_popup_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[6].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator3",
- intf_popup_uiinfo[6].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[7].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_next",
- intf_popup_uiinfo[7].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[8].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_prev",
- intf_popup_uiinfo[8].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[9].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_jump",
- intf_popup_uiinfo[9].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[10].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator17",
- intf_popup_uiinfo[10].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[11].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program",
- intf_popup_uiinfo[11].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (intf_popup_uiinfo[11].widget, FALSE);
- gtk_widget_ref (intf_popup_uiinfo[12].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_navigation",
- intf_popup_uiinfo[12].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (intf_popup_uiinfo[12].widget, FALSE);
- gtk_widget_ref (intf_popup_uiinfo[13].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio",
- intf_popup_uiinfo[13].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_language",
- popup_audio_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (popup_audio_menu_uiinfo[0].widget, FALSE);
- gtk_widget_ref (popup_audio_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator20",
- popup_audio_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_up",
- popup_audio_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_down",
- popup_audio_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_volume_mute",
- popup_audio_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator21",
- popup_audio_menu_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[6].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_channels",
- popup_audio_menu_uiinfo[6].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_audio_menu_uiinfo[7].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_audio_device",
- popup_audio_menu_uiinfo[7].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[14].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video",
- intf_popup_uiinfo[14].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_video_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_subpictures",
- popup_video_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_set_sensitive (popup_video_menu_uiinfo[0].widget, FALSE);
- gtk_widget_ref (popup_video_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator18",
- popup_video_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_video_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_fullscreen",
- popup_video_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_video_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator19",
- popup_video_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_video_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_deinterlace",
- popup_video_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_video_menu_uiinfo[5].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_video_device",
- popup_video_menu_uiinfo[5].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[15].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator13",
- intf_popup_uiinfo[15].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[16].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_file",
- intf_popup_uiinfo[16].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_file_menu_uiinfo[0].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_open",
- popup_file_menu_uiinfo[0].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_file_menu_uiinfo[1].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_disc",
- popup_file_menu_uiinfo[1].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_file_menu_uiinfo[2].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_network",
- popup_file_menu_uiinfo[2].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_file_menu_uiinfo[3].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator4",
- popup_file_menu_uiinfo[3].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (popup_file_menu_uiinfo[4].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_about",
- popup_file_menu_uiinfo[4].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[17].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_interface_toggle",
- intf_popup_uiinfo[17].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[18].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_playlist",
- intf_popup_uiinfo[18].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[19].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_preferences",
- intf_popup_uiinfo[19].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[20].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator2",
- intf_popup_uiinfo[20].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_ref (intf_popup_uiinfo[21].widget);
- gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_exit",
- intf_popup_uiinfo[21].widget,
- (GtkDestroyNotify) gtk_widget_unref);
- return intf_popup;
- }
- GtkWidget*
- create_intf_about (void)
- {
- const gchar *authors[] = {
- "the VideoLAN team <videolan@videolan.org>",
- "http://www.videolan.org/",
- NULL
- };
- GtkWidget *intf_about;
- intf_about = gnome_about_new ("VLC media player", VERSION,
- _("(c) 1996-2004 the VideoLAN team"),
- authors,
- _("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."),
- NULL);
- gtk_object_set_data (GTK_OBJECT (intf_about), "intf_about", intf_about);
- return intf_about;
- }
- GtkWidget*
- create_intf_open (void)
- {
- GtkWidget *intf_open;
- GtkWidget *dialog_vbox5;
- GtkWidget *open_vbox;
- GtkWidget *frame10;
- GtkWidget *hbox21;
- GtkWidget *hbox22;
- GtkWidget *label34;
- GtkWidget *combo2;
- GtkWidget *entry_open;
- GtkWidget *label36;
- GtkWidget *open_notebook;
- GtkWidget *hbox20;
- GtkWidget *combo1;
- GtkWidget *entry_file;
- GtkWidget *vbox13;
- GtkWidget *open_browse;
- GtkWidget *open_file;
- GtkWidget *table5;
- GtkWidget *label35;
- GtkWidget *hbox24;
- GSList *disc_group = NULL;
- GtkWidget *disc_dvd;
- GtkWidget *disc_vcd;
- GtkWidget *disc_cdda;
- GtkWidget *label19;
- GtkWidget *disc_name;
- GtkWidget *disc_chapter_label;
- GtkWidget *disc_title_label;
- GtkWidget *disc_dvd_use_menu;
- GtkObject *disc_title_adj;
- GtkWidget *disc_title;
- GtkObject *disc_chapter_adj;
- GtkWidget *disc_chapter;
- GtkWidget *open_disc;
- GtkWidget *table4;
- GSList *table4_group = NULL;
- GtkWidget *network_udp;
- GtkWidget *network_multicast;
- GtkWidget *network_http;
- GtkWidget *network_udp_port_label;
- GtkWidget *network_multicast_address_label;
- GtkWidget *network_http_url_label;
- GtkWidget *network_multicast_address_combo;
- GtkWidget *network_multicast_address;
- GtkWidget *network_multicast_port_label;
- GtkObject *network_multicast_port_adj;
- GtkWidget *network_multicast_port;
- GtkWidget *network_http_url;
- GtkObject *network_udp_port_adj;
- GtkWidget *network_udp_port;
- GtkWidget *open_net;
- GtkWidget *table3;
- GtkWidget *label24;
- GtkWidget *label25;
- GtkWidget *label26;
- GtkObject *sat_freq_adj;
- GtkWidget *sat_freq;
- GtkWidget *label27;
- GtkWidget *hbox23;
- GSList *pol_group = NULL;
- GtkWidget *sat_pol_vert;
- GtkWidget *sat_pol_hor;
- GtkObject *sat_srate_adj;
- GtkWidget *sat_srate;
- GtkWidget *sat_fec;
- GList *sat_fec_items = NULL;
- GtkWidget *combo_entry1;
- GtkWidget *open_sat;
- GtkWidget *show_subtitle;
- GtkWidget *hbox_subtitle;
- GtkWidget *combo3;
- GtkWidget *entry_subtitle;
- GtkWidget *vbox14;
- GtkWidget *button4;
- GtkWidget *label37;
- GtkObject *subtitle_delay_adj;
- GtkWidget *subtitle_delay;
- GtkWidget *label38;
- GtkObject *subtitle_fps_adj;
- GtkWidget *subtitle_fps;
- GtkWidget *hbox28;
- GtkWidget *show_sout_settings;
- GtkWidget *sout_settings;
- GtkWidget *dialog_action_area5;
- GtkWidget *button1;
- GtkWidget *button3;
- intf_open = gnome_dialog_new (_("Open Stream"), NULL);
- gtk_object_set_data (GTK_OBJECT (intf_open), "intf_open", intf_open);
- gtk_window_set_modal (GTK_WINDOW (intf_open), TRUE);
- gtk_window_set_policy (GTK_WINDOW (intf_open), FALSE, FALSE, FALSE);
- gnome_dialog_close_hides (GNOME_DIALOG (intf_open), TRUE);
- dialog_vbox5 = GNOME_DIALOG (intf_open)->vbox;
- gtk_object_set_data (GTK_OBJECT (intf_open), "dialog_vbox5", dialog_vbox5);
- gtk_widget_show (dialog_vbox5);
- open_vbox = gtk_vbox_new (FALSE, 5);
- gtk_widget_ref (open_vbox);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_vbox", open_vbox,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_vbox);
- gtk_box_pack_start (GTK_BOX (dialog_vbox5), open_vbox, TRUE, TRUE, 0);
- frame10 = gtk_frame_new ("Media Resource Locator (MRL)");
- gtk_widget_ref (frame10);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "frame10", frame10,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (frame10);
- gtk_box_pack_start (GTK_BOX (open_vbox), frame10, FALSE, TRUE, 0);
- hbox21 = gtk_hbox_new (FALSE, 5);
- gtk_widget_ref (hbox21);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox21", hbox21,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox21);
- gtk_container_add (GTK_CONTAINER (frame10), hbox21);
- gtk_container_set_border_width (GTK_CONTAINER (hbox21), 5);
- hbox22 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox22);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox22", hbox22,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox22);
- gtk_box_pack_start (GTK_BOX (hbox21), hbox22, FALSE, TRUE, 0);
- label34 = gtk_label_new (_("Open Target:"));
- gtk_widget_ref (label34);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label34", label34,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label34);
- gtk_box_pack_start (GTK_BOX (hbox22), label34, FALSE, FALSE, 0);
- combo2 = gtk_combo_new ();
- gtk_widget_ref (combo2);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "combo2", combo2,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo2);
- gtk_box_pack_start (GTK_BOX (hbox21), combo2, TRUE, TRUE, 0);
- entry_open = GTK_COMBO (combo2)->entry;
- gtk_widget_ref (entry_open);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "entry_open", entry_open,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (entry_open);
- label36 = gtk_label_new (_("Alternatively, you can build an MRL using one of the following predefined targets:"));
- gtk_widget_ref (label36);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label36", label36,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label36);
- gtk_box_pack_start (GTK_BOX (open_vbox), label36, TRUE, TRUE, 0);
- gtk_label_set_justify (GTK_LABEL (label36), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (label36), 0, 1);