gtk_register_dialog(dialog);
uint8_t DIA_getMSharpen(MSHARPEN_PARAM *param);uint8_t DIA_getMSharpen(MSHARPEN_PARAM *param){GtkWidget *dialog;int ret=0;        dialog=create_dialog1();                // Update                CHECK_SET(checkbuttonMask,mask);        CHECK_SET(checkbuttonHQ,highq);                gtk_range_set_value (GTK_RANGE(WID(hscaleThresh)),(gdouble)param->threshold);        gtk_range_set_value (GTK_RANGE(WID(hscaleStrength)),(gdouble)param->strength);                        if(gtk_dialog_run(GTK_DIALOG(dialog))==GTK_RESPONSE_OK)        {          GtkAdjustment *adj;                   adj=gtk_range_get_adjustment (GTK_RANGE(WID(hscaleThresh)));                param->threshold=(uint32_t)GTK_ADJUSTMENT(adj)->value;                        adj=gtk_range_get_adjustment (GTK_RANGE(WID(hscaleStrength)));                param->strength=(uint32_t)GTK_ADJUSTMENT(adj)->value;                CHECK_GET(checkbuttonHQ,highq);                CHECK_GET(checkbuttonMask,mask);                               ret=1;                }        gtk_widget_destroy(dialog);        return ret;}