]> git.sesse.net Git - vlc/blobdiff - plugins/gtk/gnome_interface.c
* ALL: the first libvlc commit.
[vlc] / plugins / gtk / gnome_interface.c
index 22aec155ff0a54827f4fbf462ea219177d2ac9c4..8c2d665e1d34430b7e9391288dd0ee5fe671f2cd 100644 (file)
@@ -1,6 +1,6 @@
-/* This file was created automatically by glade and fixed by fixfiles.sh */
+/* This file was created automatically by glade and fixed by bootstrap.sh */
 
-#include <videolan/vlc.h>
+#include <vlc/vlc.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -67,22 +67,22 @@ static GnomeUIInfo menubar_view_menu_uiinfo[] =
   },
   GNOMEUIINFO_SEPARATOR,
   {
-    GNOME_APP_UI_ITEM, N_("_Title"),
-    N_("Choose title"),
+    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_("_Chapter"),
-    N_("Choose chapter"),
+    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_("An_gle"),
-    N_("Choose angle"),
+    GNOME_APP_UI_ITEM, N_("_Chapter"),
+    N_("Choose chapter"),
     (gpointer) NULL, NULL, NULL,
     GNOME_APP_PIXMAP_NONE, NULL,
     0, (GdkModifierType) 0, NULL
@@ -97,11 +97,18 @@ static GnomeUIInfo menubar_view_menu_uiinfo[] =
   },
   {
     GNOME_APP_UI_ITEM, N_("_Modules..."),
-    N_("Open the plugin manager"),
+    N_("Open the module manager"),
     (gpointer) GnomeMenubarModulesActivate, 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) GnomeMenubarMessagesActivate, NULL, NULL,
+    GNOME_APP_PIXMAP_NONE, NULL,
+    0, (GdkModifierType) 0, NULL
+  },
   GNOMEUIINFO_END
 };
 
@@ -116,7 +123,7 @@ static GnomeUIInfo menubar_settings_menu_uiinfo[] =
   },
   {
     GNOME_APP_UI_ITEM, N_("_Subtitles"),
-    N_("Select subtitle unit"),
+    N_("Select subtitles channel"),
     (gpointer) NULL, NULL, NULL,
     GNOME_APP_PIXMAP_NONE, NULL,
     0, (GdkModifierType) 0, NULL
@@ -151,6 +158,7 @@ create_intf_window (void)
   GtkWidget *toolbar_file;
   GtkWidget *toolbar_disc;
   GtkWidget *toolbar_network;
+  GtkWidget *toolbar_sat;
   GtkWidget *toolbar_back;
   GtkWidget *toolbar_stop;
   GtkWidget *toolbar_eject;
@@ -264,19 +272,19 @@ create_intf_window (void)
                             (GtkDestroyNotify) gtk_widget_unref);
 
   gtk_widget_ref (menubar_view_menu_uiinfo[3].widget);
-  gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_title",
+  gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_program",
                             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",
+  gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_title",
                             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), "menubar_angle",
+  gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_chapter",
                             menubar_view_menu_uiinfo[5].widget,
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_set_sensitive (menubar_view_menu_uiinfo[5].widget, FALSE);
@@ -297,6 +305,11 @@ create_intf_window (void)
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_set_sensitive (menubar_view_menu_uiinfo[8].widget, FALSE);
 
+  gtk_widget_ref (menubar_view_menu_uiinfo[9].widget);
+  gtk_object_set_data_full (GTK_OBJECT (intf_window), "menubar_messages",
+                            menubar_view_menu_uiinfo[9].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,
@@ -382,6 +395,18 @@ create_intf_window (void)
                             (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);
@@ -389,7 +414,7 @@ create_intf_window (void)
                                 GTK_TOOLBAR_CHILD_BUTTON,
                                 NULL,
                                 _("Back"),
-                                _("Go Backwards"), NULL,
+                                _("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,
@@ -446,6 +471,8 @@ create_intf_window (void)
   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,
@@ -472,8 +499,6 @@ create_intf_window (void)
   gtk_widget_show (toolbar_fast);
   gtk_widget_set_sensitive (toolbar_fast, FALSE);
 
-  gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
-
   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,
@@ -517,7 +542,7 @@ create_intf_window (void)
   gtk_widget_show (vbox8);
   gnome_app_set_contents (GNOME_APP (intf_window), vbox8);
 
-  slider_frame = gtk_frame_new (_("-:--:--"));
+  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);
@@ -574,7 +599,7 @@ create_intf_window (void)
   gtk_widget_show (label19);
   gtk_box_pack_start (GTK_BOX (title_chapter_box), label19, FALSE, FALSE, 0);
 
-  title_label = gtk_label_new (_("--"));
+  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);
@@ -617,7 +642,7 @@ create_intf_window (void)
   gtk_widget_show (label20);
   gtk_box_pack_start (GTK_BOX (dvd_chapter_box), label20, FALSE, FALSE, 0);
 
-  chapter_label = gtk_label_new (_("---"));
+  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);
@@ -689,7 +714,6 @@ create_intf_window (void)
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_show (appbar);
   gnome_app_set_statusbar (GNOME_APP (intf_window), appbar);
-  gtk_widget_set_usize (appbar, 500, -2);
 
   gtk_signal_connect (GTK_OBJECT (intf_window), "delete_event",
                       GTK_SIGNAL_FUNC (GtkWindowDelete),
@@ -707,6 +731,9 @@ create_intf_window (void)
   gtk_signal_connect (GTK_OBJECT (toolbar_network), "button_press_event",
                       GTK_SIGNAL_FUNC (GtkNetworkOpenShow),
                       "intf_window");
+  gtk_signal_connect (GTK_OBJECT (toolbar_sat), "button_press_event",
+                      GTK_SIGNAL_FUNC (GtkSatOpenShow),
+                      "intf_window");
   gtk_signal_connect (GTK_OBJECT (toolbar_back), "button_press_event",
                       GTK_SIGNAL_FUNC (GtkControlBack),
                       "intf_window");
@@ -877,17 +904,17 @@ static GnomeUIInfo intf_popup_uiinfo[] =
     0, (GdkModifierType) 0, NULL
   },
   {
-    GNOME_APP_UI_ITEM, N_("_Navigation"),
-    N_("Navigate through titles and chapters"),
+    GNOME_APP_UI_ITEM, N_("Program"),
+    N_("Switch program"),
     (gpointer) NULL, NULL, NULL,
-    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_SEARCH,
+    GNOME_APP_PIXMAP_NONE, NULL,
     0, (GdkModifierType) 0, NULL
   },
   {
-    GNOME_APP_UI_ITEM, N_("An_gle"),
-    NULL,
+    GNOME_APP_UI_ITEM, N_("_Navigation"),
+    N_("Navigate through titles and chapters"),
     (gpointer) NULL, NULL, NULL,
-    GNOME_APP_PIXMAP_NONE, NULL,
+    GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_SEARCH,
     0, (GdkModifierType) 0, NULL
   },
   {
@@ -899,7 +926,7 @@ static GnomeUIInfo intf_popup_uiinfo[] =
   },
   {
     GNOME_APP_UI_ITEM, N_("_Subtitles"),
-    N_("Select subtitle channel"),
+    N_("Select subtitles channel"),
     (gpointer) NULL, NULL, NULL,
     GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_FONT,
     0, (GdkModifierType) 0, NULL
@@ -996,13 +1023,13 @@ create_intf_popup (void)
                             (GtkDestroyNotify) gtk_widget_unref);
 
   gtk_widget_ref (intf_popup_uiinfo[13].widget);
-  gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_navigation",
+  gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_program",
                             intf_popup_uiinfo[13].widget,
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_set_sensitive (intf_popup_uiinfo[13].widget, FALSE);
 
   gtk_widget_ref (intf_popup_uiinfo[14].widget);
