From: DL1YCF Date: Sun, 5 Sep 2021 10:54:53 +0000 (+0200) Subject: Correction from John. X-Git-Url: https://git.rkrishnan.org/Site/Content/$sch_link?a=commitdiff_plain;h=1756618bf90c60af3ebfb887b61576fd283d8d43;p=pihpsdr.git Correction from John. --- diff --git a/encoder_menu.c b/encoder_menu.c index 66b6b2f..56958b8 100644 --- a/encoder_menu.c +++ b/encoder_menu.c @@ -62,7 +62,7 @@ static gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_d static gboolean encoder_bottom_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { int en=GPOINTER_TO_INT(data); - int action=action_dialog(top_window,CONTROLLER_ENCODER,encoders[en].bottom_encoder_function); + int action=action_dialog(dialog,CONTROLLER_ENCODER,encoders[en].bottom_encoder_function); gtk_button_set_label(GTK_BUTTON(widget),ActionTable[action].str); encoders[en].bottom_encoder_function=action; return TRUE; diff --git a/switch_menu.c b/switch_menu.c index 94bee0d..fb22a70 100644 --- a/switch_menu.c +++ b/switch_menu.c @@ -70,7 +70,7 @@ void switch_page_cb(GtkNotebook *notebook,GtkWidget *page,guint page_num,gpointe static gboolean switch_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { int sw=GPOINTER_TO_INT(data); - int action=action_dialog(top_window,CONTROLLER_SWITCH,temp_switches[sw].switch_function); + int action=action_dialog(dialog,CONTROLLER_SWITCH,temp_switches[sw].switch_function); gtk_button_set_label(GTK_BUTTON(widget),ActionTable[action].str); temp_switches[sw].switch_function=action; update_toolbar_labels(); diff --git a/toolbar_menu.c b/toolbar_menu.c index 4dd2cc5..2913b44 100644 --- a/toolbar_menu.c +++ b/toolbar_menu.c @@ -71,7 +71,7 @@ static void switch_page_cb(GtkNotebook *notebook,GtkWidget *page,guint page_num, static gboolean switch_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { int sw=GPOINTER_TO_INT(data); - int action=action_dialog(top_window,CONTROLLER_SWITCH,temp_switches[sw].switch_function); + int action=action_dialog(dialog,CONTROLLER_SWITCH,temp_switches[sw].switch_function); gtk_button_set_label(GTK_BUTTON(widget),ActionTable[action].str); temp_switches[sw].switch_function=action; update_toolbar_labels();