Commit 48337372 authored by Johan Bilien's avatar Johan Bilien

* removed a totally useless switch in my last commit

  (switch i {case 1: i=1;break; case 2: i=2: ...
  I'd better got to bed ;)
parent e4658464
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk_open.c : functions to handle file/disc/network open widgets. * gtk_open.c : functions to handle file/disc/network open widgets.
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_open.c,v 1.21 2002/04/15 04:28:26 jobi Exp $ * $Id: gtk_open.c,v 1.22 2002/04/15 04:36:45 jobi Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr> * Stphane Borel <stef@via.ecp.fr>
...@@ -546,34 +546,9 @@ void GtkSatOpenOk( GtkButton * button, gpointer user_data ) ...@@ -546,34 +546,9 @@ void GtkSatOpenOk( GtkButton * button, gpointer user_data )
b_pol = 1; b_pol = 1;
} }
switch( strtol( gtk_entry_get_text( GTK_ENTRY( GTK_COMBO( i_fec = strtol( gtk_entry_get_text( GTK_ENTRY( GTK_COMBO(
lookup_widget( GTK_WIDGET( button ), "sat_fec" ) lookup_widget( GTK_WIDGET( button ), "sat_fec" )
)->entry ) ), NULL, 10 ) ) )->entry ) ), NULL, 10 );
{
case 1:
i_fec = 1;
break;
case 2:
i_fec = 2;
break;
case 3:
i_fec = 3;
break;
case 4:
i_fec = 4;
break;
case 5:
i_fec = 5;
break;
case 6:
i_fec = 6;
break;
case 7:
i_fec = 7;
break;
default:
i_fec = 8; /* this should not happen */
}
/* Select frequency and symbol rate */ /* Select frequency and symbol rate */
i_freq = gtk_spin_button_get_value_as_int( i_freq = gtk_spin_button_get_value_as_int(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment