+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <string.h>
+
+#include <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 *vbox2;
+ GtkWidget *handlebox2;
+ GtkWidget *menubar1;
+ guint tmp_key;
+ GtkWidget *menubar_file;
+ GtkWidget *menubar_file_menu;
+ GtkAccelGroup *menubar_file_menu_accels;
+ GtkWidget *menubar_open;
+ GtkWidget *separator4;
+ GtkWidget *menubar_exit;
+ GtkWidget *menubar_view;
+ GtkWidget *menubar_view_menu;
+ GtkAccelGroup *menubar_view_menu_accels;
+ GtkWidget *menubar_playlist;
+ GtkWidget *menubar_modules;
+ GtkWidget *menubar_settings;
+ GtkWidget *menubar_settings_menu;
+ GtkAccelGroup *menubar_settings_menu_accels;
+ GtkWidget *menubar_preferences;
+ GtkWidget *menubar_help;
+ GtkWidget *menubar_help_menu;
+ GtkAccelGroup *menubar_help_menu_accels;
+ GtkWidget *menubar_about;
+ GtkWidget *handlebox1;
+ GtkWidget *toolbar;
+ GtkWidget *toolbar_open;
+ GtkWidget *toolbar_back;
+ GtkWidget *toolbar_stop;
+ GtkWidget *toolbar_play;
+ GtkWidget *toolbar_pause;
+ GtkWidget *toolbar_slow;
+ GtkWidget *toolbar_fast;
+ GtkWidget *toolbar_playlist;
+ GtkWidget *toolbar_prev;
+ GtkWidget *toolbar_next;
+ GtkWidget *entry1;
+ GtkWidget *label6;
+ GtkWidget *hscale;
+ GtkWidget *label13;
+ GtkWidget *statusbar1;
+ 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), _("VideoLAN Client"));
+
+ vbox2 = gtk_vbox_new (FALSE, 0);
+ gtk_widget_ref (vbox2);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "vbox2", vbox2,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (vbox2);
+ gtk_container_add (GTK_CONTAINER (intf_window), vbox2);
+
+ handlebox2 = gtk_handle_box_new ();
+ gtk_widget_ref (handlebox2);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "handlebox2", handlebox2,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (handlebox2);
+ gtk_box_pack_start (GTK_BOX (vbox2), handlebox2, FALSE, TRUE, 0);
+
+ menubar1 = gtk_menu_bar_new ();
+ gtk_widget_ref (menubar1);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar1", menubar1,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (menubar1);
+ gtk_container_add (GTK_CONTAINER (handlebox2), menubar1);
+
+ 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, 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 (menubar1), 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..."));
+ 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);
+
+ 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_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, 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 (menubar1), 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_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_widget_set_sensitive (menubar_playlist, FALSE);
+ 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 plugin manager"), 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, 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 (menubar1), 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_widget_set_sensitive (menubar_preferences, FALSE);
+ gtk_tooltips_set_tip (tooltips, menubar_preferences, _("Configure the application"), NULL);
+
+ 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, 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 (menubar1), 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);
+
+ handlebox1 = gtk_handle_box_new ();
+ gtk_widget_ref (handlebox1);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "handlebox1", handlebox1,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (handlebox1);
+ gtk_box_pack_start (GTK_BOX (vbox2), handlebox1, 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 (handlebox1), 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,
+ _("Open"),
+ _("Open 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);
+
+ gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
+
+ toolbar_back = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
+ GTK_TOOLBAR_CHILD_BUTTON,
+ NULL,
+ _("Back"),
+ _("Go Backwards"), 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);
+ gtk_widget_set_sensitive (toolbar_stop, FALSE);
+
+ 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);
+
+ 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);
+
+ 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_toolbar_append_space (GTK_TOOLBAR (toolbar));
+
+ 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);
+ gtk_widget_set_sensitive (toolbar_playlist, FALSE);
+
+ 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);
+
+ entry1 = gtk_entry_new ();
+ gtk_widget_ref (entry1);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "entry1", entry1,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (entry1);
+ gtk_box_pack_start (GTK_BOX (vbox2), entry1, FALSE, TRUE, 0);
+ gtk_entry_set_text (GTK_ENTRY (entry1), _("Tired of boring stub messages ? Write your own exciting message here !!"));
+
+ label6 = gtk_label_new (_("This part of the interface doesn't work yet. You can drag the slider below, though:"));
+ gtk_widget_ref (label6);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "label6", label6,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (label6);
+ gtk_box_pack_start (GTK_BOX (vbox2), label6, FALSE, TRUE, 0);
+ gtk_label_set_justify (GTK_LABEL (label6), GTK_JUSTIFY_LEFT);
+ gtk_misc_set_alignment (GTK_MISC (label6), 0, 0.5);
+ gtk_misc_set_padding (GTK_MISC (label6), 5, 0);
+
+ hscale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 6.25, 0)));
+ gtk_widget_ref (hscale);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "hscale", hscale,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (hscale);
+ gtk_box_pack_start (GTK_BOX (vbox2), hscale, FALSE, TRUE, 0);
+ gtk_scale_set_value_pos (GTK_SCALE (hscale), GTK_POS_BOTTOM);
+ gtk_range_set_update_policy (GTK_RANGE (hscale), GTK_UPDATE_DELAYED);
+
+ label13 = gtk_label_new (_("HEY ! YOU CAN DROP A FILE ON VLC TOO :-)"));
+ gtk_widget_ref (label13);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "label13", label13,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (label13);
+ gtk_box_pack_start (GTK_BOX (vbox2), label13, FALSE, TRUE, 0);
+ gtk_misc_set_padding (GTK_MISC (label13), 0, 5);
+
+ statusbar1 = gtk_statusbar_new ();
+ gtk_widget_ref (statusbar1);
+ gtk_object_set_data_full (GTK_OBJECT (intf_window), "statusbar1", statusbar1,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (statusbar1);
+ gtk_box_pack_end (GTK_BOX (vbox2), statusbar1, FALSE, TRUE, 0);
+
+ gtk_signal_connect (GTK_OBJECT (intf_window), "destroy",
+ GTK_SIGNAL_FUNC (on_intf_window_destroy),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (intf_window), "drag_data_received",
+ GTK_SIGNAL_FUNC (on_intf_window_drag_data_received),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (menubar_open), "activate",
+ GTK_SIGNAL_FUNC (on_menubar_open_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (menubar_exit), "activate",
+ GTK_SIGNAL_FUNC (on_menubar_exit_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (menubar_playlist), "activate",
+ GTK_SIGNAL_FUNC (on_menubar_playlist_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (menubar_modules), "activate",
+ GTK_SIGNAL_FUNC (on_menubar_modules_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (menubar_preferences), "activate",
+ GTK_SIGNAL_FUNC (on_menubar_preferences_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (menubar_about), "activate",
+ GTK_SIGNAL_FUNC (on_menubar_about_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_open), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_open_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_back), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_back_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_stop), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_stop_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_play), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_play_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_pause), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_pause_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_slow), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_slow_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_fast), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_fast_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_playlist), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_playlist_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_prev), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_prev_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (toolbar_next), "clicked",
+ GTK_SIGNAL_FUNC (on_toolbar_next_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (hscale), "button_release_event",
+ GTK_SIGNAL_FUNC (on_hscale_button_release_event),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (hscale), "button_press_event",
+ GTK_SIGNAL_FUNC (on_hscale_button_press_event),
+ 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_slow;
+ GtkWidget *popup_fast;
+ GtkWidget *separator6;
+ GtkWidget *popup_open;
+ GtkWidget *separator5;
+ GtkWidget *popup_about;
+ GtkWidget *popup_exit;
+
+ 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);
+
+ 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);
+
+ 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);
+
+ separator6 = gtk_menu_item_new ();
+ gtk_widget_ref (separator6);
+ gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator6", separator6,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (separator6);
+ gtk_container_add (GTK_CONTAINER (intf_popup), separator6);
+ gtk_widget_set_sensitive (separator6, FALSE);
+
+ popup_open = gtk_menu_item_new_with_label ("");
+ tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (popup_open)->child),
+ _("_Open..."));
+ 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);
+
+ separator5 = gtk_menu_item_new ();
+ gtk_widget_ref (separator5);
+ gtk_object_set_data_full (GTK_OBJECT (intf_popup), "separator5", separator5,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (separator5);
+ gtk_container_add (GTK_CONTAINER (intf_popup), separator5);
+ gtk_widget_set_sensitive (separator5, 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", intf_popup_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 (intf_popup), popup_about);
+
+ 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 (on_popup_play_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (popup_pause), "activate",
+ GTK_SIGNAL_FUNC (on_popup_pause_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (popup_slow), "activate",
+ GTK_SIGNAL_FUNC (on_popup_slow_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (popup_fast), "activate",
+ GTK_SIGNAL_FUNC (on_popup_fast_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (popup_open), "activate",
+ GTK_SIGNAL_FUNC (on_popup_open_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (popup_about), "activate",
+ GTK_SIGNAL_FUNC (on_popup_about_activate),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (popup_exit), "activate",
+ GTK_SIGNAL_FUNC (on_popup_exit_activate),
+ NULL);
+
+ return intf_popup;
+}
+
+GtkWidget*
+create_intf_about (void)
+{
+ GtkWidget *intf_about;
+ GtkWidget *dialog_vbox1;
+ GtkWidget *vbox3;
+ GtkWidget *label14;
+ GtkWidget *label18;
+ GtkWidget *hbox1;
+ GtkWidget *label15;
+ GtkWidget *label16;
+ 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), 10);
+ 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 (_("VideoLAN Client"));
+ 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, 1997, 1998, 1999, 2000, 2001 - 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);
+
+ hbox1 = gtk_hbox_new (FALSE, 0);
+ gtk_widget_ref (hbox1);
+ gtk_object_set_data_full (GTK_OBJECT (intf_about), "hbox1", hbox1,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox3), hbox1, FALSE, FALSE, 0);
+
+ label15 = gtk_label_new (_("Authors:"));
+ gtk_widget_ref (label15);
+ gtk_object_set_data_full (GTK_OBJECT (intf_about), "label15", label15,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (label15);
+ gtk_box_pack_start (GTK_BOX (hbox1), label15, FALSE, FALSE, 0);
+ gtk_label_set_justify (GTK_LABEL (label15), GTK_JUSTIFY_RIGHT);
+ gtk_misc_set_alignment (GTK_MISC (label15), 0.5, 1.67638e-08);
+ gtk_misc_set_padding (GTK_MISC (label15), 0, 10);
+
+ label16 = gtk_label_new (_("Régis Duchesne <regis@via.ecp.fr>\nMichel Lespinasse <walken@zoy.org>\nOlivier Pomel <pomel@via.ecp.fr>\nPierre Baillet <oct@zoy.org>\nJean-Philippe Grimaldi <jeanphi@via.ecp.fr>\nAndres Krapf <dae@via.ecp.fr>\nChristophe Massiot <massiot@via.ecp.fr>\nVincent Seguin <seguin@via.ecp.fr>\nBenoit Steiner <benny@via.ecp.fr>\nArnaud de Bossoreille de Ribou <bozo@via.ecp.fr>\nJean-Marc Dressler <polux@via.ecp.fr>\nGaël Hendryckx <jimmy@via.ecp.fr>\nSamuel Hocevar <sam@zoy.org>\nBrieuc Jeunhomme <bbp@via.ecp.fr>\nMichel Kaempf <maxx@via.ecp.fr>\nStéphane Borel <stef@via.ecp.fr>\nRenaud Dartus <reno@via.ecp.fr>\nHenri Fallon <henri@via.ecp.fr>"));
+ 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 (hbox1), 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), 10, 10);
+
+ label17 = gtk_label_new (_("This is the VideoLAN client, a DVD and MPEG player. It can play MPEG and MPEG 2 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, TRUE, 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);
+ gtk_widget_show (dialog_action_area);
+ gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area), 10);
+
+ about_ok = gtk_button_new_with_label (_("OK"));
+ gtk_widget_ref (about_ok);
+ gtk_object_set_data_full (GTK_OBJECT (intf_about), "about_ok", about_ok,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (about_ok);
+ gtk_box_pack_start (GTK_BOX (dialog_action_area), about_ok, FALSE, TRUE, 0);
+ GTK_WIDGET_SET_FLAGS (about_ok, GTK_CAN_DEFAULT);
+
+ gtk_signal_connect (GTK_OBJECT (about_ok), "clicked",
+ GTK_SIGNAL_FUNC (on_about_ok_clicked),
+ NULL);
+
+ gtk_widget_grab_default (about_ok);
+ return intf_about;
+}
+
+GtkWidget*
+create_intf_fileopen (void)
+{
+ GtkWidget *intf_fileopen;
+ GtkWidget *fileopen_ok;
+ GtkWidget *fileopen_cancel;
+
+ intf_fileopen = gtk_file_selection_new (_("Select File"));
+ gtk_object_set_data (GTK_OBJECT (intf_fileopen), "intf_fileopen", intf_fileopen);
+ gtk_container_set_border_width (GTK_CONTAINER (intf_fileopen), 10);
+
+ fileopen_ok = GTK_FILE_SELECTION (intf_fileopen)->ok_button;
+ gtk_object_set_data (GTK_OBJECT (intf_fileopen), "fileopen_ok", fileopen_ok);
+ gtk_widget_show (fileopen_ok);
+ GTK_WIDGET_SET_FLAGS (fileopen_ok, GTK_CAN_DEFAULT);
+
+ fileopen_cancel = GTK_FILE_SELECTION (intf_fileopen)->cancel_button;
+ gtk_object_set_data (GTK_OBJECT (intf_fileopen), "fileopen_cancel", fileopen_cancel);
+ gtk_widget_show (fileopen_cancel);
+ GTK_WIDGET_SET_FLAGS (fileopen_cancel, GTK_CAN_DEFAULT);
+
+ gtk_signal_connect (GTK_OBJECT (intf_fileopen), "destroy",
+ GTK_SIGNAL_FUNC (on_intf_fileopen_destroy),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (fileopen_ok), "clicked",
+ GTK_SIGNAL_FUNC (on_fileopen_ok_clicked),
+ NULL);
+ gtk_signal_connect (GTK_OBJECT (fileopen_cancel), "clicked",
+ GTK_SIGNAL_FUNC (on_fileopen_cancel_clicked),
+ NULL);
+
+ return intf_fileopen;
+}
+