]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Enable the "restart" button by default.
authorc vw <dl1ycf@darc.de>
Mon, 9 Nov 2020 18:08:54 +0000 (19:08 +0100)
committerc vw <dl1ycf@darc.de>
Mon, 9 Nov 2020 18:08:54 +0000 (19:08 +0100)
new_menu.c

index 0bf1aeb7156b6fefd0336bc297e8a7359bb3f630..9c7bf7ca3600190761d9308ed9c14ac67943e2e6 100644 (file)
@@ -103,7 +103,6 @@ static gboolean close_cb (GtkWidget *widget, GdkEventButton *event, gpointer dat
   return TRUE;
 }
 
-#ifdef RESTART_BUTTON
 //
 // The "Restart" button restarts the protocol
 // This may help to recover from certain error conditions
@@ -128,7 +127,6 @@ static gboolean restart_cb (GtkWidget *widget, GdkEventButton *event, gpointer d
   }
   return TRUE;
 }
-#endif
 
 static gboolean about_b_cb (GtkWidget *widget, GdkEventButton *event, gpointer data) {
   cleanup();
@@ -504,7 +502,6 @@ void new_menu()
     g_signal_connect (close_b, "button-press-event", G_CALLBACK(close_cb), NULL);
     gtk_grid_attach(GTK_GRID(grid),close_b,0,0,2,1);
 
-#ifdef RESTART_BUTTON
     //
     // The "Restart" restarts the protocol
     // This may help to recover from certain error conditions
@@ -512,7 +509,6 @@ void new_menu()
     GtkWidget *restart_b=gtk_button_new_with_label("Restart");
     g_signal_connect (restart_b, "button-press-event", G_CALLBACK(restart_cb), NULL);
     gtk_grid_attach(GTK_GRID(grid),restart_b,2,0,2,1);
-#endif
 
     GtkWidget *exit_b=gtk_button_new_with_label("Exit piHPSDR");
     g_signal_connect (exit_b, "button-press-event", G_CALLBACK(exit_cb), NULL);