-  gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_angle",
+  gtk_object_set_data_full (GTK_OBJECT (intf_popup), "popup_navigation",
                             intf_popup_uiinfo[14].widget,
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_set_sensitive (intf_popup_uiinfo[14].widget, FALSE);
@@ -1081,30 +1108,14 @@ GtkWidget*
 create_intf_about (void)
 {
   const gchar *authors[] = {
-    "Régis Duchesne <regis@via.ecp.fr>",
-    "Michel Lespinasse <walken@zoy.org>",
-    "Olivier Pomel <pomel@via.ecp.fr>",
-    "Pierre Baillet <oct@zoy.org>",
-    "Jean-Philippe Grimaldi <jeanphi@via.ecp.fr>",
-    "Andres Krapf <dae@via.ecp.fr>",
-    "Christophe Massiot <massiot@via.ecp.fr>",
-    "Vincent Seguin <seguin@via.ecp.fr>",
-    "Benoit Steiner <benny@via.ecp.fr>",
-    "Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>",
-    "Jean-Marc Dressler <polux@via.ecp.fr>",
-    "Gaël Hendryckx <jimmy@via.ecp.fr>",
-    "Samuel Hocevar <sam@zoy.org>",
-    "Brieuc Jeunhomme <bbp@via.ecp.fr>",
-    "Michel Kaempf <maxx@via.ecp.fr>",
-    "Stéphane Borel <stef@via.ecp.fr>",
-    "Renaud Dartus <reno@via.ecp.fr>",
-    "Henri Fallon <henri@via.ecp.fr>",
+    "the VideoLAN team <videolan@videolan.org>",
+    "http://www.videolan.org/",
     NULL
   };
   GtkWidget *intf_about;
 
   intf_about = gnome_about_new ("VideoLAN Client", VERSION,
-                        _("(C) 1996, 1997, 1998, 1999, 2000, 2001 - the VideoLAN Team"),
+                        _("(C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 - the VideoLAN Team"),
                         authors,
                         _("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."),
                         NULL);
@@ -1354,7 +1365,7 @@ create_intf_disc (void)
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_show (disc_name);
   gtk_box_pack_start (GTK_BOX (hbox1), disc_name, TRUE, TRUE, 0);
-  gtk_entry_set_text (GTK_ENTRY (disc_name), DVD_DEVICE);
+  gtk_entry_set_text (GTK_ENTRY (disc_name), "/dev/dvd");
 
   dialog_action_area4 = GNOME_DIALOG (intf_disc)->action_area;
   gtk_object_set_data (GTK_OBJECT (intf_disc), "dialog_action_area4", dialog_action_area4);
@@ -1399,38 +1410,34 @@ create_intf_network (void)
 {
   GtkWidget *intf_network;
   GtkWidget *vbox5;
-  GtkWidget *hbox3;
-  GtkWidget *frame3;
-  GtkWidget *vbox6;
-  GSList *network_group = NULL;
-  GtkWidget *network_ts;
-  GtkWidget *network_rtp;
-  GtkWidget *network_http;
-  GtkWidget *frame4;
-  GtkWidget *table2;
-  GtkWidget *network_server_label;
-  GtkWidget *network_port_label;
-  GtkObject *network_port_adj;
-  GtkWidget *network_port;
-  GtkWidget *network_broadcast_check;
-  GtkWidget *network_broadcast_combo;
-  GtkWidget *network_broadcast;
-  GtkWidget *network_server_combo;
-  GtkWidget *network_server;
-  GtkWidget *frame5;
-  GtkWidget *hbox4;
-  GtkWidget *network_channel_check;
-  GtkWidget *network_channel_combo;
+  GtkWidget *frame14;
+  GtkWidget *table6;
+  GSList *table6_group = NULL;
+  GtkWidget *network_udp;
+  GtkWidget *network_multicast;
   GtkWidget *network_channel;
+  GtkWidget *network_http;
+  GtkWidget *network_udp_port_label;
+  GtkWidget *network_multicast_address_label;
+  GtkWidget *network_channel_address_label;
+  GtkWidget *network_http_url_label;
+  GtkWidget *network_multicast_address_combo;
+  GtkWidget *network_multicast_address;
+  GtkObject *network_udp_port_adj;
+  GtkWidget *network_udp_port;
+  GtkWidget *network_channel_address_combo;
+  GtkWidget *network_channel_address;
+  GtkWidget *network_multicast_port_label;
   GtkWidget *network_channel_port_label;
+  GtkWidget *network_http_url;
+  GtkWidget *label42;
+  GtkObject *network_multicast_port_adj;
+  GtkWidget *network_multicast_port;
   GtkObject *network_channel_port_adj;
   GtkWidget *network_channel_port;
   GtkWidget *hbuttonbox1;
   GtkWidget *network_ok;
   GtkWidget *network_cancel;
-  GtkTooltips *tooltips;
-
-  tooltips = gtk_tooltips_new ();
 
   intf_network = gnome_dialog_new (_("Network Stream"), NULL);
   gtk_object_set_data (GTK_OBJECT (intf_network), "intf_network", intf_network);
@@ -1441,194 +1448,213 @@ create_intf_network (void)
   gtk_object_set_data (GTK_OBJECT (intf_network), "vbox5", vbox5);
   gtk_widget_show (vbox5);
 
-  hbox3 = gtk_hbox_new (FALSE, 5);
-  gtk_widget_ref (hbox3);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "hbox3", hbox3,
+  frame14 = gtk_frame_new (_("Network mode"));
+  gtk_widget_ref (frame14);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "frame14", frame14,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (hbox3);
-  gtk_box_pack_start (GTK_BOX (vbox5), hbox3, TRUE, TRUE, 0);
+  gtk_widget_show (frame14);
+  gtk_box_pack_start (GTK_BOX (vbox5), frame14, TRUE, TRUE, 0);
 
-  frame3 = gtk_frame_new (_("Protocol"));
-  gtk_widget_ref (frame3);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "frame3", frame3,
+  table6 = gtk_table_new (4, 6, FALSE);
+  gtk_widget_ref (table6);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "table6", table6,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (frame3);
-  gtk_box_pack_start (GTK_BOX (hbox3), frame3, TRUE, TRUE, 0);
+  gtk_widget_show (table6);
+  gtk_container_add (GTK_CONTAINER (frame14), table6);
+  gtk_container_set_border_width (GTK_CONTAINER (table6), 9);
+  gtk_table_set_col_spacings (GTK_TABLE (table6), 6);
 
-  vbox6 = gtk_vbox_new (FALSE, 0);
-  gtk_widget_ref (vbox6);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "vbox6", vbox6,
+  network_udp = gtk_radio_button_new_with_label (table6_group, _("UDP"));
+  table6_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_udp));
+  gtk_widget_ref (network_udp);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_udp", network_udp,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (vbox6);
-  gtk_container_add (GTK_CONTAINER (frame3), vbox6);
+  gtk_widget_show (network_udp);
+  gtk_table_attach (GTK_TABLE (table6), network_udp, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
 
-  network_ts = gtk_radio_button_new_with_label (network_group, _("TS"));
-  network_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_ts));
-  gtk_widget_ref (network_ts);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_ts", network_ts,
+  network_multicast = gtk_radio_button_new_with_label (table6_group, _("UDP Multicast"));
+  table6_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_multicast));
+  gtk_widget_ref (network_multicast);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_multicast", network_multicast,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_ts);
-  gtk_box_pack_start (GTK_BOX (vbox6), network_ts, FALSE, FALSE, 0);
+  gtk_widget_show (network_multicast);
+  gtk_table_attach (GTK_TABLE (table6), network_multicast, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
 
-  network_rtp = gtk_radio_button_new_with_label (network_group, _("RTP"));
-  network_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_rtp));
-  gtk_widget_ref (network_rtp);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_rtp", network_rtp,
+  network_channel = gtk_radio_button_new_with_label (table6_group, _("Channel server "));
+  table6_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_channel));
+  gtk_widget_ref (network_channel);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel", network_channel,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_rtp);
-  gtk_box_pack_start (GTK_BOX (vbox6), network_rtp, FALSE, FALSE, 0);
-  gtk_widget_set_sensitive (network_rtp, FALSE);
+  gtk_widget_show (network_channel);
+  gtk_table_attach (GTK_TABLE (table6), network_channel, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
 
-  network_http = gtk_radio_button_new_with_label (network_group, _("HTTP"));
-  network_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_http));
+  network_http = gtk_radio_button_new_with_label (table6_group, _("HTTP"));
+  table6_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_http));
   gtk_widget_ref (network_http);
   gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_http", network_http,
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_show (network_http);
-  gtk_box_pack_start (GTK_BOX (vbox6), network_http, FALSE, FALSE, 0);
-
-  frame4 = gtk_frame_new (_("Server"));
-  gtk_widget_ref (frame4);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "frame4", frame4,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (frame4);
-  gtk_box_pack_start (GTK_BOX (hbox3), frame4, TRUE, TRUE, 0);
-
-  table2 = gtk_table_new (3, 2, FALSE);
-  gtk_widget_ref (table2);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "table2", table2,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (table2);
-  gtk_container_add (GTK_CONTAINER (frame4), table2);
-  gtk_container_set_border_width (GTK_CONTAINER (table2), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (table2), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (table2), 5);
+  gtk_table_attach (GTK_TABLE (table6), network_http, 0, 1, 3, 4,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
 
-  network_server_label = gtk_label_new (_("Address"));
-  gtk_widget_ref (network_server_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_server_label", network_server_label,
+  network_udp_port_label = gtk_label_new (_("Port"));
+  gtk_widget_ref (network_udp_port_label);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_udp_port_label", network_udp_port_label,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_server_label);
-  gtk_table_attach (GTK_TABLE (table2), network_server_label, 0, 1, 0, 1,
+  gtk_widget_show (network_udp_port_label);
+  gtk_table_attach (GTK_TABLE (table6), network_udp_port_label, 1, 2, 0, 1,
                     (GtkAttachOptions) (GTK_FILL),
                     (GtkAttachOptions) (0), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (network_server_label), 0, 0.5);
+  gtk_misc_set_alignment (GTK_MISC (network_udp_port_label), 1, 0.5);
 
-  network_port_label = gtk_label_new (_("Port"));
-  gtk_widget_ref (network_port_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_port_label", network_port_label,
+  network_multicast_address_label = gtk_label_new (_("Address"));
+  gtk_widget_ref (network_multicast_address_label);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_multicast_address_label", network_multicast_address_label,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_port_label);
-  gtk_table_attach (GTK_TABLE (table2), network_port_label, 0, 1, 1, 2,
+  gtk_widget_show (network_multicast_address_label);
+  gtk_table_attach (GTK_TABLE (table6), network_multicast_address_label, 1, 2, 1, 2,
                     (GtkAttachOptions) (GTK_FILL),
                     (GtkAttachOptions) (0), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (network_port_label), 0, 0.5);
+  gtk_widget_set_sensitive (network_multicast_address_label, FALSE);
+  gtk_label_set_justify (GTK_LABEL (network_multicast_address_label), GTK_JUSTIFY_RIGHT);
+  gtk_misc_set_alignment (GTK_MISC (network_multicast_address_label), 1, 0.5);
 
-  network_port_adj = gtk_adjustment_new (1234, 1024, 65535, 1, 10, 10);
-  network_port = gtk_spin_button_new (GTK_ADJUSTMENT (network_port_adj), 1, 0);
-  gtk_widget_ref (network_port);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_port", network_port,
+  network_channel_address_label = gtk_label_new (_("Address"));
+  gtk_widget_ref (network_channel_address_label);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_address_label", network_channel_address_label,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_port);
-  gtk_table_attach (GTK_TABLE (table2), network_port, 1, 2, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+  gtk_widget_show (network_channel_address_label);
+  gtk_table_attach (GTK_TABLE (table6), network_channel_address_label, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
                     (GtkAttachOptions) (0), 0, 0);
-  gtk_tooltips_set_tip (tooltips, network_port, _("Port of the stream server"), NULL);
+  gtk_widget_set_sensitive (network_channel_address_label, FALSE);
 
-  network_broadcast_check = gtk_check_button_new_with_label (_("Broadcast"));
-  gtk_widget_ref (network_broadcast_check);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_broadcast_check", network_broadcast_check,
+  network_http_url_label = gtk_label_new (_("URL"));
+  gtk_widget_ref (network_http_url_label);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_http_url_label", network_http_url_label,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_broadcast_check);
-  gtk_table_attach (GTK_TABLE (table2), network_broadcast_check, 0, 1, 2, 3,
+  gtk_widget_show (network_http_url_label);
+  gtk_table_attach (GTK_TABLE (table6), network_http_url_label, 1, 2, 3, 4,
                     (GtkAttachOptions) (GTK_FILL),
                     (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_sensitive (network_http_url_label, FALSE);
+  gtk_misc_set_alignment (GTK_MISC (network_http_url_label), 1, 0.5);
 
-  network_broadcast_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (network_broadcast_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_broadcast_combo", network_broadcast_combo,
+  network_multicast_address_combo = gtk_combo_new ();
+  gtk_widget_ref (network_multicast_address_combo);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_multicast_address_combo", network_multicast_address_combo,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_broadcast_combo);
-  gtk_table_attach (GTK_TABLE (table2), network_broadcast_combo, 1, 2, 2, 3,
+  gtk_widget_show (network_multicast_address_combo);
+  gtk_table_attach (GTK_TABLE (table6), network_multicast_address_combo, 2, 4, 1, 2,
                     (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                     (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_sensitive (network_multicast_address_combo, FALSE);
 
-  network_broadcast = gnome_entry_gtk_entry (GNOME_ENTRY (network_broadcast_combo));
-  gtk_widget_ref (network_broadcast);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_broadcast", network_broadcast,
+  network_multicast_address = GTK_COMBO (network_multicast_address_combo)->entry;
+  gtk_widget_ref (network_multicast_address);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_multicast_address", network_multicast_address,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_broadcast);
-  gtk_widget_set_sensitive (network_broadcast, FALSE);
-  gtk_entry_set_text (GTK_ENTRY (network_broadcast), _("138.195.143.255"));
+  gtk_widget_show (network_multicast_address);
 
-  network_server_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (network_server_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_server_combo", network_server_combo,
+  network_udp_port_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
+  network_udp_port = gtk_spin_button_new (GTK_ADJUSTMENT (network_udp_port_adj), 1, 0);
+  gtk_widget_ref (network_udp_port);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_udp_port", network_udp_port,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_server_combo);
-  gtk_table_attach (GTK_TABLE (table2), network_server_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+  gtk_widget_show (network_udp_port);
+  gtk_table_attach (GTK_TABLE (table6), network_udp_port, 2, 3, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
                     (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_usize (network_udp_port, 1, -2);
 
-  network_server = gnome_entry_gtk_entry (GNOME_ENTRY (network_server_combo));
-  gtk_widget_ref (network_server);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_server", network_server,
+  network_channel_address_combo = gtk_combo_new ();
+  gtk_widget_ref (network_channel_address_combo);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_address_combo", network_channel_address_combo,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_server);
-  gtk_entry_set_text (GTK_ENTRY (network_server), _("vls"));
+  gtk_widget_show (network_channel_address_combo);
+  gtk_table_attach (GTK_TABLE (table6), network_channel_address_combo, 2, 4, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_sensitive (network_channel_address_combo, FALSE);
 
-  frame5 = gtk_frame_new (_("Channels"));
-  gtk_widget_ref (frame5);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "frame5", frame5,
+  network_channel_address = GTK_COMBO (network_channel_address_combo)->entry;
+  gtk_widget_ref (network_channel_address);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_address", network_channel_address,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (frame5);
-  gtk_box_pack_start (GTK_BOX (vbox5), frame5, TRUE, TRUE, 0);
-  gtk_frame_set_label_align (GTK_FRAME (frame5), 0.05, 0.5);
+  gtk_widget_show (network_channel_address);
 
-  hbox4 = gtk_hbox_new (FALSE, 0);
-  gtk_widget_ref (hbox4);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "hbox4", hbox4,
+  network_multicast_port_label = gtk_label_new (_("Port"));
+  gtk_widget_ref (network_multicast_port_label);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_multicast_port_label", network_multicast_port_label,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (hbox4);
-  gtk_container_add (GTK_CONTAINER (frame5), hbox4);
+  gtk_widget_show (network_multicast_port_label);
+  gtk_table_attach (GTK_TABLE (table6), network_multicast_port_label, 4, 5, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_usize (network_multicast_port_label, 51, -2);
+  gtk_widget_set_sensitive (network_multicast_port_label, FALSE);
+  gtk_misc_set_alignment (GTK_MISC (network_multicast_port_label), 1, 0.5);
 
-  network_channel_check = gtk_check_button_new_with_label (_("Channel server:"));
-  gtk_widget_ref (network_channel_check);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_check", network_channel_check,
+  network_channel_port_label = gtk_label_new (_("Port"));
+  gtk_widget_ref (network_channel_port_label);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_port_label", network_channel_port_label,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_channel_check);
-  gtk_box_pack_start (GTK_BOX (hbox4), network_channel_check, FALSE, FALSE, 0);
+  gtk_widget_show (network_channel_port_label);
+  gtk_table_attach (GTK_TABLE (table6), network_channel_port_label, 4, 5, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_sensitive (network_channel_port_label, FALSE);
+  gtk_misc_set_alignment (GTK_MISC (network_channel_port_label), 1, 0.5);
 
-  network_channel_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (network_channel_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_combo", network_channel_combo,
+  network_http_url = gtk_entry_new ();
+  gtk_widget_ref (network_http_url);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_http_url", network_http_url,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_channel_combo);
-  gtk_box_pack_start (GTK_BOX (hbox4), network_channel_combo, FALSE, FALSE, 0);
-  gtk_widget_set_sensitive (network_channel_combo, FALSE);
+  gtk_widget_show (network_http_url);
+  gtk_table_attach (GTK_TABLE (table6), network_http_url, 2, 6, 3, 4,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_sensitive (network_http_url, FALSE);
 
-  network_channel = gnome_entry_gtk_entry (GNOME_ENTRY (network_channel_combo));
-  gtk_widget_ref (network_channel);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel", network_channel,
+  label42 = gtk_label_new ("");
+  gtk_widget_ref (label42);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "label42", label42,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_channel);
-  gtk_entry_set_text (GTK_ENTRY (network_channel), _("138.195.143.120"));
+  gtk_widget_show (label42);
+  gtk_table_attach (GTK_TABLE (table6), label42, 3, 6, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_misc_set_alignment (GTK_MISC (label42), 0, 0.5);
 
-  network_channel_port_label = gtk_label_new (_("port:"));
-  gtk_widget_ref (network_channel_port_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_port_label", network_channel_port_label,
+  network_multicast_port_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
+  network_multicast_port = gtk_spin_button_new (GTK_ADJUSTMENT (network_multicast_port_adj), 1, 0);
+  gtk_widget_ref (network_multicast_port);
+  gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_multicast_port", network_multicast_port,
                             (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (network_channel_port_label);
-  gtk_box_pack_start (GTK_BOX (hbox4), network_channel_port_label, FALSE, FALSE, 5);
+  gtk_widget_show (network_multicast_port);
+  gtk_table_attach (GTK_TABLE (table6), network_multicast_port, 5, 6, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_usize (network_multicast_port, 75, -2);
+  gtk_widget_set_sensitive (network_multicast_port, FALSE);
 
-  network_channel_port_adj = gtk_adjustment_new (6010, 1024, 65535, 1, 10, 10);
+  network_channel_port_adj = gtk_adjustment_new (6010, 0, 65535, 1, 10, 10);
   network_channel_port = gtk_spin_button_new (GTK_ADJUSTMENT (network_channel_port_adj), 1, 0);
   gtk_widget_ref (network_channel_port);
   gtk_object_set_data_full (GTK_OBJECT (intf_network), "network_channel_port", network_channel_port,
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_show (network_channel_port);
-  gtk_box_pack_start (GTK_BOX (hbox4), network_channel_port, FALSE, FALSE, 0);
-  gtk_widget_set_usize (network_channel_port, 60, -2);
+  gtk_table_attach (GTK_TABLE (table6), network_channel_port, 5, 6, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_widget_set_usize (network_channel_port, 75, -2);
   gtk_widget_set_sensitive (network_channel_port, FALSE);
 
   hbuttonbox1 = GNOME_DIALOG (intf_network)->action_area;
@@ -1653,12 +1679,18 @@ create_intf_network (void)
   gtk_widget_show (network_cancel);
   GTK_WIDGET_SET_FLAGS (network_cancel, GTK_CAN_DEFAULT);
 
-  gtk_signal_connect (GTK_OBJECT (network_broadcast_check), "toggled",
-                      GTK_SIGNAL_FUNC (GtkNetworkOpenBroadcast),
+  gtk_signal_connect (GTK_OBJECT (network_udp), "toggled",
+                      GTK_SIGNAL_FUNC (GtkNetworkOpenUDP),
+                      "intf_network");
+  gtk_signal_connect (GTK_OBJECT (network_multicast), "toggled",
+                      GTK_SIGNAL_FUNC (GtkNetworkOpenMulticast),
                       "intf_network");
-  gtk_signal_connect (GTK_OBJECT (network_channel_check), "toggled",
+  gtk_signal_connect (GTK_OBJECT (network_channel), "toggled",
                       GTK_SIGNAL_FUNC (GtkNetworkOpenChannel),
                       "intf_network");
+  gtk_signal_connect (GTK_OBJECT (network_http), "toggled",
+                      GTK_SIGNAL_FUNC (GtkNetworkOpenHTTP),
+                      "intf_network");
   gtk_signal_connect (GTK_OBJECT (network_ok), "clicked",
                       GTK_SIGNAL_FUNC (GtkNetworkOpenOk),
                       "intf_network");
@@ -1666,8 +1698,6 @@ create_intf_network (void)
                       GTK_SIGNAL_FUNC (GtkNetworkOpenCancel),
                       "intf_network");
 
-  gtk_object_set_data (GTK_OBJECT (intf_network), "tooltips", tooltips);
-
   return intf_network;
 }
 
@@ -2087,965 +2117,6 @@ create_intf_jump (void)
   return intf_jump;
 }
 
-GtkWidget*
-create_intf_preferences (void)
-{
-  GtkWidget *intf_preferences;
-  GtkWidget *preferences_vbox;
-  GtkWidget *preferences_frame;
-  GtkWidget *preferences_notebook;
-  GtkWidget *preferences_file_table;
-  GtkWidget *preferences_file_combo;
-  GtkWidget *preferences_file_path_entry;
-  GtkWidget *preferences_file_path_label;
-  GtkWidget *preferences_file;
-  GtkWidget *preferences_disc_table;
-  GtkWidget *preferences_disc_dvd_combo;
-  GtkWidget *preferences_disc_dvd_entry;
-  GtkWidget *preferences_file_vcd_combo;
-  GtkWidget *preferences_disc_vcd_entry;
-  GtkWidget *preferences_disc_dvd_label;
-  GtkWidget *preferences_disc_vcd_label;
-  GtkWidget *preferences_disc;
-  GtkWidget *preferences_network_table;
-  GtkWidget *preferences_network_server_label;
-  GtkObject *preferences_network_port_spinbutton_adj;
-  GtkWidget *preferences_network_port_spinbutton;
-  GtkWidget *preferences_network_broadcast_label;
-  GtkWidget *preferences_network_port_label;
-  GtkWidget *preferences_network_server_combo;
-  GtkWidget *preferences_network_server_entry;
-  GtkWidget *preferences_network_broadcast_combo;
-  GtkWidget *preferences_network_broadcast_entry;
-  GtkWidget *preferences_network_broadcast_checkbutton;
-  GSList *preferences_network_protocol_group_group = NULL;
-  GtkWidget *preferences_network_ts_radiobutton;
-  GtkWidget *preferences_network_rtp_radiobutton;
-  GtkWidget *preferences_network_http_radiobutton;
-  GtkWidget *preferences_network_protocol_label;
-  GtkWidget *preferences_network;
-  GtkWidget *preferences_network_interface_table;
-  GtkWidget *preferences_interface_label;
-  GtkWidget *preferences_interface_combo;
-  GtkWidget *preferences_interface_entry;
-  GtkWidget *preferences_interface;
-  GtkWidget *preferences_video_table;
-  GtkWidget *preferences_video_output_label;
-  GtkWidget *preferences_video_height;
-  GtkObject *preferences_video_height_spinbutton_adj;
-  GtkWidget *preferences_video_height_spinbutton;
-  GtkObject *preferences_video_width_spinbutton_adj;
-  GtkWidget *preferences_video_width_spinbutton;
-  GtkWidget *preferences_video_width_label;
-  GtkWidget *preferences_video_output_combo;
-  GtkWidget *preferences_video_output_entry;
-  GtkWidget *preferences_video_depth;
-  GtkWidget *preferences_video_depth_optionmenu;
-  GtkWidget *preferences_video_depth_optionmenu_menu;
-  GtkWidget *glade_menuitem;
-  GtkWidget *preferences_video_fullscreen_depth;
-  GtkWidget *preferences_video_fullscreen_depth_optionmenu;
-  GtkWidget *preferences_video_fullscreen_depth_optionmenu_menu;
-  GtkWidget *preferences_video_fullscreen_checkbutton;
-  GtkWidget *preferences_video_grayscale_checkbutton;
-  GtkWidget *preferences_video_gamma_label;
-  GtkObject *spinbutton4_adj;
-  GtkWidget *spinbutton4;
-  GtkWidget *preferences_video;
-  GtkWidget *preference_audio_table;
-  GtkWidget *preferences_audio_spdif_checkbutton;
-  GtkWidget *preferences_audio_output_label;
-  GtkWidget *preferences_audio_output_combo;
-  GtkWidget *preferences_audio_output_entry;
-  GtkWidget *preferences_audio_frequency_label;
-  GtkWidget *preferences_audio_frequency_optionmenu;
-  GtkWidget *preferences_audio_frequency_optionmenu_menu;
-  GtkWidget *preferences_audio_quality_label;
-  GtkWidget *preferences_audio_quality_optionmenu;
-  GtkWidget *preferences_audio_quality_optionmenu_menu;
-  GtkWidget *preferences_audio_channels_label;
-  GtkWidget *preferences_audio_channels_optionmenu;
-  GtkWidget *preferences_audio_channels_optionmenu_menu;
-  GtkWidget *preferences_audio_device_label;
-  GtkWidget *preferences_audio_device_combo;
-  GtkWidget *preferences_audio_device_entry;
-  GtkWidget *preferences_audio;
-  GtkWidget *preference_playlist_table;
-  GtkWidget *preferences_playlist_startup_checkbutton;
-  GtkWidget *preferences_playlist_loop_checkbutton;
-  GtkWidget *preferences_playlist_enqueue_checkbutton;
-  GtkWidget *preferences_playlist;
-  GtkWidget *preferences_misc_table;
-  GtkWidget *preferences_misc_associated_files_frame;
-  GtkWidget *preferences_misc_associated_table;
-  GtkWidget *preferences_misc_ts_checkbutton;
-  GtkWidget *preferences_misc_vob_checkbutton;
-  GtkWidget *preferences_misc_mp2_checkbutton;
-  GtkWidget *preferences_misc_mpeg_checkbutton;
-  GtkWidget *preferences_misc_message_frame;
-  GtkWidget *preferences_misc_message_table;
-  GtkWidget *preferences_misc_messages_label;
-  GtkObject *preferences_misc_messages_spinbutton_adj;
-  GtkWidget *preferences_misc_messages_spinbutton;
-  GtkWidget *preferences_misc;
-  GtkWidget *preferences_dialog;
-  GtkWidget *preferences_ok;
-  GtkWidget *preferences_apply;
-  GtkWidget *preferences_cancel;
-
-  intf_preferences = gnome_dialog_new (_("Preferences"), NULL);
-  gtk_object_set_data (GTK_OBJECT (intf_preferences), "intf_preferences", intf_preferences);
-  gtk_window_set_default_size (GTK_WINDOW (intf_preferences), 450, 350);
-  gtk_window_set_policy (GTK_WINDOW (intf_preferences), TRUE, TRUE, FALSE);
-
-  preferences_vbox = GNOME_DIALOG (intf_preferences)->vbox;
-  gtk_object_set_data (GTK_OBJECT (intf_preferences), "preferences_vbox", preferences_vbox);
-  gtk_widget_show (preferences_vbox);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_vbox), 5);
-
-  preferences_frame = gtk_frame_new (_("Preferences"));
-  gtk_widget_ref (preferences_frame);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_frame", preferences_frame,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_frame);
-  gtk_box_pack_start (GTK_BOX (preferences_vbox), preferences_frame, TRUE, TRUE, 0);
-  gtk_frame_set_label_align (GTK_FRAME (preferences_frame), 0.05, 0.5);
-
-  preferences_notebook = gtk_notebook_new ();
-  gtk_widget_ref (preferences_notebook);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_notebook", preferences_notebook,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_notebook);
-  gtk_container_add (GTK_CONTAINER (preferences_frame), preferences_notebook);
-
-  preferences_file_table = gtk_table_new (1, 2, FALSE);
-  gtk_widget_ref (preferences_file_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_file_table", preferences_file_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_file_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_file_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_file_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preferences_file_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preferences_file_table), 5);
-
-  preferences_file_combo = gnome_file_entry_new (NULL, NULL);
-  gtk_widget_ref (preferences_file_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_file_combo", preferences_file_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_file_combo);
-  gtk_table_attach (GTK_TABLE (preferences_file_table), preferences_file_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_file_path_entry = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (preferences_file_combo));
-  gtk_widget_ref (preferences_file_path_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_file_path_entry", preferences_file_path_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_file_path_entry);
-
-  preferences_file_path_label = gtk_label_new (_("Default path: "));
-  gtk_widget_ref (preferences_file_path_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_file_path_label", preferences_file_path_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_file_path_label);
-  gtk_table_attach (GTK_TABLE (preferences_file_table), preferences_file_path_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_file_path_label), 0, 0.5);
-
-  preferences_file = gtk_label_new (_("File"));
-  gtk_widget_ref (preferences_file);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_file", preferences_file,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_file);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 0), preferences_file);
-
-  preferences_disc_table = gtk_table_new (2, 2, FALSE);
-  gtk_widget_ref (preferences_disc_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc_table", preferences_disc_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_disc_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_disc_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preferences_disc_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preferences_disc_table), 5);
-
-  preferences_disc_dvd_combo = gnome_file_entry_new (NULL, NULL);
-  gtk_widget_ref (preferences_disc_dvd_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc_dvd_combo", preferences_disc_dvd_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc_dvd_combo);
-  gtk_table_attach (GTK_TABLE (preferences_disc_table), preferences_disc_dvd_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_disc_dvd_entry = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (preferences_disc_dvd_combo));
-  gtk_widget_ref (preferences_disc_dvd_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc_dvd_entry", preferences_disc_dvd_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc_dvd_entry);
-
-  preferences_file_vcd_combo = gnome_file_entry_new (NULL, NULL);
-  gtk_widget_ref (preferences_file_vcd_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_file_vcd_combo", preferences_file_vcd_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_file_vcd_combo);
-  gtk_table_attach (GTK_TABLE (preferences_disc_table), preferences_file_vcd_combo, 1, 2, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_disc_vcd_entry = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (preferences_file_vcd_combo));
-  gtk_widget_ref (preferences_disc_vcd_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc_vcd_entry", preferences_disc_vcd_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc_vcd_entry);
-
-  preferences_disc_dvd_label = gtk_label_new (_("Default DVD path: "));
-  gtk_widget_ref (preferences_disc_dvd_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc_dvd_label", preferences_disc_dvd_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc_dvd_label);
-  gtk_table_attach (GTK_TABLE (preferences_disc_table), preferences_disc_dvd_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_disc_dvd_label), 0, 0.5);
-
-  preferences_disc_vcd_label = gtk_label_new (_("Default VCD path: "));
-  gtk_widget_ref (preferences_disc_vcd_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc_vcd_label", preferences_disc_vcd_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc_vcd_label);
-  gtk_table_attach (GTK_TABLE (preferences_disc_table), preferences_disc_vcd_label, 0, 1, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_disc_vcd_label), 0, 0.5);
-
-  preferences_disc = gtk_label_new (_("Disc"));
-  gtk_widget_ref (preferences_disc);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_disc", preferences_disc,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_disc);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 1), preferences_disc);
-
-  preferences_network_table = gtk_table_new (7, 2, FALSE);
-  gtk_widget_ref (preferences_network_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_table", preferences_network_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_network_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_network_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preferences_network_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preferences_network_table), 5);
-
-  preferences_network_server_label = gtk_label_new (_("Default server: "));
-  gtk_widget_ref (preferences_network_server_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_server_label", preferences_network_server_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_server_label);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_server_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_network_server_label), 0, 0.5);
-
-  preferences_network_port_spinbutton_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
-  preferences_network_port_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (preferences_network_port_spinbutton_adj), 1, 0);
-  gtk_widget_ref (preferences_network_port_spinbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_port_spinbutton", preferences_network_port_spinbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_port_spinbutton);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_port_spinbutton, 1, 2, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_network_broadcast_label = gtk_label_new (_("Broadcast address: "));
-  gtk_widget_ref (preferences_network_broadcast_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_broadcast_label", preferences_network_broadcast_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_broadcast_label);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_broadcast_label, 0, 1, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_network_broadcast_label), 0, 0.5);
-
-  preferences_network_port_label = gtk_label_new (_("Default port: "));
-  gtk_widget_ref (preferences_network_port_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_port_label", preferences_network_port_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_port_label);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_port_label, 0, 1, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_network_port_label), 0, 0.5);
-
-  preferences_network_server_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (preferences_network_server_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_server_combo", preferences_network_server_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_server_combo);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_server_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_network_server_entry = gnome_entry_gtk_entry (GNOME_ENTRY (preferences_network_server_combo));
-  gtk_widget_ref (preferences_network_server_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_server_entry", preferences_network_server_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_server_entry);
-  gtk_entry_set_text (GTK_ENTRY (preferences_network_server_entry), _("vls"));
-
-  preferences_network_broadcast_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (preferences_network_broadcast_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_broadcast_combo", preferences_network_broadcast_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_broadcast_combo);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_broadcast_combo, 1, 2, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_network_broadcast_entry = gnome_entry_gtk_entry (GNOME_ENTRY (preferences_network_broadcast_combo));
-  gtk_widget_ref (preferences_network_broadcast_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_broadcast_entry", preferences_network_broadcast_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_broadcast_entry);
-
-  preferences_network_broadcast_checkbutton = gtk_check_button_new_with_label (_("Broadcast mode"));
-  gtk_widget_ref (preferences_network_broadcast_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_broadcast_checkbutton", preferences_network_broadcast_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_broadcast_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_broadcast_checkbutton, 0, 1, 3, 4,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_network_ts_radiobutton = gtk_radio_button_new_with_label (preferences_network_protocol_group_group, _("TS"));
-  preferences_network_protocol_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (preferences_network_ts_radiobutton));
-  gtk_widget_ref (preferences_network_ts_radiobutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_ts_radiobutton", preferences_network_ts_radiobutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_ts_radiobutton);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_ts_radiobutton, 1, 2, 4, 5,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
-  preferences_network_rtp_radiobutton = gtk_radio_button_new_with_label (preferences_network_protocol_group_group, _("RTP"));
-  preferences_network_protocol_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (preferences_network_rtp_radiobutton));
-  gtk_widget_ref (preferences_network_rtp_radiobutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_rtp_radiobutton", preferences_network_rtp_radiobutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_rtp_radiobutton);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_rtp_radiobutton, 1, 2, 5, 6,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
-  preferences_network_http_radiobutton = gtk_radio_button_new_with_label (preferences_network_protocol_group_group, _("HTTP"));
-  preferences_network_protocol_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (preferences_network_http_radiobutton));
-  gtk_widget_ref (preferences_network_http_radiobutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_http_radiobutton", preferences_network_http_radiobutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_http_radiobutton);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_http_radiobutton, 1, 2, 6, 7,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
-  preferences_network_protocol_label = gtk_label_new (_("Default protocol: "));
-  gtk_widget_ref (preferences_network_protocol_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_protocol_label", preferences_network_protocol_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_protocol_label);
-  gtk_table_attach (GTK_TABLE (preferences_network_table), preferences_network_protocol_label, 0, 1, 4, 7,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_network_protocol_label), 0, 0.5);
-
-  preferences_network = gtk_label_new (_("Network"));
-  gtk_widget_ref (preferences_network);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network", preferences_network,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 2), preferences_network);
-
-  preferences_network_interface_table = gtk_table_new (1, 2, FALSE);
-  gtk_widget_ref (preferences_network_interface_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_network_interface_table", preferences_network_interface_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_network_interface_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_network_interface_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_network_interface_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preferences_network_interface_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preferences_network_interface_table), 5);
-
-  preferences_interface_label = gtk_label_new (_("Default interface: "));
-  gtk_widget_ref (preferences_interface_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_interface_label", preferences_interface_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_interface_label);
-  gtk_table_attach (GTK_TABLE (preferences_network_interface_table), preferences_interface_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_interface_label), 0, 0.5);
-
-  preferences_interface_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (preferences_interface_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_interface_combo", preferences_interface_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_interface_combo);
-  gtk_table_attach (GTK_TABLE (preferences_network_interface_table), preferences_interface_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_interface_entry = gnome_entry_gtk_entry (GNOME_ENTRY (preferences_interface_combo));
-  gtk_widget_ref (preferences_interface_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_interface_entry", preferences_interface_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_interface_entry);
-
-  preferences_interface = gtk_label_new (_("Interface"));
-  gtk_widget_ref (preferences_interface);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_interface", preferences_interface,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_interface);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 3), preferences_interface);
-
-  preferences_video_table = gtk_table_new (7, 2, FALSE);
-  gtk_widget_ref (preferences_video_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_table", preferences_video_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_video_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_video_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preferences_video_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preferences_video_table), 5);
-
-  preferences_video_output_label = gtk_label_new (_("Default output: "));
-  gtk_widget_ref (preferences_video_output_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_output_label", preferences_video_output_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_output_label);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_output_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_video_output_label), 0, 0.5);
-
-  preferences_video_height = gtk_label_new (_("Default height: "));
-  gtk_widget_ref (preferences_video_height);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_height", preferences_video_height,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_height);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_height, 0, 1, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_video_height), 0, 0.5);
-
-  preferences_video_height_spinbutton_adj = gtk_adjustment_new (576, 0, 1600, 1, 10, 10);
-  preferences_video_height_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (preferences_video_height_spinbutton_adj), 1, 0);
-  gtk_widget_ref (preferences_video_height_spinbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_height_spinbutton", preferences_video_height_spinbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_height_spinbutton);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_height_spinbutton, 1, 2, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_video_width_spinbutton_adj = gtk_adjustment_new (720, 100, 1600, 1, 10, 10);
-  preferences_video_width_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (preferences_video_width_spinbutton_adj), 1, 0);
-  gtk_widget_ref (preferences_video_width_spinbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_width_spinbutton", preferences_video_width_spinbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_width_spinbutton);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_width_spinbutton, 1, 2, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_video_width_label = gtk_label_new (_("Default width: "));
-  gtk_widget_ref (preferences_video_width_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_width_label", preferences_video_width_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_width_label);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_width_label, 0, 1, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_video_width_label), 0, 0.5);
-
-  preferences_video_output_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (preferences_video_output_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_output_combo", preferences_video_output_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_output_combo);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_output_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_video_output_entry = gnome_entry_gtk_entry (GNOME_ENTRY (preferences_video_output_combo));
-  gtk_widget_ref (preferences_video_output_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_output_entry", preferences_video_output_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_output_entry);
-
-  preferences_video_depth = gtk_label_new (_("Default depth:"));
-  gtk_widget_ref (preferences_video_depth);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_depth", preferences_video_depth,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_depth);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_depth, 0, 1, 3, 4,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_video_depth), 0, 0.5);
-
-  preferences_video_depth_optionmenu = gtk_option_menu_new ();
-  gtk_widget_ref (preferences_video_depth_optionmenu);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_depth_optionmenu", preferences_video_depth_optionmenu,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_depth_optionmenu);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_depth_optionmenu, 1, 2, 3, 4,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  preferences_video_depth_optionmenu_menu = gtk_menu_new ();
-  glade_menuitem = gtk_menu_item_new_with_label (_("15 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_video_depth_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("16 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_video_depth_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("32 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_video_depth_optionmenu_menu), glade_menuitem);
-  gtk_option_menu_set_menu (GTK_OPTION_MENU (preferences_video_depth_optionmenu), preferences_video_depth_optionmenu_menu);
-  gtk_option_menu_set_history (GTK_OPTION_MENU (preferences_video_depth_optionmenu), 1);
-
-  preferences_video_fullscreen_depth = gtk_label_new (_("Fullscreen depth:"));
-  gtk_widget_ref (preferences_video_fullscreen_depth);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_fullscreen_depth", preferences_video_fullscreen_depth,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_fullscreen_depth);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_fullscreen_depth, 0, 1, 4, 5,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_video_fullscreen_depth), 0, 0.5);
-
-  preferences_video_fullscreen_depth_optionmenu = gtk_option_menu_new ();
-  gtk_widget_ref (preferences_video_fullscreen_depth_optionmenu);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_fullscreen_depth_optionmenu", preferences_video_fullscreen_depth_optionmenu,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_fullscreen_depth_optionmenu);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_fullscreen_depth_optionmenu, 1, 2, 4, 5,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
-  preferences_video_fullscreen_depth_optionmenu_menu = gtk_menu_new ();
-  glade_menuitem = gtk_menu_item_new_with_label (_("15 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_video_fullscreen_depth_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("16 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_video_fullscreen_depth_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("32 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_video_fullscreen_depth_optionmenu_menu), glade_menuitem);
-  gtk_option_menu_set_menu (GTK_OPTION_MENU (preferences_video_fullscreen_depth_optionmenu), preferences_video_fullscreen_depth_optionmenu_menu);
-  gtk_option_menu_set_history (GTK_OPTION_MENU (preferences_video_fullscreen_depth_optionmenu), 2);
-
-  preferences_video_fullscreen_checkbutton = gtk_check_button_new_with_label (_("Fullscreen on play"));
-  gtk_widget_ref (preferences_video_fullscreen_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_fullscreen_checkbutton", preferences_video_fullscreen_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_fullscreen_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_fullscreen_checkbutton, 0, 1, 6, 7,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_video_grayscale_checkbutton = gtk_check_button_new_with_label (_("Grayscale"));
-  gtk_widget_ref (preferences_video_grayscale_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_grayscale_checkbutton", preferences_video_grayscale_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_grayscale_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_grayscale_checkbutton, 1, 2, 6, 7,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_video_gamma_label = gtk_label_new (_("Gamma:"));
-  gtk_widget_ref (preferences_video_gamma_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video_gamma_label", preferences_video_gamma_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video_gamma_label);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), preferences_video_gamma_label, 0, 1, 5, 6,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_video_gamma_label), 0, 0.5);
-
-  spinbutton4_adj = gtk_adjustment_new (0, 0, 5, 0.1, 10, 10);
-  spinbutton4 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton4_adj), 1, 1);
-  gtk_widget_ref (spinbutton4);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "spinbutton4", spinbutton4,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (spinbutton4);
-  gtk_table_attach (GTK_TABLE (preferences_video_table), spinbutton4, 1, 2, 5, 6,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_video = gtk_label_new (_("Video"));
-  gtk_widget_ref (preferences_video);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_video", preferences_video,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_video);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 4), preferences_video);
-
-  preference_audio_table = gtk_table_new (6, 2, FALSE);
-  gtk_widget_ref (preference_audio_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preference_audio_table", preference_audio_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preference_audio_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preference_audio_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preference_audio_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preference_audio_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preference_audio_table), 5);
-
-  preferences_audio_spdif_checkbutton = gtk_check_button_new_with_label (_("Spdif output"));
-  gtk_widget_ref (preferences_audio_spdif_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_spdif_checkbutton", preferences_audio_spdif_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_spdif_checkbutton);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_spdif_checkbutton, 0, 2, 5, 6,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_audio_output_label = gtk_label_new (_("Default output: "));
-  gtk_widget_ref (preferences_audio_output_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_output_label", preferences_audio_output_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_output_label);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_output_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_audio_output_label), 0, 0.5);
-
-  preferences_audio_output_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (preferences_audio_output_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_output_combo", preferences_audio_output_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_output_combo);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_output_combo, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_audio_output_entry = gnome_entry_gtk_entry (GNOME_ENTRY (preferences_audio_output_combo));
-  gtk_widget_ref (preferences_audio_output_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_output_entry", preferences_audio_output_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_output_entry);
-
-  preferences_audio_frequency_label = gtk_label_new (_("Frequency: "));
-  gtk_widget_ref (preferences_audio_frequency_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_frequency_label", preferences_audio_frequency_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_frequency_label);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_frequency_label, 0, 1, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_audio_frequency_label), 0, 0.5);
-
-  preferences_audio_frequency_optionmenu = gtk_option_menu_new ();
-  gtk_widget_ref (preferences_audio_frequency_optionmenu);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_frequency_optionmenu", preferences_audio_frequency_optionmenu,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_frequency_optionmenu);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_frequency_optionmenu, 1, 2, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  preferences_audio_frequency_optionmenu_menu = gtk_menu_new ();
-  glade_menuitem = gtk_menu_item_new_with_label (_("48000 Hz"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_frequency_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("44100 Hz"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_frequency_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("32000 Hz"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_frequency_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("22050 Hz"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_frequency_optionmenu_menu), glade_menuitem);
-  gtk_option_menu_set_menu (GTK_OPTION_MENU (preferences_audio_frequency_optionmenu), preferences_audio_frequency_optionmenu_menu);
-
-  preferences_audio_quality_label = gtk_label_new (_("Quality: "));
-  gtk_widget_ref (preferences_audio_quality_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_quality_label", preferences_audio_quality_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_quality_label);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_quality_label, 0, 1, 3, 4,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_audio_quality_label), 0, 0.5);
-
-  preferences_audio_quality_optionmenu = gtk_option_menu_new ();
-  gtk_widget_ref (preferences_audio_quality_optionmenu);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_quality_optionmenu", preferences_audio_quality_optionmenu,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_quality_optionmenu);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_quality_optionmenu, 1, 2, 3, 4,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  preferences_audio_quality_optionmenu_menu = gtk_menu_new ();
-  glade_menuitem = gtk_menu_item_new_with_label (_("16 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_quality_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("8 bits"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_quality_optionmenu_menu), glade_menuitem);
-  gtk_option_menu_set_menu (GTK_OPTION_MENU (preferences_audio_quality_optionmenu), preferences_audio_quality_optionmenu_menu);
-
-  preferences_audio_channels_label = gtk_label_new (_("Channels: "));
-  gtk_widget_ref (preferences_audio_channels_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_channels_label", preferences_audio_channels_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_channels_label);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_channels_label, 0, 1, 4, 5,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_audio_channels_label), 0, 0.5);
-
-  preferences_audio_channels_optionmenu = gtk_option_menu_new ();
-  gtk_widget_ref (preferences_audio_channels_optionmenu);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_channels_optionmenu", preferences_audio_channels_optionmenu,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_channels_optionmenu);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_channels_optionmenu, 1, 2, 4, 5,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-  preferences_audio_channels_optionmenu_menu = gtk_menu_new ();
-  glade_menuitem = gtk_menu_item_new_with_label (_("Mono"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_channels_optionmenu_menu), glade_menuitem);
-  glade_menuitem = gtk_menu_item_new_with_label (_("Stereo"));
-  gtk_widget_show (glade_menuitem);
-  gtk_menu_append (GTK_MENU (preferences_audio_channels_optionmenu_menu), glade_menuitem);
-  gtk_option_menu_set_menu (GTK_OPTION_MENU (preferences_audio_channels_optionmenu), preferences_audio_channels_optionmenu_menu);
-  gtk_option_menu_set_history (GTK_OPTION_MENU (preferences_audio_channels_optionmenu), 1);
-
-  preferences_audio_device_label = gtk_label_new (_("Default device:"));
-  gtk_widget_ref (preferences_audio_device_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_device_label", preferences_audio_device_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_device_label);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_device_label, 0, 1, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-  gtk_misc_set_alignment (GTK_MISC (preferences_audio_device_label), 0, 0.5);
-
-  preferences_audio_device_combo = gnome_entry_new (NULL);
-  gtk_widget_ref (preferences_audio_device_combo);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_device_combo", preferences_audio_device_combo,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_device_combo);
-  gtk_table_attach (GTK_TABLE (preference_audio_table), preferences_audio_device_combo, 1, 2, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_audio_device_entry = gnome_entry_gtk_entry (GNOME_ENTRY (preferences_audio_device_combo));
-  gtk_widget_ref (preferences_audio_device_entry);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio_device_entry", preferences_audio_device_entry,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio_device_entry);
-
-  preferences_audio = gtk_label_new (_("Audio"));
-  gtk_widget_ref (preferences_audio);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_audio", preferences_audio,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_audio);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 5), preferences_audio);
-
-  preference_playlist_table = gtk_table_new (3, 1, FALSE);
-  gtk_widget_ref (preference_playlist_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preference_playlist_table", preference_playlist_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preference_playlist_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preference_playlist_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preference_playlist_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preference_playlist_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preference_playlist_table), 5);
-
-  preferences_playlist_startup_checkbutton = gtk_check_button_new_with_label (_("Launch on startup"));
-  gtk_widget_ref (preferences_playlist_startup_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_playlist_startup_checkbutton", preferences_playlist_startup_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_playlist_startup_checkbutton);
-  gtk_table_attach (GTK_TABLE (preference_playlist_table), preferences_playlist_startup_checkbutton, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_playlist_loop_checkbutton = gtk_check_button_new_with_label (_("Loop on playlist end"));
-  gtk_widget_ref (preferences_playlist_loop_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_playlist_loop_checkbutton", preferences_playlist_loop_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_playlist_loop_checkbutton);
-  gtk_table_attach (GTK_TABLE (preference_playlist_table), preferences_playlist_loop_checkbutton, 0, 1, 2, 3,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_playlist_enqueue_checkbutton = gtk_check_button_new_with_label (_("Enqueue as default"));
-  gtk_widget_ref (preferences_playlist_enqueue_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_playlist_enqueue_checkbutton", preferences_playlist_enqueue_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_playlist_enqueue_checkbutton);
-  gtk_table_attach (GTK_TABLE (preference_playlist_table), preferences_playlist_enqueue_checkbutton, 0, 1, 1, 2,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
-
-  preferences_playlist = gtk_label_new (_("Playlist"));
-  gtk_widget_ref (preferences_playlist);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_playlist", preferences_playlist,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_playlist);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 6), preferences_playlist);
-
-  preferences_misc_table = gtk_table_new (1, 2, FALSE);
-  gtk_widget_ref (preferences_misc_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_table", preferences_misc_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_table);
-  gtk_container_add (GTK_CONTAINER (preferences_notebook), preferences_misc_table);
-  gtk_container_set_border_width (GTK_CONTAINER (preferences_misc_table), 5);
-  gtk_table_set_row_spacings (GTK_TABLE (preferences_misc_table), 5);
-  gtk_table_set_col_spacings (GTK_TABLE (preferences_misc_table), 5);
-
-  preferences_misc_associated_files_frame = gtk_frame_new (_("Files associated with vlc"));
-  gtk_widget_ref (preferences_misc_associated_files_frame);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_associated_files_frame", preferences_misc_associated_files_frame,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_associated_files_frame);
-  gtk_table_attach (GTK_TABLE (preferences_misc_table), preferences_misc_associated_files_frame, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_FILL), 0, 0);
-  gtk_widget_set_sensitive (preferences_misc_associated_files_frame, FALSE);
-  gtk_frame_set_label_align (GTK_FRAME (preferences_misc_associated_files_frame), 0.05, 0.5);
-
-  preferences_misc_associated_table = gtk_table_new (4, 1, FALSE);
-  gtk_widget_ref (preferences_misc_associated_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_associated_table", preferences_misc_associated_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_associated_table);
-  gtk_container_add (GTK_CONTAINER (preferences_misc_associated_files_frame), preferences_misc_associated_table);
-
-  preferences_misc_ts_checkbutton = gtk_check_button_new_with_label (_("ts"));
-  gtk_widget_ref (preferences_misc_ts_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_ts_checkbutton", preferences_misc_ts_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_ts_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_misc_associated_table), preferences_misc_ts_checkbutton, 0, 1, 3, 4,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_misc_vob_checkbutton = gtk_check_button_new_with_label (_("vob"));
-  gtk_widget_ref (preferences_misc_vob_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_vob_checkbutton", preferences_misc_vob_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_vob_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_misc_associated_table), preferences_misc_vob_checkbutton, 0, 1, 2, 3,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_misc_mp2_checkbutton = gtk_check_button_new_with_label (_("mp2"));
-  gtk_widget_ref (preferences_misc_mp2_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_mp2_checkbutton", preferences_misc_mp2_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_mp2_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_misc_associated_table), preferences_misc_mp2_checkbutton, 0, 1, 1, 2,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_misc_mpeg_checkbutton = gtk_check_button_new_with_label (_("mpeg"));
-  gtk_widget_ref (preferences_misc_mpeg_checkbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_mpeg_checkbutton", preferences_misc_mpeg_checkbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_mpeg_checkbutton);
-  gtk_table_attach (GTK_TABLE (preferences_misc_associated_table), preferences_misc_mpeg_checkbutton, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_misc_message_frame = gtk_frame_new (_("Messages"));
-  gtk_widget_ref (preferences_misc_message_frame);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_message_frame", preferences_misc_message_frame,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_message_frame);
-  gtk_table_attach (GTK_TABLE (preferences_misc_table), preferences_misc_message_frame, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND),
-                    (GtkAttachOptions) (GTK_FILL), 0, 0);
-  gtk_frame_set_label_align (GTK_FRAME (preferences_misc_message_frame), 0.05, 0.5);
-
-  preferences_misc_message_table = gtk_table_new (1, 2, FALSE);
-  gtk_widget_ref (preferences_misc_message_table);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_message_table", preferences_misc_message_table,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_message_table);
-  gtk_container_add (GTK_CONTAINER (preferences_misc_message_frame), preferences_misc_message_table);
-
-  preferences_misc_messages_label = gtk_label_new (_("Warning level: "));
-  gtk_widget_ref (preferences_misc_messages_label);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_messages_label", preferences_misc_messages_label,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_messages_label);
-  gtk_table_attach (GTK_TABLE (preferences_misc_message_table), preferences_misc_messages_label, 0, 1, 0, 1,
-                    (GtkAttachOptions) (GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_misc_messages_spinbutton_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
-  preferences_misc_messages_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (preferences_misc_messages_spinbutton_adj), 1, 0);
-  gtk_widget_ref (preferences_misc_messages_spinbutton);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc_messages_spinbutton", preferences_misc_messages_spinbutton,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc_messages_spinbutton);
-  gtk_table_attach (GTK_TABLE (preferences_misc_message_table), preferences_misc_messages_spinbutton, 1, 2, 0, 1,
-                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
-                    (GtkAttachOptions) (0), 0, 0);
-
-  preferences_misc = gtk_label_new (_("Misc"));
-  gtk_widget_ref (preferences_misc);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_misc", preferences_misc,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_misc);
-  gtk_notebook_set_tab_label (GTK_NOTEBOOK (preferences_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (preferences_notebook), 7), preferences_misc);
-
-  preferences_dialog = GNOME_DIALOG (intf_preferences)->action_area;
-  gtk_object_set_data (GTK_OBJECT (intf_preferences), "preferences_dialog", preferences_dialog);
-  gtk_widget_show (preferences_dialog);
-  gtk_button_box_set_layout (GTK_BUTTON_BOX (preferences_dialog), GTK_BUTTONBOX_END);
-  gtk_button_box_set_spacing (GTK_BUTTON_BOX (preferences_dialog), 8);
-
-  gnome_dialog_append_button (GNOME_DIALOG (intf_preferences), GNOME_STOCK_BUTTON_OK);
-  preferences_ok = GTK_WIDGET (g_list_last (GNOME_DIALOG (intf_preferences)->buttons)->data);
-  gtk_widget_ref (preferences_ok);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_ok", preferences_ok,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_ok);
-  GTK_WIDGET_SET_FLAGS (preferences_ok, GTK_CAN_DEFAULT);
-
-  gnome_dialog_append_button (GNOME_DIALOG (intf_preferences), GNOME_STOCK_BUTTON_APPLY);
-  preferences_apply = GTK_WIDGET (g_list_last (GNOME_DIALOG (intf_preferences)->buttons)->data);
-  gtk_widget_ref (preferences_apply);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_apply", preferences_apply,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_apply);
-  GTK_WIDGET_SET_FLAGS (preferences_apply, GTK_CAN_DEFAULT);
-
-  gnome_dialog_append_button (GNOME_DIALOG (intf_preferences), GNOME_STOCK_BUTTON_CANCEL);
-  preferences_cancel = GTK_WIDGET (g_list_last (GNOME_DIALOG (intf_preferences)->buttons)->data);
-  gtk_widget_ref (preferences_cancel);
-  gtk_object_set_data_full (GTK_OBJECT (intf_preferences), "preferences_cancel", preferences_cancel,
-                            (GtkDestroyNotify) gtk_widget_unref);
-  gtk_widget_show (preferences_cancel);
-  GTK_WIDGET_SET_FLAGS (preferences_cancel, GTK_CAN_DEFAULT);
-
-  gtk_signal_connect (GTK_OBJECT (preferences_ok), "clicked",
-                      GTK_SIGNAL_FUNC (GtkPreferencesOk),
-                      "intf_preferences");
-  gtk_signal_connect (GTK_OBJECT (preferences_apply), "clicked",
-                      GTK_SIGNAL_FUNC (GtkPreferencesApply),
-                      "intf_preferences");
-  gtk_signal_connect (GTK_OBJECT (preferences_cancel), "clicked",
-                      GTK_SIGNAL_FUNC (GtkPreferencesCancel),
-                      "intf_preferences");
-
-  return intf_preferences;
-}
-
 GtkWidget*
 create_intf_open (void)
 {
@@ -3245,7 +2316,7 @@ create_intf_open (void)
                             (GtkDestroyNotify) gtk_widget_unref);
   gtk_widget_show (entry1);
   gtk_box_pack_start (GTK_BOX (hbox6), entry1, TRUE, TRUE, 0);
-  gtk_entry_set_text (GTK_ENTRY (entry1), DVD_DEVICE);
+  gtk_entry_set_text (GTK_ENTRY (entry1), "/dev/dvd");
 
   tab_disc = gtk_label_new (_("Disc"));
   gtk_widget_ref (tab_disc);
@@ -3494,3 +2565,262 @@ create_intf_open (void)
   return intf_open;
 }
 
+GtkWidget*
+create_intf_messages (void)
+{
+  GtkWidget *intf_messages;
+  GtkWidget *dialog_vbox6;
+  GtkWidget *scrolledwindow1;
+  GtkWidget *messages_textbox;
+  GtkWidget *dialog_action_area6;
+  GtkWidget *messages_ok;
+
+  intf_messages = gnome_dialog_new (_("Messages"), NULL);
+  gtk_object_set_data (GTK_OBJECT (intf_messages), "intf_messages", intf_messages);
+  gtk_window_set_policy (GTK_WINDOW (intf_messages), TRUE, TRUE, FALSE);
+  gnome_dialog_close_hides (GNOME_DIALOG (intf_messages), TRUE);
+
+  dialog_vbox6 = GNOME_DIALOG (intf_messages)->vbox;
+  gtk_object_set_data (GTK_OBJECT (intf_messages), "dialog_vbox6", dialog_vbox6);
+  gtk_widget_show (dialog_vbox6);
+
+  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_ref (scrolledwindow1);
+  gtk_object_set_data_full (GTK_OBJECT (intf_messages), "scrolledwindow1", scrolledwindow1,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (scrolledwindow1);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox6), scrolledwindow1, TRUE, TRUE, 0);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
+
+  messages_textbox = gtk_text_new (NULL, NULL);
+  gtk_widget_ref (messages_textbox);
+  gtk_object_set_data_full (GTK_OBJECT (intf_messages), "messages_textbox", messages_textbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (messages_textbox);
+  gtk_container_add (GTK_CONTAINER (scrolledwindow1), messages_textbox);
+  gtk_widget_set_usize (messages_textbox, 600, 400);
+
+  dialog_action_area6 = GNOME_DIALOG (intf_messages)->action_area;
+  gtk_object_set_data (GTK_OBJECT (intf_messages), "dialog_action_area6", dialog_action_area6);
+  gtk_widget_show (dialog_action_area6);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);
+  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area6), 8);
+
+  gnome_dialog_append_button (GNOME_DIALOG (intf_messages), GNOME_STOCK_BUTTON_OK);
+  messages_ok = GTK_WIDGET (g_list_last (GNOME_DIALOG (intf_messages)->buttons)->data);
+  gtk_widget_ref (messages_ok);
+  gtk_object_set_data_full (GTK_OBJECT (intf_messages), "messages_ok", messages_ok,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (messages_ok);
+  GTK_WIDGET_SET_FLAGS (messages_ok, GTK_CAN_DEFAULT);
+
+  gtk_signal_connect (GTK_OBJECT (intf_messages), "destroy",
+                      GTK_SIGNAL_FUNC (gtk_widget_hide),
+                      "intf_playlist");
+  gtk_signal_connect (GTK_OBJECT (intf_messages), "delete_event",
+                      GTK_SIGNAL_FUNC (gtk_widget_hide),
+                      "intf_playlist");
+  gtk_signal_connect (GTK_OBJECT (messages_ok), "clicked",
+                      GTK_SIGNAL_FUNC (GtkMessagesOk),
+                      "intf_messages");
+
+  return intf_messages;
+}
+
+GtkWidget*
+create_intf_sat (void)
+{
+  GtkWidget *intf_sat;
+  GtkWidget *vbox15;
+  GtkWidget *hbox10;
+  GtkWidget *frame13;
+  GtkWidget *table5;
+  GtkWidget *label30;
+  GtkObject *sat_freq_adj;
+  GtkWidget *sat_freq;
+  GtkWidget *label31;
+  GSList *pol_group = NULL;
+  GtkWidget *sat_pol_hor;
+  GtkWidget *sat_pol_vert;
+  GtkWidget *label33;
+  GtkObject *sat_srate_adj;
+  GtkWidget *sat_srate;
+  GtkWidget *label35;
+  GtkWidget *sat_fec;
+  GList *sat_fec_items = NULL;
+  GtkWidget *combo_entry4;
+  GtkWidget *hbuttonbox2;
+  GtkWidget *sat_ok;
+  GtkWidget *sat_cancel;
+
+  intf_sat = gnome_dialog_new (_("Open Satellite Card"), NULL);
+  gtk_object_set_data (GTK_OBJECT (intf_sat), "intf_sat", intf_sat);
+  gtk_window_set_modal (GTK_WINDOW (intf_sat), TRUE);
+  gtk_window_set_policy (GTK_WINDOW (intf_sat), FALSE, FALSE, FALSE);
+
+  vbox15 = GNOME_DIALOG (intf_sat)->vbox;
+  gtk_object_set_data (GTK_OBJECT (intf_sat), "vbox15", vbox15);
+  gtk_widget_show (vbox15);
+
+  hbox10 = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (hbox10);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "hbox10", hbox10,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (hbox10);
+  gtk_box_pack_start (GTK_BOX (vbox15), hbox10, TRUE, TRUE, 0);
+
+  frame13 = gtk_frame_new (_("Transponder settings"));
+  gtk_widget_ref (frame13);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "frame13", frame13,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (frame13);
+  gtk_box_pack_start (GTK_BOX (hbox10), frame13, TRUE, TRUE, 0);
+
+  table5 = gtk_table_new (5, 2, FALSE);
+  gtk_widget_ref (table5);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "table5", table5,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (table5);
+  gtk_container_add (GTK_CONTAINER (frame13), table5);
+  gtk_container_set_border_width (GTK_CONTAINER (table5), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (table5), 5);
+  gtk_table_set_col_spacings (GTK_TABLE (table5), 5);
+
+  label30 = gtk_label_new (_("Frequency"));
+  gtk_widget_ref (label30);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "label30", label30,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label30);
+  gtk_table_attach (GTK_TABLE (table5), label30, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_misc_set_alignment (GTK_MISC (label30), 0, 0.5);
+
+  sat_freq_adj = gtk_adjustment_new (11954, 10000, 12999, 1, 10, 10);
+  sat_freq = gtk_spin_button_new (GTK_ADJUSTMENT (sat_freq_adj), 1, 0);
+  gtk_widget_ref (sat_freq);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_freq", sat_freq,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_freq);
+  gtk_table_attach (GTK_TABLE (table5), sat_freq, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  label31 = gtk_label_new (_("Polarization"));
+  gtk_widget_ref (label31);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "label31", label31,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label31);
+  gtk_table_attach (GTK_TABLE (table5), label31, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_misc_set_alignment (GTK_MISC (label31), 0, 0.5);
+
+  sat_pol_hor = gtk_radio_button_new_with_label (pol_group, _("Horizontal"));
+  pol_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sat_pol_hor));
+  gtk_widget_ref (sat_pol_hor);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_pol_hor", sat_pol_hor,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_pol_hor);
+  gtk_table_attach (GTK_TABLE (table5), sat_pol_hor, 1, 2, 3, 4,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  sat_pol_vert = gtk_radio_button_new_with_label (pol_group, _("Vertical"));
+  pol_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sat_pol_vert));
+  gtk_widget_ref (sat_pol_vert);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_pol_vert", sat_pol_vert,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_pol_vert);
+  gtk_table_attach (GTK_TABLE (table5), sat_pol_vert, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sat_pol_vert), TRUE);
+
+  label33 = gtk_label_new (_("Symbol Rate"));
+  gtk_widget_ref (label33);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "label33", label33,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label33);
+  gtk_table_attach (GTK_TABLE (table5), label33, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_misc_set_alignment (GTK_MISC (label33), 0, 0.5);
+
+  sat_srate_adj = gtk_adjustment_new (27500, 1000, 30000, 1, 10, 10);
+  sat_srate = gtk_spin_button_new (GTK_ADJUSTMENT (sat_srate_adj), 1, 0);
+  gtk_widget_ref (sat_srate);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_srate", sat_srate,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_srate);
+  gtk_table_attach (GTK_TABLE (table5), sat_srate, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  label35 = gtk_label_new (_("FEC"));
+  gtk_widget_ref (label35);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "label35", label35,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label35);
+  gtk_table_attach (GTK_TABLE (table5), label35, 0, 1, 4, 5,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_misc_set_alignment (GTK_MISC (label35), 0, 0.5);
+
+  sat_fec = gtk_combo_new ();
+  gtk_widget_ref (sat_fec);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_fec", sat_fec,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_fec);
+  gtk_table_attach (GTK_TABLE (table5), sat_fec, 1, 2, 4, 5,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "1/2");
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "2/3");
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "3/4");
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "4/5");
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "5/6");
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "6/7");
+  sat_fec_items = g_list_append (sat_fec_items, (gpointer) "7/8");
+  gtk_combo_set_popdown_strings (GTK_COMBO (sat_fec), sat_fec_items);
+  g_list_free (sat_fec_items);
+
+  combo_entry4 = GTK_COMBO (sat_fec)->entry;
+  gtk_widget_ref (combo_entry4);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "combo_entry4", combo_entry4,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (combo_entry4);
+  gtk_entry_set_text (GTK_ENTRY (combo_entry4), "3/4");
+
+  hbuttonbox2 = GNOME_DIALOG (intf_sat)->action_area;
+  gtk_object_set_data (GTK_OBJECT (intf_sat), "hbuttonbox2", hbuttonbox2);
+  gtk_widget_show (hbuttonbox2);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END);
+  gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox2), 8);
+
+  gnome_dialog_append_button (GNOME_DIALOG (intf_sat), GNOME_STOCK_BUTTON_OK);
+  sat_ok = GTK_WIDGET (g_list_last (GNOME_DIALOG (intf_sat)->buttons)->data);
+  gtk_widget_ref (sat_ok);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_ok", sat_ok,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_ok);
+  GTK_WIDGET_SET_FLAGS (sat_ok, GTK_CAN_DEFAULT);
+
+  gnome_dialog_append_button (GNOME_DIALOG (intf_sat), GNOME_STOCK_BUTTON_CANCEL);
+  sat_cancel = GTK_WIDGET (g_list_last (GNOME_DIALOG (intf_sat)->buttons)->data);
+  gtk_widget_ref (sat_cancel);
+  gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_cancel", sat_cancel,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (sat_cancel);
+  GTK_WIDGET_SET_FLAGS (sat_cancel, GTK_CAN_DEFAULT);
+
+  gtk_signal_connect (GTK_OBJECT (sat_ok), "clicked",
+                      GTK_SIGNAL_FUNC (GtkSatOpenOk),
+                      "intf_disc");
+  gtk_signal_connect (GTK_OBJECT (sat_cancel), "clicked",
+                      GTK_SIGNAL_FUNC (GtkSatOpenCancel),
+                      "intf_disc");
+
+  return intf_sat;
+}
+