* ./modules/gui/gtk/open.c: the Gtk and GNOME interfaces no longer ignore
authorSam Hocevar <sam@videolan.org>
Sat, 24 Aug 2002 11:57:07 +0000 (11:57 +0000)
committerSam Hocevar <sam@videolan.org>
Sat, 24 Aug 2002 11:57:07 +0000 (11:57 +0000)
    the "dvd", "frequency" and "symbol-rate" variables.

bootstrap.sh
modules/gui/gtk/open.c

index 5063715..42b13ae 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  bootstrap.sh file for vlc, the VideoLAN Client
-##  $Id: bootstrap.sh,v 1.10 2002/08/07 21:36:55 massiot Exp $
+##  $Id: bootstrap.sh,v 1.11 2002/08/24 11:57:07 sam Exp $
 ##
 ##  Authors: Samuel Hocevar <sam@zoy.org>
 
@@ -82,9 +82,6 @@ then
 #include <vlc/vlc.h>
 EOF
     tail +8 modules/gui/gtk/$file \
-        | sed 's#DISABLED!!!_("/dev/dvd")#config_GetPsz( "dvd" )#' \
-        | sed 's#DISABLED!!!11954#config_GetInt( "frequency" )#' \
-        | sed 's#DISABLED!!!27500#config_GetInt( "symbol-rate" )#' \
         | sed 's#_("-:--:--")#"-:--:--"#' \
         | sed 's#_("---")#"---"#' \
         | sed 's#_("--")#"--"#' \
index 022d8f4..f16ea01 100644 (file)
@@ -2,7 +2,7 @@
  * gtk_open.c : functions to handle file/disc/network open widgets.
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: open.c,v 1.1 2002/08/04 17:23:43 sam Exp $
+ * $Id: open.c,v 1.2 2002/08/24 11:57:07 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          St├ęphane Borel <stef@via.ecp.fr>
@@ -437,6 +437,16 @@ static void GtkOpenShow( intf_thread_t *p_intf, int i_page )
         free( psz_var );
     }
 
+    /* Disc stuff */
+    psz_var = config_GetPsz( p_intf, "dvd" );
+    if( psz_var )
+    {
+        gtk_entry_set_text( GTK_ENTRY( gtk_object_get_data(
+            GTK_OBJECT( p_intf->p_sys->p_open ), "disc_name" ) ),
+            psz_var );
+        free( psz_var );
+    }
+
     /* Network stuff */
     gtk_spin_button_set_value( GTK_SPIN_BUTTON( gtk_object_get_data(
         GTK_OBJECT( p_intf->p_sys->p_open ), "network_udp_port" ) ),
@@ -459,6 +469,25 @@ static void GtkOpenShow( intf_thread_t *p_intf, int i_page )
         GTK_OBJECT( p_intf->p_sys->p_open ), "network_channel" ),
         config_GetInt( p_intf, "network-channel" ) );
 
+    /* Satellite stuff */
+    psz_var = config_GetPsz( p_intf, "frequency" );
+    if( psz_var )
+    {
+        gtk_entry_set_text( GTK_ENTRY( gtk_object_get_data(
+            GTK_OBJECT( p_intf->p_sys->p_open ), "sat_freq" ) ),
+            psz_var );
+        free( psz_var );
+    }
+
+    psz_var = config_GetPsz( p_intf, "symbol-rate" );
+    if( psz_var )
+    {
+        gtk_entry_set_text( GTK_ENTRY( gtk_object_get_data(
+            GTK_OBJECT( p_intf->p_sys->p_open ), "sat_srate" ) ),
+            psz_var );
+        free( psz_var );
+    }
+
     /* Set the right page */
 setpage:
     p_notebook = lookup_widget( GTK_WIDGET( p_intf->p_sys->p_open ),