-/* Copyright (C)
+/* cOpyright (C)
* 2020 - John Melton, G0ORX/N6LYT
*
* This program is free software; you can redistribute it and/or
};
static GtkWidget *parent_window=NULL;
-static GtkWidget *menu_b=NULL;
static GtkWidget *dialog=NULL;
-static GtkWidget *midi_enable_b;
-
static GtkListStore *store;
static GtkWidget *view;
static GtkWidget *scrolled_window=NULL;
static GtkTreeIter iter;
struct desc *current_cmd;
-static GtkWidget *filename;
-
static GtkWidget *newEvent;
static GtkWidget *newChannel;
static GtkWidget *newNote;
}
static void type_changed_cb(GtkWidget *widget, gpointer data) {
- int i=0;
- int j=0;
// update actions available for the type
gchar *type=gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(widget));
GtkWidget *save_dialog;
GtkFileChooser *chooser;
GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SAVE;
- gchar *filename;
gint res;
struct desc *cmd;
GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
gchar *filename;
gint res;
- struct desc *cmd;
load_dialog = gtk_file_chooser_dialog_new ("Open MIDI File",
GTK_WINDOW(dialog),
GtkWidget *load_dialog;
GtkFileChooser *chooser;
GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
- gchar *filename;
gint res;
- struct desc *cmd;
load_dialog = gtk_file_chooser_dialog_new ("Open LEGACY MIDI File",
GTK_WINDOW(dialog),
//g_print("%s: type=%s action=%s\n",__FUNCTION__,str_type,str_action);
thisAction=MIDI_ACTION_NONE;
+ onoff=0;
i=0;
while(ActionTable[i].action!=MIDI_ACTION_LAST) {
if(strcmp(ActionTable[i].str,str_action)==0) {