for (j = 0; j < 3; j++) { sprintf(txt, faction_ini[j], idx[i] + 1); if (!j) s = rp->name; else if (j == 1) gtkncpy(s = buf, rp->cmd, sizeof(buf)); else s = rp->dir; inifile_set(txt, s); } } update_faction_menu(); run_destroy(wdata); } #define WBbase spawn_dd static void *spawn_code[] = { WINDOWm(_("Configure File Actions")), DEFSIZE(500, 400), XVBOXB, // !!! Originally the main vbox was that way XSCROLL(1, 1), // auto/auto WLIST, NTXTCOLUMND(_("Action"), spawn_row, name, 200, 0), NTXTCOLUMND(_("Command"), spawn_row, cmd, 0 /* 200 */, 0), COLUMNDATA(strs, sizeof(spawn_row)), CLEANUP(strs), REF(list), LISTCd(nidx, cnt, faction_select_row), TRIGGER, REF(group), GROUPR, FHBOXB(_("Action")), XENTRY(name), EVENT(CHANGE, faction_changed), WDONE, FHBOXB(_("Command")), XENTRY(cmd), EVENT(CHANGE, faction_changed), WDONE, PATH(_("Directory"), _("Select Directory"), FS_SELECT_DIR, dir), EVENT(CHANGE, faction_changed), OKBOX3(_("OK"), faction_btn, _("Cancel"), NULL, _("Execute"), faction_btn), WSHOW
{ shifter_set_palette(dt, i); spot_undo(UNDO_PAL); } shifter_set_palette(dt, dt->frame[0]); update_stuff(UPD_PAL); } } #undef _ #define _(X) X #define WBbase shifter_dd static void *shifter_code[] = { WINDOWm(_("Palette Shifter")), XVBOXB, // !!! Originally the main vbox was that way TABLE(4, 9), BORDER(LABEL, 0), uSPIN(row, 0, 7), EVENT(CHANGE, shifter_moved), EVENT(MULTI, shift_all), TLLABELx(_("Start"), 1, 0, 0, 0, 5), uSPIN(sfd[0], 0, 255), EVENT(CHANGE, shifter_moved), TLLABELx(_("Finish"), 2, 0, 0, 0, 5), uSPIN(sfd[1], 0, 255), EVENT(CHANGE, shifter_moved), TLLABELx(_("Delay"), 3, 0, 0, 0, 5), uSPIN(sfd[2], 0, 255), EVENT(CHANGE, shifter_moved), DEFBORDER(LABEL), TLTEXT("0\n1\n2\n3\n4\n5\n6\n7", 0, 1), REF(spinpack), TLSPINPACKv(spins, 3 * NSHIFT, shifter_moved, 3, 1, 1), TRIGGER, WDONE,