return TRUE;
}
-#ifdef RESTART_BUTTON
//
// The "Restart" button restarts the protocol
// This may help to recover from certain error conditions
}
return TRUE;
}
-#endif
static gboolean about_b_cb (GtkWidget *widget, GdkEventButton *event, gpointer data) {
cleanup();
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
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);