More fixes - Alex
[terminatorX.git] / src / tX_mastergui.cc
index f1debe5c3714781e0776afd2fc447577da1872f3..21cfbf3ec659ab70b6a0161fe8a41789ea397c44 100644 (file)
@@ -62,7 +62,6 @@ GtkWidget *tt_parent;
 GtkWidget *control_parent;
 GtkWidget *audio_parent;
 GtkWidget *main_window;
-GtkWidget *wav_progress;
 GtkWidget *grab_button;
 GtkWidget *main_flash_l;
 GtkWidget *main_flash_r;
@@ -1300,23 +1299,6 @@ void create_mastergui(int x, int y)
 
 gfloat old_percent=-1;
 
-void wav_progress_update(gfloat percent)
-{
-       percent=floor(percent*10.0)/10.0; //Updating statusbars with gtk-themes eats up hell of a lot CPU-time
-                                         // which is why we update every 10% only.
-       
-       if (wav_progress)
-       {
-               if (old_percent != percent)
-               {
-                       old_percent = percent;
-                       gtk_progress_bar_update(GTK_PROGRESS_BAR(wav_progress), percent);
-                       while (gtk_events_pending()) gtk_main_iteration();      
-               }
-       }
-
-}
-
 void note_destroy(GtkWidget *widget, GtkWidget *mbox)
 {
        gtk_widget_destroy(GTK_WIDGET(mbox));