static void cb_test2(Fl_Widget*, void*) { switch (config_dlg->show_modal()) { case FL_DLG_OK: my_config.flush(); break; } }
void cb_run_app(Fl_Input *i, void*) { Fl_String exec(i->value()); if ((exec == "") || (exec == " ")) return; exec = "ede-launch \""+exec; exec += "\""; fl_start_child_process(exec, false); Fl_Input_Browser *ib = (Fl_Input_Browser *)i->parent(); if (!ib->find(i->value())) { ib->add(i->value()); Fl_String_List history; int c = 0; if (ib->children() > 15) c = ib->children() - 15; for (; c < ib->children(); c++) { history.append(ib->child(c)->label()); } pGlobalConfig.set("Panel", "RunHistory", history.to_string("|")); pGlobalConfig.flush(); } i->value(""); }