gtk_unregister_dialog(dialog);
uint8_t DIA_getDGbob(DGBobparam *param){GtkWidget *dialog;GtkAdjustment *adj;int ret=0;        dialog=create_dialog1();                // Update        MENU_SET(optionmenu1,mode);        CHECK_SET(checkbutton1,ap);        if(param->order)  RADIO_SET(radiobutton2,1);                else     RADIO_SET(radiobutton1,1);         gtk_range_set_value (GTK_RANGE(WID(hscale1)),(gdouble)param->thresh);        // run        if(gtk_dialog_run(GTK_DIALOG(dialog))==GTK_RESPONSE_OK)        {                MENU_GET(optionmenu1,mode);                CHECK_GET(checkbutton1,ap);                       param->order= RADIO_GET(radiobutton2);                                adj=gtk_range_get_adjustment (GTK_RANGE(WID(hscale1)));                param->thresh=GTK_ADJUSTMENT(adj)->value;                ret=1;        }        gtk_widget_destroy(dialog);        return ret;}