param->index=getRangeInMenu(WID(optionmenu1));
param->index=indeces[getRangeInMenu(WID(optionmenu1))];
uint8_t DIA_vobsub(vobSubParam *param){  char *name=NULL;   int32_t shift;       int ret,ext,r;          ret=0;  ext=0;    if(param->subname)    name=ADM_strdup(param->subname);  shift=param->subShift;    while(!ext)  {    dialog=create_dialog1();        gtk_transient(dialog);    gtk_dialog_add_action_widget (GTK_DIALOG (dialog), WID(buttonSelect), GTK_RESPONSE_APPLY);            fq=new GtkWidget*[20];          // Upload if any        if(name)        {                update(name,param->index);        }        else        {                gtk_label_set_text(GTK_LABEL(WID(labelVobsub)),"none");             }        gtk_write_entry(WID(entryShift),shift);        r=gtk_dialog_run(GTK_DIALOG(dialog));        shift=gtk_read_entry(WID(entryShift));        switch(r)        {              case GTK_RESPONSE_APPLY:              {                char *file;                        GUI_FileSelRead("Select .idx file",&file);                         if(file)                        {                          if(name) ADM_dealloc(name);                          name=NULL;                          name=ADM_strdup(file); // Leak ?                                              }                                              }                break;              case GTK_RESPONSE_OK:                ret=1;                ext=1;                if(name)                {                        ADM_dealloc(name);                }                name=ADM_strdup(gtk_label_get_text(GTK_LABEL(WID(labelVobsub))));                if(param->subname)                              ADM_dealloc(param->subname);                param->subname=name;                                                        //                                param->index=getRangeInMenu(WID(optionmenu1));                param->subShift=shift;                break;              case GTK_RESPONSE_CANCEL:                ret=0;                ext=1;                break;              default:                break;        }        delete [] fq;                  gtk_widget_destroy(dialog);    }       return ret;}    