From 3f8cd7a7427b8b08103a783d2b3f4ac076b2f5b8 Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 28 May 2021 11:55:21 +0200 Subject: [PATCH] Used STEPS to cycle through vfo step size list. --- vfo_menu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vfo_menu.c b/vfo_menu.c index 22c5b4e..b7d4760 100644 --- a/vfo_menu.c +++ b/vfo_menu.c @@ -154,6 +154,7 @@ static gboolean freqent_select_cb (GtkWidget *widget, gpointer data) { send_vfo_frequency(client_socket,active_receiver->id,f); } else { #endif + //This is inside a callback so we do not need g_idle_add //fp=g_new(SET_FREQUENCY,1); //fp->vfo=v; //fp->frequency = f; @@ -287,13 +288,11 @@ void vfo_menu(GtkWidget *parent,int vfo) { gtk_grid_attach(GTK_GRID(grid),vfo_label,3,3,1,1); GtkWidget *vfo_b=gtk_combo_box_text_new(); - i=0; - while(steps[i]!=0) { + for (i=0; i