static GtkWidget *status;
-void status_text(char *text) {
- gtk_label_set_text(GTK_LABEL(status), text);
- usleep(100000);
- while (gtk_events_pending())
- gtk_main_iteration();
-}
-
static pthread_t wisdom_thread_id;
static int wisdom_running = 0;
}
strcpy(&wisdom_directory[strlen(wisdom_directory)], "/");
g_info("Securing wisdom file in directory: %s\n", wisdom_directory);
- status_text("Checking FFTW Wisdom file ...");
+ log_info("Checking FFTW Wisdom file ...");
wisdom_running = 1;
pthread_create(&wisdom_thread_id, NULL, wisdom_thread, wisdom_directory);
while (wisdom_running) {
while (gtk_events_pending()) {
gtk_main_iteration();
}
- status_text(wisdom_get_status());
+ log_info(wisdom_get_status());
}
g_idle_add(ext_discovery, NULL);
extern int full_screen;
extern GtkWidget *top_window;
extern GtkWidget *grid;
-extern void status_text(char *text);
extern bool keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
#endif
break;
}
- status_text(text);
+ log_info(text);
sprintf(text, "piHPSDR: %s (%s %s) %s (%s) on %s", radio->name, p, version,
ip, mac, iface);